/* ═══════════════════════════════════════════
   SORLANE — Design System & Styles
   Minimalist Dark Luxury · Linear / Stripe / Nothing
   ═══════════════════════════════════════════ */

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
  /* Palette */
  --bg-deep:        #070709;
  --bg-panel:       #111116;
  --bg-panel-hover: #18181e;
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.14);
  --text-primary:   #F0F0F2;
  --text-secondary: #8B8D98;
  --text-muted:     #868893; /* was #5C5E6A (2.7:1 on cards); now >= 4.5:1 on all dark surfaces */

  /* Brand gradients */
  --sorlane-gradient: linear-gradient(135deg, #FFFFFF 0%, #9499A3 100%);
  --copper:         #D97745;
  --copper-soft:    rgba(217, 119, 69, 0.12);
  --copper-glow:    rgba(217, 119, 69, 0.06);

  /* Fonts */
  --font-en:   'Inter', system-ui, -apple-system, sans-serif;
  --font-he:   'Heebo', 'Segoe UI', 'Arial Hebrew', Arial, system-ui, sans-serif;
  --font-ar:   'Readex Pro', 'Segoe UI', 'Geeza Pro', Tahoma, Arial, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: var(--font-en);

  /* Spacing */
  --nav-h: 4rem;
  --section-py: clamp(5rem, 12vw, 9rem);
  --shell-w: min(100% - 2rem, 76rem);

  /* Glass */
  --glass-bg: rgba(17, 17, 22, 0.72);
  --glass-blur: blur(16px);
  --glass-border: 1px solid var(--border-subtle);
}

/* ─── Language-Specific Fonts ─── */
html[lang="he"] { --font-body: var(--font-he); }
html[lang="ar"] { --font-body: var(--font-ar); line-height: 1.7; }

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: dark; /* deliberate dark design: tells Chrome/Samsung Internet not to auto-darken it again */
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
bdi { unicode-bidi: isolate; }

/* Ensure latin words never flip in RTL */
[dir="rtl"] .metric-value,
[dir="rtl"] .pillar-num,
[dir="rtl"] .stealth-badge { unicode-bidi: isolate; direction: ltr; display: inline-block; }

/* ─── Focus Styles ─── */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(7, 7, 9, 0.92); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--shell-w);
  margin-inline: auto;
  padding-inline: 0;
}

.nav-logo, .footer-logo {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  flex-shrink: 0;
}
.nav-logo img { width: 145px; height: auto; }
.nav-logo:focus-visible { outline-color: #00C4E5; }

.nav-links {
  display: flex;
  gap: clamp(0.8rem, 1.8vw, 2rem);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 0.5rem;
  padding: 0.1875rem;
}

.lang-btn {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  color: #a8aab4;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--text-secondary); }
.lang-btn.active {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* Hamburger */
.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
}
.hamburger::before { top: -5px; }
.hamburger::after  { top:  5px; }

.mobile-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .hamburger::after  { top: 0; transform: rotate(-45deg); }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding-block: calc(var(--nav-h) + 3rem) 3rem;
  overflow: hidden;
}

/* Radial grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

/* Spotlight glow that follows cursor */
.hero-glow {
  position: absolute;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 69, 0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 40%;
}
@media (hover: hover) and (pointer: fine) { .hero-glow { will-change: transform; } }

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--shell-w);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* Quiet, localized eyebrow; allow natural wrapping at larger text sizes. */
.hero-pill { border: 0; padding: .25rem 0; max-width: 100%; justify-content: center; line-height: 1.6; font-family: var(--font-sans); font-size: .8125rem; letter-spacing: .04em; }
.pill-dot { flex: 0 0 6px; }
html[dir="rtl"] .hero-pill, html[dir="rtl"] .section-label { letter-spacing: 0; }

.pill-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}
/* The pulse animates transform + opacity (compositor-only); it used to animate box-shadow, which repaints every frame. */
.pill-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(217,119,69,0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-offscreen .pill-dot::after { animation-play-state: paused; }

@keyframes pulse-dot {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 0;   transform: scale(3); }
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  background: var(--sorlane-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-wrap: balance;
}

html[lang="ar"] .hero-title { line-height: 1.35; letter-spacing: 0; }
html[lang="he"] .hero-title { line-height: 1.25; letter-spacing: 0; }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.4em;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: #FFFFFF;
  box-shadow: 0 0 24px rgba(255,255,255,0.15);
}

.btn-outline-copper {
  border: 1.5px solid var(--copper);
  color: var(--copper);
}
.btn-outline-copper:hover {
  background: var(--copper-soft);
}

