/* ============================================================
   KodSanat — style.css v3
   Premium SaaS / Product Landing — ODAC-Inspired
   Monochrome: light hero → curved wave → deep dark zone
   ============================================================ */


/* ── 1. TOKENS ────────────────────────────────────────────── */
:root {
  /* Light zone palette */
  --l-bg:        #F2F3F7;
  --l-bg-2:      #ECEDF3;
  --l-surface:   #FFFFFF;
  --l-border:    rgba(0, 0, 0, 0.08);
  --l-border-2:  rgba(0, 0, 0, 0.13);
  --l-text:      #0C0C14;
  --l-text-2:    #6B7280;
  --l-text-3:    #9CA3AF;

  /* Dark zone palette */
  --d-bg:        #080810;
  --d-bg-2:      #0E0F1A;
  --d-surface:   rgba(255, 255, 255, 0.04);
  --d-surface-2: rgba(255, 255, 255, 0.08);
  --d-border:    rgba(255, 255, 255, 0.08);
  --d-border-2:  rgba(255, 255, 255, 0.14);
  --d-text:      #EEEEF6;
  --d-text-2:    rgba(238, 238, 246, 0.55);
  --d-text-3:    rgba(238, 238, 246, 0.28);

  /* Typography */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:   ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'Courier New', monospace;

  /* Layout */
  --container:   1100px;

  /* Radii — product-grade */
  --r-pill:      999px;
  --r-xl:        24px;
  --r-lg:        18px;
  --r-md:        12px;
  --r-sm:        8px;
  --r-xs:        5px;

  /* Transitions */
  --t:           0.18s ease;
  --t-slow:      0.38s ease;

  /* Shadows — light zone */
  --sh-card:     0 2px 20px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
  --sh-card-h:   0 8px 40px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.06);
  --sh-nav:      0 4px 32px rgba(0,0,0,0.08), 0 1px 0 rgba(0,0,0,0.04);

  /* Shadows — dark zone */
  --sh-dark:     0 4px 32px rgba(0,0,0,0.5);
  --sh-dark-h:   0 12px 60px rgba(0,0,0,0.6);
}


/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--l-bg);
  color: var(--l-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul       { list-style: none; }
a        { color: inherit; text-decoration: none; transition: color var(--t); }
button   { cursor: pointer; background: none; border: none; font: inherit; }


/* ── 3. TYPOGRAPHY ────────────────────────────────────────── */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--l-text-3);
  font-family: var(--font-mono);
}

.overline-dark {
  color: var(--d-text-3);
}

.hero-headline {
  font-size: clamp(3rem, 6.8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  color: var(--l-text);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.section-title-dark  { color: var(--d-text); }
.section-title-light { color: var(--l-text); }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}


/* ── 4. LAYOUT ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* Section spacing not globalised — each section sets its own */


/* ── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t),
              box-shadow var(--t), transform var(--t);
  cursor: pointer;
}

/* Dark fill — primary action */
.btn-dark {
  background: var(--l-text);
  color: #fff;
  border-color: var(--l-text);
}

.btn-dark:hover {
  background: #1d1d2e;
  border-color: #1d1d2e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

/* Outline on light bg */
.btn-outline {
  background: transparent;
  color: var(--l-text-2);
  border-color: var(--l-border-2);
}

.btn-outline:hover {
  border-color: var(--l-text-2);
  color: var(--l-text);
  background: rgba(0,0,0,0.03);
}

/* White fill — on dark bg */
.btn-white {
  background: rgba(255,255,255,0.96);
  color: var(--d-bg);
  border-color: transparent;
}

.btn-white:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

/* Ghost on dark bg */
.btn-ghost-dark {
  background: transparent;
  color: var(--d-text-2);
  border-color: var(--d-border-2);
}

.btn-ghost-dark:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--d-text);
  background: rgba(255,255,255,0.05);
}

.btn-lg { padding: 0.85rem 2.1rem; font-size: 0.9rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}


/* ── 6. FLOATING PILL NAVBAR ──────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  pointer-events: none; /* clicks pass through the transparent wrapper */
}

.nav-pill {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1.25fr;
  align-items: center;
  height: 52px;
  padding: 0 0.65rem 0 1.2rem;
  width: min(calc(100% - 2.5rem), 900px);

  /* Light mode pill */
  background: rgba(242, 243, 247, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-nav);

  transition:
    background var(--t-slow),
    border-color var(--t-slow),
    box-shadow var(--t-slow);
}

/* Dark mode pill — when scrolled past hero */
.nav-wrapper.dark-nav .nav-pill {
  background: rgba(10, 10, 20, 0.88);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  justify-self: start;
}

.nav-logo svg rect  { transition: fill var(--t-slow); }
.dark-nav .nav-logo svg rect:nth-child(1),
.dark-nav .nav-logo svg rect:nth-child(4) { fill: rgba(255,255,255,0.9); }
.dark-nav .nav-logo svg rect:nth-child(2),
.dark-nav .nav-logo svg rect:nth-child(3) { fill: rgba(255,255,255,0.3); }

