/* ── AA STETICA FONT ── */
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Light.otf') format('opentype'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Light Italic.otf') format('opentype'); font-weight: 300; font-style: italic; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Regular.otf') format('opentype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Italic.otf') format('opentype'); font-weight: 400; font-style: italic; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Medium.otf') format('opentype'); font-weight: 500; font-style: normal; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Medium Italic.otf') format('opentype'); font-weight: 500; font-style: italic; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Bold.otf') format('opentype'); font-weight: 700; font-style: normal; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Bold Italic.otf') format('opentype'); font-weight: 700; font-style: italic; }
@font-face { font-family: 'AA Stetica'; src: url('../fonts/AA Stetica Black_0.otf') format('opentype'); font-weight: 900; font-style: normal; }

/* ── BRAND TOKENS (Tolk AI Brand Book v1.0) ── */
:root {
  /* 60% — Бездна (основной фон) */
  --abyss:        #021B1A;
  /* 30% — Тёмный изумруд */
  --emerald-dark: #03624C;
  /* 10% — Изумрудное сияние (только акценты и CTA) */
  --accent:       #00DF81;
  /* Малахитовая ночь — вторичные поверхности */
  --surface:      #032221;
  /* Морозная мята — лёгкий фон, разделители */
  --frost:        #F1F7F6;

  /* Текст */
  --text-primary:  #F1F7F6;
  --text-secondary: rgba(241, 247, 246, 0.55);
  --text-muted:    rgba(241, 247, 246, 0.3);

  /* Поверхности */
  --border:        rgba(241, 247, 246, 0.1);
  --border-accent: rgba(0, 223, 129, 0.25);
  --card-bg:       rgba(3, 34, 33, 0.8);
  --card-hover:    rgba(3, 98, 76, 0.2);

  --pad: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--text-primary);
  font-family: 'DM Mono', monospace;
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(2, 27, 26, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #03624C;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
}

.nav-logo-t {
  font-family: 'AA Stetica', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 26px;
  color: #F1F7F6;
  letter-spacing: -0.02em;
}

.nav-logo-dot {
  font-family: 'AA Stetica', sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #00DF81;
  letter-spacing: 0;
}

.nav-logo-text {
  font-family: 'AA Stetica', sans-serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-logo-text em {
  font-style: italic;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ── SECTIONS ── */
section {
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--border);
}

/* ── HERO ── */
#hero {
  padding-top: 140px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-left {
  position: relative;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 210px;
}

.hero-logo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 100%);
  aspect-ratio: 1;
  background: #03624C;
  border-radius: 22px;
}

.hero-logo-t {
  font-family: 'AA Stetica', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(160px, 20vw, 280px);
  color: #F1F7F6;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-logo-dot {
  font-family: 'AA Stetica', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(160px, 20vw, 280px);
  color: #00DF81;
  line-height: 1;
  margin-left: -0.05em;
}

/* Subtle noise texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(3, 98, 76, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0, 223, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.label {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}

#hero h1 {
  font-family: 'AA Stetica', sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  position: relative;
}

#hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  max-width: 600px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 40px;
  position: relative;
}

.hero-line {
  width: 40px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
  position: relative;
}

/* ── SECTION HEADER ── */
.section-header {
  padding-top: 88px;
  padding-bottom: 40px;
}

.section-sub {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'AA Stetica', sans-serif;
  font-size: clamp(35px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--text-primary);
}

.section-title em {
  font-style: normal;
  color: var(--accent);
}

/* ── SERVICES ── */
#services {
  border-bottom: none;
  padding-left: 0;
  padding-right: 0;
}

#services .section-header {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── STAGES CHAIN (horizontal) ── */
.stages-chain {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
}

.chain-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.chain-step-last { }
.chain-arrow { display: none; }

.chain-num {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'AA Stetica', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.chain-step:hover .chain-num,
.chain-step.chain-active .chain-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--abyss);
}

.chain-name {
  font-family: 'AA Stetica', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
  transition: color 0.25s;
}