.btn-copper {
  background: var(--copper);
  color: #fff;
}
#products .trevik-card .btn-copper {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  color: #070709;
}
.btn-copper:hover {
  background: #E08550;
  box-shadow: 0 0 32px var(--copper-glow);
}

/* ═══════════════════════════════════════════
   SECTIONS — Shared
   ═══════════════════════════════════════════ */
.section {
  padding-block: var(--section-py);
}

.section-inner {
  width: var(--shell-w);
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.section-label { font-family: var(--font-sans); font-size: .875rem; line-height: 1.65; letter-spacing: .06em; color: var(--text-secondary); }

.contact-product-label, .footer-copy { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .35em; }
.contact-product-label > [aria-hidden] { margin-inline: -.1em; }
html[dir="rtl"] .contact-product-text, html[dir="rtl"] .copyright-rights { order: -1; }
html[dir="rtl"] .contact-product-name { order: 1; }
.copyright-mark { unicode-bidi: isolate; }
.footer-copy { direction: ltr; }
html[dir="rtl"] .footer-copy { direction: rtl; gap: .25em; }
html[dir="rtl"] .footer-copy .copyright-rights { order: -1; direction: rtl; unicode-bidi: isolate; }

/* Let text reflow rather than force grid tracks beyond the card. */
.trevik-body, .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trevik-body > *, .metrics-grid > *, .phone-showcase { min-width: 0; }
.metric-card, .phone-tab, .btn, .about-page { overflow-wrap: anywhere; }
.phone-tabs { flex-wrap: wrap; justify-content: center; max-width: 100%; }
.phone-tab { white-space: normal; }
@media (max-width: 48rem) { .trevik-body { grid-template-columns: minmax(0, 1fr); } }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  background: var(--sorlane-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   TREVIK PRODUCT CARD
   ═══════════════════════════════════════════ */
.trevik-card {
  position: relative;
  border-radius: 1.5rem;
  background: var(--bg-panel);
  border: var(--glass-border);
  overflow: hidden;
}

.trevik-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(217,119,69,0.12) 0%, transparent 40%, transparent 60%, rgba(217,119,69,0.06) 100%);
  pointer-events: none;
  z-index: 0;
}

.trevik-card-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.trevik-header {
  margin-bottom: 2.5rem;
}

.trevik-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  column-gap: 0.5em;
  row-gap: 0.15rem;
  /* direction is inherited: LTR page -> 01 on the left; RTL page (he/ar) -> 01 on the right (natural reading order) */
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin-bottom: 1rem;
}
.badge-token { unicode-bidi: isolate; }
.badge-index, .badge-tag { direction: ltr; } /* 01 and FINTECH stay left-to-right inside their own token */
.badge-label { direction: inherit; } /* Hebrew/Arabic label keeps its natural RTL internal order */
.badge-sep { color: var(--copper); opacity: .7; }
.badge-label { font-family: var(--font-body); }
html[lang="he"] .badge-label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
html[lang="ar"] .badge-label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; }

.trevik-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin-bottom: 0.5rem;
}

.trevik-tagline {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.trevik-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.7;
}

.trevik-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}
.metric-card:hover { border-color: var(--border-hover); }

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--copper);
}

.metric-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Phone Mockup */
.phone-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.phone-frame {
  position: relative;
  width: min(100%, 17rem);
  background: #18181a;
  border-radius: 1.5rem;
  padding: 0.25rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 14px 30px rgba(0,0,0,0.25);
}

.phone-screen-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1284 / 2778;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--bg-deep);
}

.phone-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: var(--bg-deep);
}
.phone-img.active { opacity: 1; }

.phone-tabs {
  display: flex;
  gap: 0.375rem;
}

.phone-tab {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.phone-tab:hover { color: var(--text-secondary); border-color: var(--border-hover); }
.phone-tab.active {
  color: var(--copper);
  border-color: var(--copper);
  background: var(--copper-soft);
}

.trevik-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.trevik-footer .btn { min-inline-size: min(100%, 18rem); }

/* ═══════════════════════════════════════════
   BENTO GRID — Studio
   ═══════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-panel);
  border: var(--glass-border);
  border-radius: 1rem;
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
}
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.bento-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text-primary);
}

.bento-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Stealth Card */
.bento-card-stealth {
  border-style: dashed;
  border-color: rgba(255,255,255,0.06);
}
.bento-card-stealth .bento-title,
.bento-card-stealth .bento-desc { filter: blur(1px); opacity: 0.5; }

.bento-stealth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,17,22,0.3), rgba(17,17,22,0.7));
  backdrop-filter: blur(2px);
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
}

.stealth-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-panel);
}