.nav-wordmark {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--l-text);
  transition: color var(--t-slow);
}

.dark-nav .nav-wordmark { color: var(--d-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}

.nav-link {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--l-text-2);
  border-radius: var(--r-pill);
  transition: color var(--t), background var(--t);
  letter-spacing: -0.005em;
}

.nav-link:hover { color: var(--l-text); background: rgba(0,0,0,0.05); }

.dark-nav .nav-link { color: var(--d-text-2); }
.dark-nav .nav-link:hover { color: var(--d-text); background: rgba(255,255,255,0.07); }

/* Right-side group: CTA + lang switcher + hamburger on mobile */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  justify-self: end;
}

.nav-cta {
  font-size: 0.8rem;
  padding: 0.4rem 0.95rem;
  height: 34px;
  /* Light pill: dark filled */
  background: var(--l-text);
  color: #fff !important;
  border-color: var(--l-text);
  transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}

.nav-cta:hover {
  background: #1d1d2e;
  border-color: #1d1d2e;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

/* Dark pill: white filled */
.dark-nav .nav-cta {
  background: rgba(255,255,255,0.94);
  color: #080810 !important;
  border-color: transparent;
}

.dark-nav .nav-cta:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.36);
}

/* Language switcher */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  margin-right: 0.1rem;
}

.nav-lang-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: var(--r-pill);
  color: var(--l-text-3);
  transition: color var(--t), background var(--t);
  line-height: 1;
}

.nav-lang-btn:hover { color: var(--l-text); background: rgba(0,0,0,0.05); }
.nav-lang-btn.active { color: var(--l-text); font-weight: 700; }

.dark-nav .nav-lang-btn          { color: var(--d-text-3); }
.dark-nav .nav-lang-btn:hover    { color: var(--d-text); background: rgba(255,255,255,0.07); }
.dark-nav .nav-lang-btn.active   { color: var(--d-text); }

.nav-lang-sep {
  width: 1px;
  height: 10px;
  background: var(--l-border-2);
  margin: 0 0.1rem;
  transition: background var(--t-slow);
}

.dark-nav .nav-lang-sep { background: var(--d-border-2); }

/* Theme toggle icon button */
.nav-theme-toggle {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  color: var(--l-text-3);
  transition: color var(--t), background var(--t);
  flex-shrink: 0;
}

.nav-theme-toggle:hover { color: var(--l-text); background: rgba(0,0,0,0.06); }

.dark-nav .nav-theme-toggle       { color: var(--d-text-3); }
.dark-nav .nav-theme-toggle:hover { color: var(--d-text); background: rgba(255,255,255,0.08); }

/* Sun shown in light mode, moon shown in dark mode */
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun  { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--l-text);
  border-radius: 1px;
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}

.dark-nav .nav-toggle span { background: var(--d-text); }

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu — hidden at all widths above 768px */
.nav-mobile-menu { display: none; }


/* ── 7. HERO — Light, centered, dot grid ──────────────────── */
.hero {
  position: relative;
  background: var(--l-bg);
  padding: 11rem 0 8rem;
  text-align: center;
  overflow: hidden;
}

/* Hero background motion */
@keyframes dot-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

/* Dot grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: -30px;            /* oversized so drift doesn't show edges */
  background-image: radial-gradient(circle, rgba(0,0,0,0.11) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
  animation: dot-drift 80s linear infinite;
  will-change: background-position;
}

/* Radial fade at edges */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--l-bg) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--l-bg) 0%, transparent 60%),
    radial-gradient(ellipse 40% 100% at 0% 50%, var(--l-bg) 0%, transparent 60%),
    radial-gradient(ellipse 40% 100% at 100% 50%, var(--l-bg) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* Ambient glow — slow breathing radial overlay */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 52%, rgba(10,10,28,0.05) 0%, transparent 70%);
  animation: glow-breathe 16s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Badge above headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.9rem;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--l-border);
  border-radius: var(--r-pill);
  margin-bottom: 2rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--l-text-2);
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  opacity: 0.75;
  flex-shrink: 0;
}

.hero .hero-headline {
  margin-inline: auto;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--l-text-2);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero .btn-group {
  justify-content: center;
}

/* Hero trust pills */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--l-border);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--l-text-2);
}

.trust-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--l-text-3);
  font-size: 8px;
  flex-shrink: 0;
}


/* ── 8. WAVE DIVIDERS ─────────────────────────────────────── */
.wave-ltr {
  /* light-to-dark wave */
  display: block;
  background: var(--l-bg);
  line-height: 0;
  margin-bottom: -1px;
  color: #080810;  /* SVG currentColor → dark bg fill */
}

.wave-rtl {
  /* dark-to-light wave */
  display: block;
  background: var(--d-bg);
  line-height: 0;
  margin-bottom: -1px;
  color: #F2F3F7;  /* SVG currentColor → light bg fill */
}