.chain-step:hover .chain-name,
.chain-step.chain-active .chain-name { color: var(--text-primary); }

/* ── STAGE PANEL ── */
.stage-panel {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding: 40px var(--pad);
  position: relative;
  animation: fadeStage 0.3s ease;
}

.stage-panel[hidden] { display: none; }

@keyframes fadeStage {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  width: 100%;
  align-items: start;
}

/* stage-spine removed */

.smn-back {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.smn-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.smn-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  flex-shrink: 0;
  margin: 2px 0;
}

.smn-dot:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.smn-active {
  width: 40px !important; height: 40px !important;
  border-color: var(--accent) !important;
  background: rgba(0, 223, 129, 0.1) !important;
  color: var(--accent) !important;
  font-size: 11px !important;
}

.stage-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, rgba(0, 223, 129, 0.3), transparent);
  margin-top: 12px;
}

/* ── STAGE CONTENT ── */
.stage-content {
  width: 100%;
  padding-top: 4px;
}

.stage-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.8;
}

.stage-title {
  font-family: 'AA Stetica', sans-serif;
  font-size: clamp(35px, 3.5vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.stage-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 640px;
}

/* Steps */
.stage-steps {
  list-style: none;
  margin-bottom: 40px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.stage-steps li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.15s;
}

.step-dot {
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--emerald-dark);
  margin-top: 9px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.stage-steps li:hover .step-dot,
.stage-steps li.open .step-dot {
  background: var(--accent);
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-name {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step-name::after {
  content: '+';
  font-size: 16px;
  color: var(--emerald-dark);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.25s, color 0.2s;
  line-height: 1;
}

.stage-steps li.open .step-name::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.step-sub-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-steps li.open .step-sub-wrap {
  grid-template-rows: 1fr;
}

.step-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  overflow: hidden;
  padding-top: 0;
  transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-steps li.open .step-sub {
  padding-top: 8px;
}

/* ── CASES PANEL ── */
.stage-cases-panel {
  padding-top: 4px;
}

.stage-cases-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── CASE BANNER ── */
.case-banner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.case-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
  transition: filter 0.4s, transform 0.5s;
}



.case-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,27,26,0.92) 0%, rgba(2,27,26,0.3) 55%, transparent 100%);
}

.case-banner-body {
  position: relative;
  padding: 28px;
}

.case-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.9;
}

.case-title {
  font-family: 'AA Stetica', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.case-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── PARTNERS ── */
#partners {
  padding-top: 0;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.partners-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.partner-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 32px 28px;
  text-decoration: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.partner-item:nth-child(4n) { border-right: none; }
.partner-item:first-child { border-left: 1px solid var(--border); }

.partner-item::after {
  content: '↗';
  position: absolute;
  top: 28px;
  right: 24px;
  font-size: 16px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s, transform 0.2s;
}

.partner-item:hover {
  background: rgba(3, 98, 76, 0.15);
}

.partner-item:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.partner-name {
  font-family: 'AA Stetica', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.2s;
}

.partner-item:hover .partner-name {
  color: var(--accent);
}

.partner-desc {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.2s;
}

.partner-item:hover .partner-desc {
  color: var(--text-secondary);
}

/* ── CONTACTS ── */
#contacts {
  padding-top: 0;
  padding-bottom: 80px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.contact-value {
  font-family: 'AA Stetica', sans-serif;
  font-size: 27px;
  color: var(--text-primary);
  line-height: 1.4;
}

.contact-value a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.footer-text {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--emerald-dark);
}