/* ═══════════════════════════════════════════
   PILLARS — Architecture DNA
   ═══════════════════════════════════════════ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  padding: 2rem 1.5rem;
  background: var(--bg-panel);
  border: var(--glass-border);
  border-radius: 1rem;
  transition: border-color 0.3s;
}
.pillar-card:hover { border-color: var(--border-hover); }

.pillar-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 1rem;
}

.pillar-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.section-contact { padding-bottom: 3rem; }

.contact-card {
  max-width: 70rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--bg-panel);
  border: var(--glass-border);
  border-radius: 1.25rem;
  text-align: center;
}

.contact-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--sorlane-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-sub {
  color: var(--text-secondary);
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: start;
}

.contact-item {
  min-width: 0;
  padding: 1.25rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border-subtle);
  border-radius: .875rem;
  transition: border-color .2s, background .2s;
}
.contact-item:hover, .contact-item:focus-within { border-color: var(--border-hover); background: rgba(255,255,255,.04); }
.contact-icon { display: block; width: 1.5rem; height: 1.5rem; color: var(--copper); margin-bottom: 1.125rem; }
.contact-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.contact-description { color: #b9bac3; font-size: .875rem; line-height: 1.65; margin-bottom: 1rem; }

.contact-email-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-email {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: .625rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.contact-email:hover, .contact-email:active { color: var(--copper); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.copy-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.copy-btn.copied {
  border-color: #34D399;
  color: #34D399;
}

.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-product { border-top: 1px solid var(--border-subtle); margin-top: 2rem; padding-top: 1.5rem; text-align: start; }
.contact-product-label { display: block; color: #b9bac3; font-size: .875rem; font-weight: 600; margin-bottom: .5rem; }
.contact-product-label { display: inline-flex; }

.contact-link {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.contact-link:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  border-top: var(--glass-border);
  padding-block: 2rem;
}

.footer-inner {
  width: var(--shell-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-logo img { width: 120px; height: auto; }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text-secondary); }
.footer-link.about-link { color: #a8aab4; }
.footer-contact { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border-subtle); text-align: start; }
.footer-contact > div { min-width: 0; }
.footer-contact dd { margin: 0; }
.footer-contact-label { color: #d9d9df; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.footer-email { display: inline-flex; align-items: center; color: #b9bac3; font-size: .875rem; overflow-wrap: anywhere; max-width: 100%; min-height: 2.75rem; padding-block: .5rem; }
.footer-email:hover, .footer-email:active { color: var(--text-primary); text-decoration: underline; text-underline-offset: .2em; }
.footer-contact-note { color: #a8aab4; font-size: .75rem; margin-top: .3rem; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Tablet */
@media (max-width: 64rem) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .trevik-body { grid-template-columns: 1fr; }
  .phone-showcase { order: -1; }
  .contact-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 48rem) {
  :root { --nav-h: calc(3.75rem + env(safe-area-inset-top, 0px)); }

  .navbar { padding-block-start: env(safe-area-inset-top, 0px); background: rgba(7, 7, 9, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .navbar.menu-open { background: #0b0b0f; }
  .nav-inner { gap: .5rem; }
  .nav-logo img { width: clamp(105px, 30vw, 125px); }
  .nav-actions { gap: .25rem; flex-shrink: 0; }
  .lang-switcher { gap: 0; }
  .lang-btn { padding: .375rem .4rem; }
  .mobile-toggle { flex-shrink: 0; }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: calc(100dvh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem max(1.5rem, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(1.5rem, env(safe-area-inset-left, 0px));
    background: #0b0b0f;
    border-top: 1px solid var(--border-subtle);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links .nav-link {
    display: block;
    padding-block: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: clamp(1.05rem, 4.5vw, 1.3rem);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.menu-open { position: fixed; width: 100%; overflow: hidden; }

  .mobile-toggle { display: flex; }

  .bento-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }

  .metrics-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(1.75rem, 8vw, 2.75rem); }

  .phone-frame { width: min(80%, 15rem); }

  .footer-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: start;
  }
  .footer-brand { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .footer-contact { gap: 1.25rem; }

  .contact-card { padding: 2rem 1rem; }
  .contact-items, .footer-contact { grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 24rem) {
  .btn { white-space: normal; text-align: center; max-inline-size: 100%; }
  .trevik-badge { font-size: 0.6875rem; letter-spacing: 0.02em; column-gap: 0.4em; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .phone-tabs { flex-direction: column; width: 100%; }
  .phone-tab { width: 100%; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .hero-glow { display: none; }
}

/* Hebrew/Arabic action labels: weight and tracking tuned for the web fonts already loaded (Heebo, Readex Pro). */
html[lang="he"] .btn { font-weight: 600; letter-spacing: 0; line-height: 1.4; }
html[lang="ar"] .btn { font-weight: 600; letter-spacing: 0; line-height: 1.5; }