.wave-ltr svg,
.wave-rtl svg {
  display: block;
  width: 100%;
  height: auto;
}


/* ── 9. DARK ZONE ─────────────────────────────────────────── */
.dark-zone {
  background: var(--d-bg);
  color: var(--d-text);
  padding: 5rem 0 6rem;
}

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

.dark-zone-header .section-title-dark { margin-bottom: 0.75rem; }

.dark-zone-header p {
  font-size: 1rem;
  color: var(--d-text-2);
  max-width: 440px;
  margin-inline: auto;
  line-height: 1.65;
}


/* ── 9a. PERFORMANCE PANEL ────────────────────────────────── */
.perf-panel-wrap {
  max-width: 640px;
  margin: 0 auto 4rem;
  position: relative;
}

/* Subtle neutral glow behind panel */
.perf-panel-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.perf-panel {
  position: relative;
  background: var(--d-surface);
  border: 1px solid var(--d-border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-dark);
}

/* Subtle highlight line along top edge */
.perf-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  pointer-events: none;
}

.perf-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--d-border);
  background: rgba(255,255,255,0.02);
}

.perf-panel-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--d-text-2);
  letter-spacing: 0.05em;
}

.perf-panel-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #6EE7B7;
  background: rgba(110,231,183,0.08);
  border: 1px solid rgba(110,231,183,0.18);
  border-radius: var(--r-pill);
  padding: 0.2rem 0.65rem;
  letter-spacing: 0.04em;
}

.perf-status-dot {
  width: 5px;
  height: 5px;
  background: #6EE7B7;
  border-radius: 50%;
}

.perf-panel-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.perf-row {
  display: grid;
  grid-template-columns: 130px 1fr 2.5rem;
  align-items: center;
  gap: 1rem;
}

.perf-label {
  font-size: 0.78rem;
  color: var(--d-text-2);
  font-weight: 500;
}

.perf-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.perf-bar-fill {
  height: 100%;
  background: rgba(255,255,255,0.60);
  border-radius: var(--r-pill);
  width: 0;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}

.dark-zone.animated .perf-bar-fill {
  width: var(--w, 0);
}

.perf-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--d-text);
  text-align: right;
  letter-spacing: -0.02em;
}

.perf-panel-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--d-border);
}

.perf-cwv {
  padding: 0.9rem 1.25rem;
  border-right: 1px solid var(--d-border);
  text-align: center;
}

.perf-cwv:last-child { border-right: none; }

.perf-cwv-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--d-text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.perf-cwv-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--d-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.perf-cwv-status {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.12rem 0.55rem;
  border-radius: var(--r-pill);
  background: rgba(110,231,183,0.1);
  color: #6EE7B7;
  border: 1px solid rgba(110,231,183,0.18);
}


/* ── 9b. DARK SERVICE CARDS ───────────────────────────────── */
.dark-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--d-border);
  border: 1px solid var(--d-border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.dark-service-card {
  background: var(--d-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background var(--t);
  cursor: default;
}

.dark-service-card:hover {
  background: var(--d-bg-2);
}

.dsc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--d-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--d-text-2);
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t), color var(--t);
}

.dark-service-card:hover .dsc-icon {
  background: rgba(255,255,255,0.10);
  border-color: var(--d-border-2);
  color: var(--d-text);
}

.dsc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--d-text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.dsc-desc {
  font-size: 0.82rem;
  color: var(--d-text-2);
  line-height: 1.65;
  flex: 1;
}

.dsc-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--d-text-3);
  letter-spacing: 0.06em;
}


/* ── 9c. DARK STATS STRIP ─────────────────────────────────── */
.dark-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--d-border);
  margin-top: 4rem;
  padding-top: 0;
}

.dark-stat {
  padding: 2.5rem 2rem 2rem;
  border-right: 1px solid var(--d-border);
  text-align: center;
}

.dark-stat:last-child { border-right: none; }

.dark-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--d-text);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.dark-stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--d-text-2);
  line-height: 1.5;
}


/* ── 10. PROJECTS — Light section ─────────────────────────── */
.projects {
  background: var(--l-bg);
  padding: 7rem 0;
}

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

.section-header .overline {
  display: block;
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--l-text-2);
  max-width: 440px;
  margin-inline: auto;
  margin-top: 0.75rem;
  line-height: 1.65;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  background: var(--l-surface);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--sh-card);
  transition: box-shadow var(--t), transform var(--t);
}

.project-card:hover {
  box-shadow: var(--sh-card-h);
  transform: translateY(-3px);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--l-bg);
  border: 1px solid var(--l-border-2);
  color: var(--l-text-3);
  font-weight: 500;
}

.project-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--l-text);
  line-height: 1.1;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--l-text-2);
  line-height: 1.7;
  flex: 1;
}

.project-stat {
  padding-top: 1.25rem;
  border-top: 1px solid var(--l-border);
}

.project-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--l-text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.project-stat-label {
  font-size: 0.78rem;
  color: var(--l-text-2);
}