.footer-link {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --pad: 32px; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .stages-chain { flex-wrap: wrap; }
  .chain-step { flex: 1 1 calc(50% - 1px); min-width: 160px; }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex !important; flex-direction: column; }
  #hero { padding-top: 100px; }
  .chain-step { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .chain-arrow { display: none; }
  .stage { min-height: auto; padding: 60px var(--pad); }
  .stage-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stage-spine { display: none; }
  .stage-content { grid-column: 1; }
  .stage-cases-panel {
    grid-column: 1;
    padding-top: 0;
  }
  .stage-cases { grid-template-columns: 1fr; }
  .partners-list { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px var(--pad);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cookie-banner-text a:hover { border-bottom-color: var(--accent); }

.cookie-btn {
  padding: 10px 28px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'AA Stetica', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-btn:hover {
  background: var(--accent);
  color: var(--abyss);
}

@media (max-width: 700px) {
  .cookie-banner-content { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
}

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.25s ease;
}

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

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: rgba(2,27,26,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--pad) 32px;
  z-index: 99;
  flex-direction: column;
  gap: 0;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
  font-size: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--accent); }

/* ── CHAIN MOBILE ── */
@media (max-width: 700px) {
  .stages-chain {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding: 0 var(--pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .stages-chain::-webkit-scrollbar { display: none; }
  .chain-step {
    flex: 0 0 auto;
    width: 120px;
    min-width: 120px;
    border-right: none !important;
    border-bottom: none !important;
    padding: 0 8px;
  }
  .chain-num {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
  .chain-name { font-size: 8px; }
}

/* ── CHAIN ARROWS INDICATOR ── */
.chain-arrows {
  display: none;
}

@media (max-width: 700px) {
  .chain-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-right: var(--pad);
  }
  .chain-arrow-btn {
    font-size: 22px;
    color: var(--emerald-dark);
    transition: color 0.2s;
    line-height: 1;
    user-select: none;
    cursor: pointer;
    padding: 8px 10px;
  }
  .chain-arrow-btn.active {
    color: var(--accent);
  }
}

/* ── LIGHT THEME ── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --abyss:          #F1F7F6;
    --emerald-dark:   #03624C;
    --accent:         #00DF81;
    --surface:        #E4EDEB;
    --frost:          #021B1A;
    --text-primary:   #021B1A;
    --text-secondary: rgba(2, 27, 26, 0.55);
    --text-muted:     rgba(2, 27, 26, 0.35);
    --border:         rgba(2, 27, 26, 0.1);
    --border-accent:  rgba(0, 223, 129, 0.4);
    --card-bg:        rgba(228, 237, 235, 0.8);
    --card-hover:     rgba(3, 98, 76, 0.08);
  }
}

[data-theme="light"] {
  --abyss:          #F1F7F6;
  --emerald-dark:   #03624C;
  --accent:         #00DF81;
  --surface:        #E4EDEB;
  --frost:          #021B1A;
  --text-primary:   #021B1A;
  --text-secondary: rgba(2, 27, 26, 0.55);
  --text-muted:     rgba(2, 27, 26, 0.35);
  --border:         rgba(2, 27, 26, 0.1);
  --border-accent:  rgba(0, 223, 129, 0.4);
  --card-bg:        rgba(228, 237, 235, 0.8);
  --card-hover:     rgba(3, 98, 76, 0.08);
}

[data-theme="light"] nav,
:root:not([data-theme="dark"]):is([style]) nav {
  background: rgba(241, 247, 246, 0.92);
}

[data-theme="light"] .nav-mobile-menu {
  background: rgba(241, 247, 246, 0.98);
}

[data-theme="light"] .case-banner-img {
  filter: brightness(0.6) saturate(0.7);
}

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  background: none;
  border: 1px solid var(--emerald-dark);
  color: var(--text-secondary);
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Show correct icon based on theme */
[data-theme="dark"] .theme-icon-light,
[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
  display: block;
}

/* ── NAV END GROUP ── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-end .nav-hamburger {
  display: none;
}

@media (max-width: 700px) {
  .nav-end {
    gap: 8px;
  }
  .nav-end .nav-links {
    display: none;
  }
  .nav-end .nav-hamburger {
    display: flex !important;
    flex-direction: column;
  }
}

/* ── CASE BANNER TEXT ALWAYS LIGHT ── */
.case-banner-body .case-tag {
  color: #00DF81 !important;
  opacity: 1 !important;
}
.case-banner-body .case-title {
  color: #F1F7F6 !important;
}
.case-banner-body .case-desc {
  color: rgba(241, 247, 246, 0.7) !important;
}
