/* ═══════════════════════════════════════════
   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:     #5C5E6A;

  /* 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', 'Inter', system-ui, sans-serif;
  --font-ar:   'Readex Pro', 'Inter', 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 {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  scroll-behavior: smooth;
  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"] .nav-logo,
[dir="rtl"] .metric-value,
[dir="rtl"] .pillar-num,
[dir="rtl"] .trevik-badge,
[dir="rtl"] .stealth-badge,
[dir="rtl"] .footer-logo { 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;
}

.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 {
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: var(--sorlane-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 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: var(--text-muted);
  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%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  left: 50%;
  top: 40%;
  will-change: left, top;
}

.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);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(217,119,69,0.4); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(217,119,69,0); }
}

.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;
  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;
}
.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-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 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--copper);
  display: block;
  margin-bottom: 1rem;
}
.coming-soon { color: var(--text-muted); }

.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);
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 2.25rem;
  padding: 0.5rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 32px 64px -16px rgba(0,0,0,0.7),
    0 0 80px var(--copper-glow);
}

.phone-notch {
  position: absolute;
  top: 0.625rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 1.375rem;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen-area {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1.75rem;
  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-home-bar {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}

.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;
  text-align: center;
}

/* ═══════════════════════════════════════════
   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;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  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: 42rem;
  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);
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: start;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
}

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

.contact-email {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  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-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 {
  font-family: var(--font-en);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  background: var(--sorlane-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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); }

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

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

/* Mobile */
@media (max-width: 48rem) {
  :root { --nav-h: 3.5rem; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(7,7,9,0.96);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { font-size: 1.25rem; }

  .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: center;
    text-align: center;
  }

  .contact-email-row { justify-content: center; }
  .contact-links { justify-content: center; }
  .contact-items { text-align: center; }
}

/* Small phones */
@media (max-width: 24rem) {
  .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; }
}