/* ── 11. WHY US / FEATURES — Light card grid ──────────────── */
.features {
  background: var(--l-surface);
  padding: 7rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--l-bg);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  border: 1px solid var(--l-border);
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}

.feature-card:hover {
  box-shadow: var(--sh-card);
  border-color: var(--l-border-2);
  transform: translateY(-2px);
}

.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--l-surface);
  border: 1px solid var(--l-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--l-text-2);
  margin-bottom: 1.25rem;
  transition: color var(--t);
}

.feature-card:hover .fc-icon { color: var(--l-text); }

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--l-text);
}

.feature-card p {
  font-size: 0.84rem;
  color: var(--l-text-2);
  line-height: 1.65;
}


/* ── 12. PROCESS ──────────────────────────────────────────── */
.process {
  background: var(--l-bg);
  padding: 7rem 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--l-border);
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 3.5rem;
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.process-step {
  background: var(--l-surface);
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--l-border);
  transition: background var(--t);
}

.process-step:last-child { border-right: none; }

.process-step:hover { background: var(--l-bg); }

.ps-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--l-text-3);
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}

.process-step h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--l-text);
}

.process-step p {
  font-size: 0.81rem;
  color: var(--l-text-2);
  line-height: 1.65;
}


/* ── 13. FAQ ──────────────────────────────────────────────── */
.faq {
  background: var(--l-surface);
  padding: 7rem 0;
}

.faq-list {
  max-width: 680px;
  margin-inline: auto;
  margin-top: 3.5rem;
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--l-border);
  background: var(--l-surface);
  transition: background var(--t);
}

.faq-item:last-child { border-bottom: none; }
.faq-item.open { background: var(--l-bg); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--l-text);
  letter-spacing: -0.015em;
  text-align: left;
  transition: color var(--t);
}

.faq-question:hover { color: var(--l-text-2); }

.faq-toggle {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 300;
  color: var(--l-text-3);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--l-border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t), border-color var(--t), background var(--t);
  line-height: 1;
  padding-bottom: 1px;
}

.faq-item.open .faq-toggle {
  color: var(--l-text);
  border-color: var(--l-text);
  background: var(--l-text);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--l-text-2);
}


/* ── 14. CTA SECTION — Dark close ─────────────────────────── */
.cta-section {
  background: var(--d-bg);
  padding: 9rem 0;
  text-align: center;
  color: var(--d-text);
}

.cta-badge,
.cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--d-border-2);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  color: var(--d-text-2);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.cta-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--d-text);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  max-width: 660px;
  margin-inline: auto;
}

.cta-sub {
  font-size: 1rem;
  color: var(--d-text-2);
  margin-bottom: 2.75rem;
  max-width: 400px;
  margin-inline: auto;
  line-height: 1.65;
}

.cta-section .btn-group {
  justify-content: center;
}


/* ── 15. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--d-bg-2);
  border-top: 1px solid var(--d-border);
  padding: 5rem 0 2.5rem;
  color: var(--d-text);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--d-border);
}

.footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--d-text);
}

.footer-desc {
  font-size: 0.84rem;
  color: var(--d-text-2);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 1.75rem;
}

.footer-email-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-text-3);
  display: block;
  margin-bottom: 0.3rem;
}

.footer-email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--d-text);
  transition: opacity var(--t);
}

.footer-email:hover { opacity: 0.6; }

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-text-3);
  display: block;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--d-text-2);
  transition: color var(--t);
}

.footer-links a:hover { color: var(--d-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--d-text-3);
  letter-spacing: 0.03em;
}

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

.footer-legal a {
  font-size: 0.76rem;
  color: var(--d-text-3);
  transition: color var(--t);
}

.footer-legal a:hover { color: var(--d-text-2); }


/* ── 16. SCROLL REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible       { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.07s; }
.reveal-d2 { transition-delay: 0.14s; }
.reveal-d3 { transition-delay: 0.21s; }
.reveal-d4 { transition-delay: 0.28s; }
.reveal-d5 { transition-delay: 0.35s; }
.reveal-d6 { transition-delay: 0.42s; }


/* ── 17. MEDIA QUERIES ────────────────────────────────────── */
@media (max-width: 1024px) {
  .dark-services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-top         { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-grid       { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-bottom: 1px solid var(--l-border); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-last-child(-n+2) { border-bottom: none; }

  .dark-stats { grid-template-columns: repeat(2, 1fr); }
  .dark-stat:nth-child(2) { border-right: none; }
  .dark-stat:nth-child(3) { border-top: 1px solid var(--d-border); }
  .dark-stat:nth-child(4) { border-top: 1px solid var(--d-border); border-right: none; }
}

@media (max-width: 768px) {
  /* Pill nav → compact mobile menu */
  .nav-toggle  { display: flex; }
  .nav-links   { display: none; }
  .nav-lang    { display: none; }
  .nav-cta     { display: none; }

  .nav-pill {
    grid-template-columns: 1fr auto; /* logo | hamburger */
    padding: 0 0.75rem;
    height: 48px;
  }

  .nav-right { gap: 0; }

  /* Mobile menu — full dropdown below pill, shown when .open */
  .nav-mobile-menu {
    display: flex;                 /* override global display:none */
    position: fixed;
    top: calc(1.1rem + 48px + 0.5rem);
    left: 1.25rem;
    right: 1.25rem;
    background: rgba(242,243,247,0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--l-border-2);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-card-h);
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 850;
  }

  .nav-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .dark-nav .nav-mobile-menu {
    background: rgba(12,12,22,0.97);
    border-color: var(--d-border-2);
  }

  .nav-mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--l-text-2);
    border-radius: var(--r-md);
    transition: background var(--t), color var(--t);
  }

  .nav-mobile-menu a:hover { background: rgba(0,0,0,0.05); color: var(--l-text); }
  .dark-nav .nav-mobile-menu a { color: var(--d-text-2); }
  .dark-nav .nav-mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--d-text); }

  .nav-mobile-cta {
    margin-top: 0.5rem;
    padding: 0.7rem 1rem !important;
    background: var(--l-text) !important;
    color: #fff !important;
    border-radius: var(--r-pill) !important;
    text-align: center;
    font-weight: 600 !important;
  }

  .dark-nav .nav-mobile-cta { background: rgba(255,255,255,0.95) !important; color: var(--d-bg) !important; }

  /* Layout */
  .container { padding-inline: 1.25rem; }

  .hero { padding: 7rem 0 5rem; }
  .hero .hero-headline { font-size: clamp(2.6rem, 9vw, 3.8rem); }

  .perf-row { grid-template-columns: 100px 1fr 2rem; gap: 0.6rem; }

  .dark-services-grid { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .dark-stat          { padding: 1.75rem; }
  .dark-stats         { grid-template-columns: repeat(2, 1fr); }

  .projects-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .process-grid  { grid-template-columns: 1fr; }
  .process-step  { border-right: none; border-bottom: 1px solid var(--l-border); }
  .process-step:last-child { border-bottom: none; }

  .faq-list { border-radius: var(--r-md); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-section { padding: 6rem 0; }
  .cta-heading { font-size: clamp(2rem, 8vw, 3.2rem); }
}

@media (max-width: 480px) {
  .hero .btn-group   { flex-direction: column; align-items: center; }
  .hero-trust        { gap: 0.4rem; }
  .dark-stats        { grid-template-columns: 1fr; }
  .dark-stat         { border-right: none; border-bottom: 1px solid var(--d-border); }
  .dark-stat:last-child { border-bottom: none; }
  .perf-panel-body   { gap: 0.7rem; }
  .btn-group         { flex-direction: column; align-items: center; width: 100%; }
  .btn-lg            { width: 100%; justify-content: center; }
}


/* ── 18. DARK MODE THEME OVERRIDES ────────────────────────── */

/* Nav — always dark pill when data-theme="dark" */
html[data-theme="dark"] .nav-pill {
  background: rgba(10,10,20,0.92);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
html[data-theme="dark"] .nav-wordmark               { color: var(--d-text); }
html[data-theme="dark"] .nav-link                   { color: var(--d-text-2); }
html[data-theme="dark"] .nav-link:hover             { color: var(--d-text); background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .nav-link.active            { color: var(--d-text); }
html[data-theme="dark"] .nav-logo svg rect:nth-child(1),
html[data-theme="dark"] .nav-logo svg rect:nth-child(4) { fill: rgba(255,255,255,0.9); }
html[data-theme="dark"] .nav-logo svg rect:nth-child(2),
html[data-theme="dark"] .nav-logo svg rect:nth-child(3) { fill: rgba(255,255,255,0.3); }
html[data-theme="dark"] .nav-lang-btn               { color: var(--d-text-3); }
html[data-theme="dark"] .nav-lang-btn:hover         { color: var(--d-text); background: rgba(255,255,255,0.07); }
html[data-theme="dark"] .nav-lang-btn.active        { color: var(--d-text); }
html[data-theme="dark"] .nav-lang-sep               { background: var(--d-border-2); }
html[data-theme="dark"] .nav-toggle span            { background: var(--d-text); }
html[data-theme="dark"] .nav-theme-toggle           { color: var(--d-text-3); }
html[data-theme="dark"] .nav-theme-toggle:hover     { color: var(--d-text); background: rgba(255,255,255,0.08); }
html[data-theme="dark"] .nav-cta {
  background: rgba(255,255,255,0.94);
  color: #080810 !important;
  border-color: transparent;
}
html[data-theme="dark"] .nav-cta:hover { background: #fff; }
html[data-theme="dark"] .nav-mobile-menu {
  background: rgba(12,12,22,0.97);
  border-color: var(--d-border-2);
}
html[data-theme="dark"] .nav-mobile-menu a           { color: var(--d-text-2); }
html[data-theme="dark"] .nav-mobile-menu a:hover     { color: var(--d-text); background: rgba(255,255,255,0.05); }
html[data-theme="dark"] .nav-mobile-cta { background: rgba(255,255,255,0.95) !important; color: var(--d-bg) !important; }

/* Wave dividers — both sides become dark-on-dark (seamless) */
html[data-theme="dark"] .wave-ltr { background: var(--d-bg);   color: var(--d-bg); }
html[data-theme="dark"] .wave-rtl { background: var(--d-bg);   color: var(--d-bg-2); }

/* Hero */
html[data-theme="dark"] .hero                { background: var(--d-bg); }
html[data-theme="dark"] .hero::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.075) 1.2px, transparent 1.2px);
}
html[data-theme="dark"] .hero::after {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   var(--d-bg) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--d-bg) 0%, transparent 60%),
    radial-gradient(ellipse 40% 100% at 0% 50%,  var(--d-bg) 0%, transparent 60%),
    radial-gradient(ellipse 40% 100% at 100% 50%,var(--d-bg) 0%, transparent 60%);
}
html[data-theme="dark"] .hero-badge {
  background: rgba(255,255,255,0.04);
  border-color: var(--d-border);
  color: var(--d-text-2);
}
html[data-theme="dark"] .hero-headline         { color: var(--d-text); }
html[data-theme="dark"] .hero-sub              { color: var(--d-text-2); }
html[data-theme="dark"] .hero-trust-chip {
  background: rgba(255,255,255,0.04);
  border-color: var(--d-border);
  color: var(--d-text-2);
}
html[data-theme="dark"] .trust-check {
  background: rgba(255,255,255,0.07);
  color: var(--d-text-3);
}
/* Hero CTAs flip to dark-zone button style */
html[data-theme="dark"] .hero .btn-dark {
  background: rgba(255,255,255,0.96);
  color: var(--d-bg);
  border-color: transparent;
}
html[data-theme="dark"] .hero .btn-dark:hover { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
html[data-theme="dark"] .hero .btn-outline    { color: var(--d-text-2); border-color: var(--d-border-2); }
html[data-theme="dark"] .hero .btn-outline:hover {
  color: var(--d-text);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

/* Typography helpers in light sections */
html[data-theme="dark"] .overline            { color: var(--d-text-3); }
html[data-theme="dark"] .section-title-light { color: var(--d-text); }
html[data-theme="dark"] .section-header p   { color: var(--d-text-2); }

/* Projects */
html[data-theme="dark"] .projects              { background: var(--d-bg-2); }
html[data-theme="dark"] .project-card {
  background: rgba(255,255,255,0.03);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
}
html[data-theme="dark"] .project-card:hover   { box-shadow: var(--sh-dark-h); }
html[data-theme="dark"] .project-name         { color: var(--d-text); }
html[data-theme="dark"] .project-desc         { color: var(--d-text-2); }
html[data-theme="dark"] .tag {
  background: rgba(255,255,255,0.04);
  border-color: var(--d-border);
  color: var(--d-text-3);
}
html[data-theme="dark"] .project-stat        { border-top-color: var(--d-border); }
html[data-theme="dark"] .project-stat-num    { color: var(--d-text); }
html[data-theme="dark"] .project-stat-label  { color: var(--d-text-2); }

/* Features */
html[data-theme="dark"] .features             { background: var(--d-bg); }
html[data-theme="dark"] .feature-card {
  background: rgba(255,255,255,0.025);
  border-color: var(--d-border);
}
html[data-theme="dark"] .feature-card:hover  { border-color: var(--d-border-2); }
html[data-theme="dark"] .feature-card h3     { color: var(--d-text); }
html[data-theme="dark"] .feature-card p      { color: var(--d-text-2); }
html[data-theme="dark"] .fc-icon {
  background: rgba(255,255,255,0.06);
  border-color: var(--d-border);
  color: var(--d-text-2);
}
html[data-theme="dark"] .feature-card:hover .fc-icon { color: var(--d-text); }

/* Process */
html[data-theme="dark"] .process              { background: var(--d-bg-2); }
html[data-theme="dark"] .process-grid {
  background: var(--d-border);
  border-color: var(--d-border);
}
html[data-theme="dark"] .process-step {
  background: var(--d-bg-2);
  border-right-color: var(--d-border);
  border-bottom-color: var(--d-border);
}
html[data-theme="dark"] .process-step:hover  { background: var(--d-bg); }
html[data-theme="dark"] .ps-num              { color: var(--d-text-3); }
html[data-theme="dark"] .process-step h3     { color: var(--d-text); }
html[data-theme="dark"] .process-step p      { color: var(--d-text-2); }

/* FAQ */
html[data-theme="dark"] .faq                  { background: var(--d-bg); }
html[data-theme="dark"] .faq-list             { border-color: var(--d-border); }
html[data-theme="dark"] .faq-item             { background: var(--d-bg); border-bottom-color: var(--d-border); }
html[data-theme="dark"] .faq-item.open        { background: var(--d-bg-2); }
html[data-theme="dark"] .faq-question         { color: var(--d-text); }
html[data-theme="dark"] .faq-question:hover   { color: var(--d-text-2); }
html[data-theme="dark"] .faq-toggle           { color: var(--d-text-3); border-color: var(--d-border-2); }
html[data-theme="dark"] .faq-item.open .faq-toggle {
  color: var(--d-text);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
}
html[data-theme="dark"] .faq-answer-inner     { color: var(--d-text-2); }


/* ── 19. PROJECT LINK ─────────────────────────────────────── */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--l-text-2);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--t);
}

.project-link:hover { color: var(--l-text); }

html[data-theme="dark"] .project-link       { color: var(--d-text-2); }
html[data-theme="dark"] .project-link:hover { color: var(--d-text); }


/* ── 20. SCROLL TO TOP ────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--l-text);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background var(--t), box-shadow var(--t);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: #222;
  box-shadow: 0 6px 24px rgba(0,0,0,0.24);
}

html[data-theme="dark"] .scroll-top {
  background: rgba(255,255,255,0.1);
  color: var(--d-text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

html[data-theme="dark"] .scroll-top:hover {
  background: rgba(255,255,255,0.18);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}


/* ── 19. INNER PAGES ────────────────────────────────────── */

/* Page hero — lightweight heading block for inner pages */
.page-hero {
  background: var(--l-bg);
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.page-breadcrumb {
  font-size: 0.78rem;
  color: var(--l-text-3);
  margin-bottom: 1.5rem;
}
.page-breadcrumb a {
  color: var(--l-text-2);
  text-decoration: none;
  transition: color var(--t);
}
.page-breadcrumb a:hover { color: var(--l-text); }
.page-breadcrumb .sep   { margin: 0 0.45rem; opacity: 0.5; }

.page-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l-text-2);
  border: 1px solid var(--l-border-2);
  border-radius: var(--r-pill);
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--l-text);
  max-width: 660px;
  margin: 0 auto 1.25rem;
}

.page-hero .page-sub {
  font-size: 1.05rem;
  color: var(--l-text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Include section — "what's included" checklist */
.include-section {
  background: var(--l-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.include-section .section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l-text-3);
  margin-bottom: 1.5rem;
}

.include-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.875rem;
}

.include-item {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9rem;
  color: var(--l-text);
  line-height: 1.4;
  transition: border-color var(--t), box-shadow var(--t);
}
.include-item:hover {
  border-color: var(--l-border-2);
  box-shadow: var(--sh-card);
}

.include-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--l-text);
  color: var(--l-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
}

/* Detail section — "who it's for" + "why KodSanat" */
.detail-section {
  background: var(--l-bg-2);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

@media (max-width: 680px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
}
.detail-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--l-text);
  margin: 0 0 0.75rem;
}
.detail-card p {
  font-size: 0.9rem;
  color: var(--l-text-2);
  line-height: 1.65;
  margin: 0;
}

/* "Learn more" link inside dark service cards (services overview) */
.dark-service-card .dsc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--d-text-2);
  text-decoration: none;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: color var(--t);
  width: 100%;
}
.dark-service-card .dsc-link:hover { color: var(--d-text); }

/* Projects page expanded */
.projects-full {
  background: var(--l-bg);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Dark mode overrides — inner page components */
html[data-theme="dark"] .page-hero            { background: var(--d-bg); }
html[data-theme="dark"] .page-badge           { color: var(--d-text-2); border-color: var(--d-border-2); }
html[data-theme="dark"] .page-hero h1         { color: var(--d-text); }
html[data-theme="dark"] .page-hero .page-sub  { color: var(--d-text-2); }
html[data-theme="dark"] .page-breadcrumb      { color: var(--d-text-3); }
html[data-theme="dark"] .page-breadcrumb a    { color: var(--d-text-2); }

html[data-theme="dark"] .include-section            { background: var(--d-bg); }
html[data-theme="dark"] .include-section .section-label { color: var(--d-text-3); }
html[data-theme="dark"] .include-item               { background: rgba(255,255,255,0.03); border-color: var(--d-border); color: var(--d-text); }
html[data-theme="dark"] .include-item:hover         { border-color: var(--d-border-2); }
html[data-theme="dark"] .include-check              { background: var(--d-text); color: var(--d-bg); }

html[data-theme="dark"] .detail-section   { background: var(--d-bg-2); }
html[data-theme="dark"] .detail-card      { background: rgba(255,255,255,0.025); border-color: var(--d-border); }
html[data-theme="dark"] .detail-card h3   { color: var(--d-text); }
html[data-theme="dark"] .detail-card p    { color: var(--d-text-2); }

html[data-theme="dark"] .projects-full    { background: var(--d-bg); }


/* ── 20. CONTACT PAGE & FORM ─────────────────────────────── */

/* Full-page section — top padding clears fixed nav */
.contact-section {
  padding: clamp(6.5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--l-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Left column ── */

.contact-info-col .col-label,
.contact-form-col .col-label {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-text-3);
  margin-bottom: 0.85rem;
}

.contact-heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--l-text);
  margin: 0 0 1.1rem;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--l-text-2);
  line-height: 1.75;
  max-width: 40ch;
  margin-bottom: 2.5rem;
}

.contact-block {
  padding-top: 1.75rem;
  border-top: 1px solid var(--l-border);
  margin-bottom: 2.25rem;
}

.contact-email-big {
  display: block;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--l-text);
  text-decoration: none;
  margin-bottom: 0.55rem;
  transition: color var(--t);
}
.contact-email-big:hover { color: var(--l-text-2); }

.contact-response {
  font-size: 0.83rem;
  color: var(--l-text-3);
  line-height: 1.5;
  margin: 0;
}

.contact-reasons {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-reasons li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--l-text-2);
  line-height: 1.5;
}

.contact-reasons li::before {
  content: '↗';
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--l-text-3);
  margin-top: 0.18rem;
}

/* ── Right column: form card ── */

.contact-form-card {
  background: var(--l-surface);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.06),
    0 16px 48px rgba(0,0,0,0.06);
  position: sticky;
  top: 5.5rem;
}

.contact-form-card-title {
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--l-text);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--l-border);
}

/* ── Form layout ── */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-text-2);
  user-select: none;
}

/* Base control styles */
.form-field input,
.form-field textarea {
  background: var(--l-bg);
  border: 1px solid var(--l-border-2);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--l-text);
  line-height: 1.4;
  width: 100%;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--l-text-3);
}

/* Custom select wrapper */
.form-select-wrap {
  position: relative;
}

.form-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--l-bg);
  border: 1px solid var(--l-border-2);
  border-radius: var(--r-sm);
  padding: 0.7rem 2.5rem 0.7rem 0.9rem;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--l-text);
  line-height: 1.4;
  width: 100%;
  outline: none;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.form-select-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--l-text-3);
  display: block;
}

/* Focus states */
.form-field input:focus,
.form-field textarea:focus,
.form-select-wrap select:focus {
  border-color: rgba(12,12,20,0.4);
  background: var(--l-surface);
  box-shadow: 0 0 0 3px rgba(12,12,20,0.07);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

/* Submit */
.contact-submit {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: 0.875rem;
  margin-top: 0.1rem;
  border-radius: var(--r-sm);
}

/* Honeypot — visually hidden, not display:none so bots don't skip it */
.ks-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* ── State messages ── */

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: #0d7a5f;
  line-height: 1.55;
}

.form-success-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #10b981;
}

.form-error-list {
  list-style: none;
  padding: 0.9rem 1.1rem;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-left: 3px solid rgba(220, 38, 38, 0.45);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.86rem;
  color: #991b1b;
  line-height: 1.55;
  margin: 0 0 0.875rem;
}

.form-error-list li + li { margin-top: 0.3rem; }

/* ── Dark mode ── */

html[data-theme="dark"] .contact-section             { background: var(--d-bg); }

html[data-theme="dark"] .contact-info-col .col-label,
html[data-theme="dark"] .contact-form-col .col-label { color: var(--d-text-3); }
html[data-theme="dark"] .contact-heading             { color: var(--d-text); }
html[data-theme="dark"] .contact-intro               { color: var(--d-text-2); }
html[data-theme="dark"] .contact-block               { border-top-color: var(--d-border); }
html[data-theme="dark"] .contact-email-big           { color: var(--d-text); }
html[data-theme="dark"] .contact-email-big:hover     { color: var(--d-text-2); }
html[data-theme="dark"] .contact-response            { color: var(--d-text-3); }
html[data-theme="dark"] .contact-reasons li          { color: var(--d-text-2); }
html[data-theme="dark"] .contact-reasons li::before  { color: var(--d-text-3); }

html[data-theme="dark"] .contact-form-card {
  background: var(--d-bg-2);
  border-color: var(--d-border);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.2),
    0 4px 16px rgba(0,0,0,0.3),
    0 16px 48px rgba(0,0,0,0.25);
}
html[data-theme="dark"] .contact-form-card-title {
  color: var(--d-text);
  border-bottom-color: var(--d-border);
}
html[data-theme="dark"] .form-field label            { color: var(--d-text-2); }
html[data-theme="dark"] .form-select-chevron         { color: var(--d-text-3); }

html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .form-select-wrap select {
  background: rgba(255,255,255,0.04);
  border-color: var(--d-border-2);
  color: var(--d-text);
}

html[data-theme="dark"] .form-field input::placeholder,
html[data-theme="dark"] .form-field textarea::placeholder { color: var(--d-text-3); }

html[data-theme="dark"] .form-field input:focus,
html[data-theme="dark"] .form-field textarea:focus,
html[data-theme="dark"] .form-select-wrap select:focus {
  border-color: rgba(238,238,246,0.3);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(238,238,246,0.07);
}

html[data-theme="dark"] .form-success {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
html[data-theme="dark"] .form-success-icon { color: #34d399; }

html[data-theme="dark"] .form-error-list {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.15);
  border-left-color: rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}
