﻿/* ============================================
   SILKECON — "Elite Tech" Redesign
   Inspired by premium technology product sites
   Palette: True black + signature green + white
   Signature: Bold tight headlines, green keylines,
   chevron links, glow on hover, grid-lit hero
   (All class names + CSS variables preserved so
    every page and the i18n / tool scripts keep working.)
   ============================================ */

:root {
  /* Surfaces */
  --black:       #F4F2EC;   /* page ground (light)      */
  --black-soft:  #FFFFFF;   /* cards / panels (light)   */
  --ink:         #F2EFE8;   /* hover surface (light)    */
  /* Brand accent — KafilWay navy (matches the logo) + gold.
     Red and green below are SEMANTIC ONLY (danger / safe) and are
     deliberately not used for branding, so a red on this site always
     means risk to the worker. */
  --accent:        #1259A8;   /* primary blue — matches the logo mark  */
  --accent-br:     #1565C0;   /* lighter blue — hover / links / active */
  --accent-deep:   #0A4A9E;   /* deep blue                             */
  --accent-deepest:#083A7A;   /* darkest blue tint                     */
  /* Light surfaces */
  --cream:       #EDEAE1;
  --cream-dim:   #e6e1d8;
  --white:       #1B1613;
  /* Secondary accent (gold) */
  --gold:        #9c7320;
  /* Text */
  --text-dark:   #2a2a2a;
  --text-mid:    #5f574c;
  --text-light:  #4a4139;
  --text-faint:  #857c6f;
  /* Lines */
  --line:        rgba(22,17,10,0.12);
  --line-dark:   rgba(0,0,0,0.10);
  /* Semantic */
  --green:       #2f8f57;
  --red:         #cc333a;
  /* Motion + layout */
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
  --max:         1200px;
  --glow:        0 20px 44px -24px rgba(60,30,20,0.30);
  /* Type */
  --display:     'Archivo', 'Inter', system-ui, sans-serif;
  --body:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: #ffffff; }

/* Page scrollbar — thin, dark, green thumb */
* { scrollbar-width: thin; scrollbar-color: #c7bba2 var(--black); }
body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--black); }
body::-webkit-scrollbar-thumb { background: #c7bba2; border: 3px solid var(--black); border-radius: 20px; }
body::-webkit-scrollbar-thumb:hover { background: #b3a88e; }

/* Keyboard focus — green ring everywhere (accessibility / polish) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-br);
  outline-offset: 2px;
}

/* ============================================
   DISPLAY TYPOGRAPHY — the signature
   Big headlines: tight, bold, mixed-case.
   ============================================ */
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.06;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }

/* ============================================
   ANNOUNCEMENT BAR — green keyline strip
   ============================================ */
.announce {
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: #ffffff;
  text-align: center;
  padding: 0.7rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 60;
}
.announce a { text-decoration: underline; font-weight: 700; text-underline-offset: 3px; color: #ffffff; }
.announce a:hover { color: #000; }

/* ============================================
   HEADER / NAV — translucent, blurred, sticky
   ============================================ */
.site-header {
  background: rgba(247,242,231,0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.28));
  transition: transform var(--transition);
}
.brand:hover .brand-mark { transform: translateY(-1px) scale(1.04); }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--white);
}
.brand-name b { font-weight: 700; color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 1;
}
.nav-link {
  font-size: 0.95rem;
  color: var(--text-light);
  letter-spacing: 0.005em;
  position: relative;
  padding: 0.2rem 0;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent-br);
  box-shadow: 0 0 8px var(--accent-br);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--white); }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-btn {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.95rem; color: var(--text-light);
  white-space: nowrap; padding: 0.2rem 0;
  transition: color var(--transition);
}
.nav-dd:hover .nav-dd-btn { color: var(--white); }
.nav-dd-btn svg { width: 11px; height: 11px; transition: transform var(--transition); }
.nav-dd:hover .nav-dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  background: rgba(252,248,240,0.98);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 250px;
  padding: 0.5rem;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 70;
  box-shadow: 0 24px 60px -22px rgba(60,30,20,0.20);
}
.nav-dd:hover .dd-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dd-menu a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text-light);
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.dd-menu a:hover { color: var(--white); background: rgba(21,101,192,0.10); border-left-color: var(--accent-br); }

/* Language */
.lang {
  display: flex; align-items: center; gap: 0.4rem;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}
.lang button {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-faint);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.lang button:hover { color: var(--white); background: rgba(0,0,0,0.05); }
.lang button.active { color: #ffffff; background: var(--accent); }

/* Hamburger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; flex-shrink: 0; }
.burger span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--black-soft);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.8rem 0; font-size: 1rem; color: var(--white); border-bottom: 1px solid var(--line); }
.mobile-nav .mlabel { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-br); padding: 1.1rem 0 0.3rem; font-weight: 700; }
.mobile-nav .mlang { display: flex; gap: 0.75rem; padding-top: 1rem; }
.mobile-nav .mlang button { font-size: 0.82rem; letter-spacing: 0.06em; font-weight: 600; color: var(--text-faint); padding: 0.3rem 0.7rem; border-radius: 6px; }
.mobile-nav .mlang button.active { color: #ffffff; background: var(--accent); }

/* ============================================
   HERO — full-bleed photo + grid + green glow
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  overflow: hidden;
  text-align: center;
}

/* Auto-rotating slideshow (NVIDIA-style) */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity, transform;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 30% 35%, rgba(10,74,158,0.40) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.60) 0%, rgba(10,10,10,0.78) 55%, rgba(10,10,10,0.97) 100%);
}
.hero-slide.active { opacity: 1; animation: heroZoom 9s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }

/* Crossfading content layers */
.hero-stage { position: absolute; inset: 0; z-index: 2; }
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 9rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.hero-content > * { max-width: 940px; }
.hero-content.active { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.15s; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Bottom segmented progress tabs */
.hero-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 0 1.5rem 1.5rem;
}
.hero-tab {
  text-align: left;
  display: flex; flex-direction: column; gap: 0.6rem;
  background: none;
}
.ht-track {
  height: 3px; width: 100%;
  background: rgba(255,255,255,0.22);
  border-radius: 3px; overflow: hidden;
}
.ht-fill {
  display: block; height: 100%; width: 100%;
  background: var(--accent-br);
  box-shadow: 0 0 8px var(--accent-br);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}
.ht-label {
  font-size: 0.82rem; letter-spacing: 0.02em; line-height: 1.3;
  color: rgba(255,255,255,0.55); font-weight: 600;
  transition: color var(--transition);
}
.hero-tab:hover .ht-label, .hero-tab.active .ht-label { color: var(--white); }
@media (max-width: 680px) {
  .hero-tabs { grid-template-columns: repeat(2, 1fr); gap: 0.85rem 1rem; }
  .ht-label { font-size: 0.72rem; }
  .hero-content { padding-bottom: 7.5rem; }
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 18%, rgba(21,101,192,0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.78) 55%, rgba(10,10,10,0.98) 100%);
}
/* Animated triangular mesh over the hero (NVIDIA-style geometric motion) */
.hero-mesh {
  position: absolute; inset: -2px; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(60deg, rgba(201,160,78,0.10) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(-60deg, rgba(201,160,78,0.10) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 64px);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 0%, transparent 82%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 0%, transparent 82%);
  animation: meshDrift 26s linear infinite;
}
@keyframes meshDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to   { background-position: 148px 0, -148px 0, 0 128px; }
}
/* Slow-sweeping navy spotlight */
.hero-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 42vw at 32% 42%, rgba(21,101,192,0.28) 0%, transparent 58%);
  animation: glowSweep 15s ease-in-out infinite alternate;
}
@keyframes glowSweep {
  from { transform: translateX(-9%); opacity: 0.65; }
  to   { transform: translateX(13%); opacity: 1; }
}
.hero-inner { position: relative; z-index: 1; max-width: 940px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(3rem, 8.5vw, 6.6rem);
  line-height: 0.98;
  margin-bottom: 1.6rem;
  color: var(--white);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 36px rgba(201,160,78,0.45);
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--text-light);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-br);
  margin-bottom: 1.4rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(21,101,192,0.35);
  border-radius: 100px;
  background: rgba(21,101,192,0.07);
}

/* ============================================
   PAGE TITLE BAND
   ============================================ */
.title-band {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(21,101,192,0.18) 0%, transparent 55%),
    linear-gradient(120deg, #1a0608 0%, #2b1013 60%);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.title-band::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  z-index: 2;
  background: linear-gradient(180deg, var(--accent-br), transparent);
}
.title-band-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.title-band .crumb {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 1.25rem;
}
.title-band .crumb a { color: rgba(255,255,255,0.88); }
.title-band .crumb a:hover { color: var(--accent-br); }
.title-band h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.0;
  color: #ffffff;
}
.title-band p {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  max-width: 660px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 6.5rem 1.5rem; position: relative; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section.light { background: var(--cream); color: var(--text-dark); }
.section.light h2, .section.light h3 { color: var(--text-dark); }
.section.dark { background: var(--black); }
.section.ink { background: var(--black-soft); }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-br);
  margin-bottom: 1rem;
  font-weight: 700;
}
.section.light .section-head .eyebrow { color: var(--accent-deep); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.04;
}
.section-head p {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  font-weight: 400;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-mid);
}
.section.dark .section-head p, .section.ink .section-head p { color: var(--text-light); }

/* Prose */
.prose { max-width: 820px; margin: 0 auto; }
.prose p {
  font-size: 1.13rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.75rem;
  color: var(--text-dark);
}
.section.dark .prose p, .section.ink .prose p { color: var(--text-light); }
.prose a { color: var(--accent-br); text-decoration: underline; text-underline-offset: 3px; }
.section.light .prose a { color: var(--accent-deep); }
.prose a:hover { opacity: 0.78; }

/* ============================================
   BUTTONS — green primary w/ black label (signature)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2.2rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: #ffffff;
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: var(--white); transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px -10px rgba(21,101,192,0.6);
}
.btn-primary:hover {
  background: var(--accent-br);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(21,101,192,0.7);
}
.btn-dark { background: var(--white); color: var(--black); }
.btn-dark:hover { background: var(--accent-br); }
.btn-outline-dark { border-color: var(--text-dark); color: var(--text-dark); background: transparent; }
.btn-outline-dark:hover { background: var(--text-dark); color: #F4EEE1; }
.btn-full { width: 100%; }

/* ============================================
   TOOL / PROGRAM CARDS — green keyline + glow
   ============================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.section.light .tool-grid { background: var(--line-dark); border-color: var(--line-dark); }
.tool-card {
  padding: 2.4rem 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 290px;
  position: relative;
  background: var(--black-soft);
  overflow: hidden;
}
.section.light .tool-card { background: var(--white); }
.tool-card::before {
  content: '';
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-br));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.tool-card:hover { background: var(--ink); transform: translateY(-6px); z-index: 2; box-shadow: var(--glow); }
.section.light .tool-card:hover { background: var(--cream); }
.tool-card:hover::before { transform: scaleX(1); }
.tool-card .tc-top { height: 3px; width: 44px; background: var(--accent); border-radius: 2px; margin-bottom: 0.4rem; transition: width var(--transition); }
.tool-card:hover .tc-top { width: 72px; }
.tool-card .tc-icon { font-size: 1.9rem; line-height: 1; }
.tool-card h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.32rem;
  line-height: 1.15;
}
.tool-card p { font-size: 0.94rem; font-weight: 400; color: var(--text-light); line-height: 1.65; }
.section.light .tool-card p { color: var(--text-mid); }
.tool-card .tc-link {
  margin-top: auto;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-br);
  display: flex; align-items: center; gap: 0.45rem;
  transition: gap var(--transition);
}
.tool-card:hover .tc-link { gap: 0.85rem; }
.section.light .tool-card .tc-link { color: var(--accent-deep); }

/* ============================================
   STATS STRIP
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.light .stats { background: var(--line-dark); border-color: var(--line-dark); }
.stat {
  padding: 2.8rem 1.5rem;
  text-align: center;
  background: var(--black);
  transition: background var(--transition);
}
.section.light .stat { background: var(--cream); }
.stat:hover { background: var(--black-soft); }
.stat .num {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  color: var(--accent-br);
  line-height: 1;
  text-shadow: 0 0 28px rgba(21,101,192,0.25);
}
.section.light .stat .num { color: var(--accent-deep); text-shadow: none; }
.stat .lbl {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-light);
  font-weight: 400;
}
.section.light .stat .lbl { color: var(--text-mid); }

/* ============================================
   CORRIDOR MAP
   ============================================ */
.corridor-map { max-width: 760px; margin: 0 auto; }

/* ============================================
   TOOL APP LAYOUT
   ============================================ */
.app {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}
.panel {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.results { display: flex; flex-direction: column; gap: 1.5rem; }
.result-box {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
}
.result-box h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.input {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  padding: 0.8rem 1rem;
  font-size: 0.98rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus { outline: none; border-color: var(--accent-br); box-shadow: 0 0 0 3px rgba(21,101,192,0.15); }
.input::placeholder { color: var(--text-faint); }
select.input option { background: var(--ink); }

.divider { height: 1px; background: var(--line); margin: 1.5rem 0; }
.sublabel {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-br);
  margin-bottom: 1rem;
  font-weight: 700;
}
.input-suffix-wrap { display: flex; }
.input-suffix-wrap .input { border-right: none; border-radius: 8px 0 0 8px; }
.input-suffix {
  display: flex; align-items: center;
  padding: 0 1rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row .rlabel { font-size: 0.9rem; color: var(--text-light); }
.row .rval { font-family: var(--mono); font-weight: 600; font-size: 0.98rem; }
.row .rval.big { font-size: 1.6rem; font-weight: 400; }
.rval.green { color: var(--green); }
.rval.red { color: var(--red); }
.rval.gold { color: var(--gold); }
.rval.accent { color: var(--accent-br); }

.bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 0.5rem 0; }
.bar-fill { height: 100%; transition: width 0.6s ease; }
.bar-fill.accent { background: var(--accent-br); }
.bar-fill.green { background: var(--green); }
.bar-fill.gold { background: var(--gold); }
.bar-fill.red { background: var(--red); }

.note {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent-br);
  border-radius: 0 8px 8px 0;
  background: rgba(21,101,192,0.08);
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.6;
}
.note.green { border-left-color: var(--green); background: rgba(78,193,126,0.08); }
.note.red { border-left-color: var(--red); background: rgba(204,51,58,0.08); }
.note.gold { border-left-color: var(--gold); background: rgba(194,240,74,0.08); }

.empty { text-align: center; padding: 3rem 1.5rem; color: var(--text-faint); }
.empty .eicon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.45; }
.empty p { font-size: 0.95rem; font-weight: 400; }

.chart-wrap { position: relative; height: 260px; margin-top: 1rem; }
.chart-wrap.lg { height: 320px; }

/* Data table */
.dtable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dtable th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.dtable td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); color: var(--text-light); }
.dtable tr:last-child td { border-bottom: none; }
.dtable td.num { font-family: var(--mono); }
.dtable td.name { color: var(--white); font-weight: 500; }
.dtable td.best { color: var(--green); }
.dtable td.worst { color: var(--red); }
.best-row { background: rgba(78,193,126,0.07); }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; }
.badge.green { background: rgba(78,193,126,0.15); color: var(--green); }
.badge.gold { background: rgba(194,240,74,0.15); color: var(--gold); }
.badge.red { background: rgba(204,51,58,0.15); color: var(--red); }

/* ============================================
   CHAT (Advisor)
   ============================================ */
.chat-wrap { max-width: 840px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.chat {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: 560px;
  overflow: hidden;
}
.chat-top { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; }
.chat-av { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--ink); }
.chat-id { display: flex; flex-direction: column; }
.chat-nm { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.chat-on { font-size: 0.74rem; color: var(--green); display: flex; align-items: center; gap: 0.4rem; }
.chat-on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--line); }
.m { display: flex; gap: 0.85rem; max-width: 88%; }
.m.user { align-self: flex-end; flex-direction: row-reverse; }
.m-av { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; border: 1px solid var(--line); }
.m-bub { padding: 0.85rem 1.1rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.6; font-weight: 400; }
.m.ai .m-bub { background: var(--ink); color: var(--text-light); }
.m.user .m-bub { background: var(--accent); color: #ffffff; }
.m-bub strong { color: var(--accent-br); font-weight: 700; }
.m.user .m-bub strong { color: #ffffff; }
.m-time { display: block; font-size: 0.7rem; color: var(--text-faint); margin-top: 0.4rem; }
.typing { display: none; gap: 4px; padding: 0.85rem 1.1rem; align-items: center; }
.typing.show { display: flex; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: tb 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes tb { 0%,60%,100% { transform: translateY(0);} 30% { transform: translateY(-6px);} }
.chat-in { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); display: flex; gap: 0.85rem; align-items: flex-end; }
.chat-ta { flex: 1; background: var(--black); border: 1px solid var(--line); border-radius: 8px; color: var(--white); padding: 0.8rem 1rem; resize: none; min-height: 46px; max-height: 120px; font-size: 0.92rem; line-height: 1.5; }
.chat-ta:focus { outline: none; border-color: var(--accent-br); }
.chat-send { width: 46px; height: 46px; border-radius: 8px; background: var(--accent); color: #ffffff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.chat-send:hover { background: var(--accent-br); transform: translateY(-1px); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-send svg { width: 18px; height: 18px; }
.suggest { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.sg { border: 1px solid var(--line); border-radius: 100px; padding: 0.55rem 1rem; font-size: 0.82rem; color: var(--text-light); transition: all var(--transition); font-weight: 400; }
.sg:hover { border-color: var(--accent-br); color: var(--white); background: rgba(21,101,192,0.08); }

/* ============================================
   RESEARCH
   ============================================ */
.research { max-width: var(--max); margin: 0 auto; padding: 4rem 1.5rem 6rem; display: grid; grid-template-columns: 230px 1fr; gap: 4rem; align-items: start; }
.r-side { position: sticky; top: 100px; }
.r-side .stitle { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem; font-weight: 700; }
.r-side a { display: block; padding: 0.55rem 0; font-size: 0.92rem; color: var(--text-faint); border-left: 2px solid transparent; padding-left: 1rem; transition: all var(--transition); font-weight: 400; }
.r-side a:hover, .r-side a.active { color: var(--white); border-left-color: var(--accent-br); }
.r-body h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; font-size: clamp(1.7rem,3vw,2.4rem); margin: 3.5rem 0 1.25rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.r-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.r-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.r-body p { font-size: 1.05rem; font-weight: 400; line-height: 1.8; margin-bottom: 1.5rem; color: var(--text-light); }
.r-body ul { margin-bottom: 1.5rem; }
.r-body ul li { padding: 0.4rem 0 0.4rem 1.5rem; position: relative; color: var(--text-light); font-weight: 400; }
.r-body ul li::before { content: '›'; position: absolute; left: 0; color: var(--accent-br); font-weight: 700; }
.r-body strong { color: var(--white); font-weight: 700; }
.quote { border-left: 2px solid var(--accent-br); padding: 1.25rem 1.75rem; margin: 2rem 0; font-style: italic; color: var(--text-faint); background: rgba(21,101,192,0.06); border-radius: 0 10px 10px 0; }
.quote strong { color: var(--accent-br); font-style: normal; }
.stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 2rem 0; }
.stat-cards .sc { background: var(--black-soft); padding: 1.75rem 1.25rem; text-align: center; }
.stat-cards .sc .n { font-family: var(--display); font-weight: 700; font-size: 2.1rem; color: var(--accent-br); }
.stat-cards .sc .l { font-size: 0.8rem; color: var(--text-faint); margin-top: 0.5rem; font-weight: 400; }
.src-card { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; transition: border-color var(--transition); }
.src-card:hover { border-color: var(--accent-br); }
.src-card strong { display: block; color: var(--white); margin-bottom: 0.3rem; }
.src-card .stag { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); }

/* ============================================
   ABOUT
   ============================================ */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.about-split .as { padding: 3rem; background: var(--black-soft); }
.about-split .as .kicker { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-br); margin-bottom: 1rem; font-weight: 700; }
.about-split .as h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; font-size: 1.9rem; margin-bottom: 1.25rem; }
.about-split .as p { font-size: 1rem; font-weight: 400; line-height: 1.8; color: var(--text-light); margin-bottom: 1rem; }
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stack-grid .si { background: var(--black-soft); padding: 1.75rem; transition: background var(--transition); }
.stack-grid .si:hover { background: var(--ink); }
.stack-grid .si .ic { font-size: 1.6rem; margin-bottom: 0.75rem; }
.stack-grid .si strong { display: block; margin-bottom: 0.4rem; font-weight: 700; }
.stack-grid .si span { font-size: 0.85rem; color: var(--text-faint); font-weight: 400; line-height: 1.5; }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; position: relative; padding-bottom: 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: 119px; top: 14px; bottom: -6px; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-yr { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-br); text-align: right; padding-top: 2px; }
.tl-dot { position: absolute; left: 114px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent-br); box-shadow: 0 0 10px var(--accent-br); }
.tl-body h4 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }
.tl-body p { font-size: 0.92rem; color: var(--text-faint); font-weight: 400; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--black); border-top: 1px solid var(--line); padding: 4.5rem 1.5rem 2.5rem; margin-top: auto; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-faint); font-weight: 400; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1.25rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-faint); font-weight: 400; }
.footer-col ul a:hover { color: var(--accent-br); }
.footer-bottom { max-width: var(--max); margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-faint); font-weight: 400; }

/* ============================================
   ANIM
   ============================================ */
.fade { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.fade.in { opacity: 1; transform: translateY(0); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent-br); border-radius: 50%; animation: sp 0.7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .nav-links, .lang { display: none; }
  .burger { display: flex; }
  .app { grid-template-columns: 1fr; }
  .panel { position: static; }
  .research { grid-template-columns: 1fr; gap: 2rem; }
  .r-side { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .r-side .stitle { width: 100%; }
  .r-side a { border-left: none; border-bottom: 2px solid transparent; padding: 0.4rem 0.75rem; }
  .r-side a:hover, .r-side a.active { border-left: none; border-bottom-color: var(--accent-br); }
  .about-split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 78vh; }
}
@media (max-width: 620px) {
  .section { padding: 4rem 1.25rem; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }
  .chat { height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none; }
  * { scroll-behavior: auto; }
}

/* ============================================
   Country Guides
   ============================================ */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.guide-card {
  display: flex;
  gap: 1.5rem;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  transition: all var(--transition);
  align-items: flex-start;
}
.guide-card:hover { background: var(--ink); transform: translateY(-6px); border-color: var(--accent-br); box-shadow: var(--glow); }
.gc-flag {
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--accent-br);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.gc-body { flex: 1; }
.gc-body h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.gc-body p { font-size: 0.92rem; font-weight: 400; color: var(--text-light); line-height: 1.6; margin-bottom: 1.25rem; }
.gc-meta { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gc-meta span { font-size: 0.85rem; color: var(--text-faint); display: flex; justify-content: space-between; }
.gc-meta b { color: var(--text-light); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.gc-link { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-br); font-weight: 700; }

/* Guide article layout */
.guide-article { max-width: 860px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.guide-quickfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
}
.qf { background: var(--black-soft); padding: 1.5rem 1.25rem; text-align: center; }
.qf .qf-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem; }
.qf .qf-value { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.qf .qf-value.accent { color: var(--accent-br); }

.guide-section { margin-bottom: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.guide-section:first-of-type { border-top: none; padding-top: 0; }
.guide-section h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.guide-section h2 .gs-icon { font-size: 1.4rem; }
.guide-section p { font-size: 1.05rem; font-weight: 400; line-height: 1.8; color: var(--text-light); margin-bottom: 1.25rem; }
.guide-section strong { color: var(--white); font-weight: 700; }
.guide-steps { counter-reset: step; margin: 1.5rem 0; }
.guide-step { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; align-items: flex-start; }
.guide-step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 38px; height: 38px;
  border: 1px solid var(--accent-br);
  color: var(--accent-br);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
  box-shadow: inset 0 0 12px rgba(21,101,192,0.18);
}
.guide-step-body { flex: 1; padding-top: 0.4rem; }
.guide-step-body h4 { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.4rem; }
.guide-step-body p { font-size: 0.95rem; margin-bottom: 0; }
.guide-list { margin: 1.25rem 0; }
.guide-list li { padding: 0.5rem 0 0.5rem 1.75rem; position: relative; color: var(--text-light); font-weight: 400; line-height: 1.6; }
.guide-list li::before { content: '›'; position: absolute; left: 0; color: var(--accent-br); font-weight: 700; }
.guide-list.danger li::before { content: '⚠'; font-size: 0.85rem; }
.guide-list.good li::before { content: '✓'; color: var(--green); }
.cost-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.cost-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); color: var(--text-light); }
.cost-table td:last-child { text-align: right; font-family: var(--mono); color: var(--white); }
.cost-table tr:last-child td { border-bottom: none; font-weight: 700; }
.cost-table tr.total td { border-top: 2px solid var(--accent-br); color: var(--accent-br); }
.guide-callout { border-left: 2px solid var(--accent-br); background: rgba(21,101,192,0.08); border-radius: 0 10px 10px 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: 0.95rem; color: var(--text-light); font-weight: 400; line-height: 1.7; }
.guide-callout.warn { border-left-color: var(--red); background: rgba(204,51,58,0.08); }
.guide-callout.good { border-left-color: var(--green); background: rgba(78,193,126,0.08); }
.guide-callout strong { color: var(--white); }

@media (max-width: 620px) {
  .guide-card { flex-direction: column; gap: 1rem; }
  .gc-flag { font-size: 2.5rem; }
}

/* ============================================
   Rights / Emergency page
   ============================================ */
.situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.situation-btn {
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 0.98rem;
  font-weight: 500;
  transition: all var(--transition);
  line-height: 1.4;
}
.situation-btn:hover { border-color: var(--accent-br); color: var(--white); background: var(--ink); }
.situation-btn.active { border-color: var(--accent-br); background: var(--accent); color: #ffffff; font-weight: 700; }
.situation-detail {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.sd-block { background: var(--black-soft); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; }
.sd-block h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--accent-br);
}
.sd-steps { counter-reset: sd; }
.sd-steps li {
  counter-increment: sd;
  position: relative;
  padding: 0.5rem 0 0.75rem 2.5rem;
  color: var(--text-light);
  font-weight: 400;
  line-height: 1.6;
  font-size: 0.95rem;
}
.sd-steps li::before {
  content: counter(sd);
  position: absolute; left: 0; top: 0.5rem;
  width: 24px; height: 24px;
  background: var(--accent); color: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-card {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--accent-br); transform: translateY(-4px); box-shadow: var(--glow); }
.cc-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.contact-card h4 { font-family: var(--display); font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; line-height: 1.3; }
.cc-link { color: var(--accent-br); font-size: 0.9rem; word-break: break-all; }
.cc-link:hover { color: var(--accent); }

/* Contract analyzer */
.contract-tool { max-width: 860px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.contract-input {
  width: 100%;
  min-height: 220px;
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  padding: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: var(--body);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contract-input:focus { outline: none; border-color: var(--accent-br); box-shadow: 0 0 0 3px rgba(21,101,192,0.15); }
.contract-input::placeholder { color: var(--text-faint); }
.contract-results { margin-top: 2.5rem; }
.cr-block { background: var(--black-soft); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; margin-bottom: 1.5rem; }
.cr-block h3 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.2rem; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.cr-block.flags h3 { color: var(--red); }
.cr-block.summary h3 { color: var(--accent-br); }
.cr-block.questions h3 { color: var(--gold); }
.cr-block p { font-size: 1rem; font-weight: 400; line-height: 1.8; color: var(--text-light); }

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

/* ============================================
   TITLE BAND — typographic page heroes
   No photography: the band is built from the brand
   gradient plus a fine measured grid, so every page
   reads as an official document rather than a blog post.
   ============================================ */
.title-band { min-height: 260px; display: flex; align-items: flex-end; }
.title-band .title-band-inner { width: 100%; padding-bottom: 0.5rem; }
.title-band::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.030) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(85% 120% at 100% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(85% 120% at 100% 0%, #000 0%, transparent 72%);
}

/* ============================================
   GUIDE SUB-NAV (NVIDIA in-page section bar)
   ============================================ */
.guide-subnav {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: rgba(13,13,13,0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.gsn-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 1.75rem;
  padding: 0 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.gsn-inner::-webkit-scrollbar { display: none; }
.gsn-inner a {
  padding: 1.05rem 0;
  font-size: 0.9rem;
  color: var(--text-faint);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.gsn-inner a:hover { color: var(--white); }
.gsn-inner a.active { color: var(--white); border-bottom-color: var(--accent-br); }
.gsn-cta {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.55rem 1.3rem !important;
  font-size: 0.74rem !important;
  border-bottom: none !important;
}
@media (max-width: 680px) { .gsn-cta { display: none !important; } }

/* ============================================
   TOOL CARD IMAGES (NVIDIA news-card style)
   ============================================ */
/* Tool cards are now typographic: the .tc-top rule (defined with
   .tool-card above) does the work the image used to do. */

/* ============================================
   ANNOUNCE — dismissible
   ============================================ */
.announce { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.announce-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem; line-height: 1;
  transition: background var(--transition);
}
.announce-close:hover { background: rgba(0,0,0,0.22); color: #fff; }
.announce.hidden { display: none; }

/* ============================================
   MOTION — NVIDIA-style carousels, marquee, FX
   ============================================ */

/* Carousel header: title left, arrows right */
.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
.carousel-head .eyebrow {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-br); font-weight: 700; margin-bottom: 0.85rem;
}
.carousel-head h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.04;
}
.carousel-head p {
  margin-top: 0.75rem; color: var(--text-light); font-weight: 400; max-width: 540px;
}
.carousel-nav { display: flex; gap: 0.6rem; flex-shrink: 0; }
.car-arrow {
  width: 50px; height: 50px; border-radius: 8px;
  background: var(--black-soft); border: 1px solid var(--line);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.car-arrow svg { width: 18px; height: 18px; }
.car-arrow:hover:not(:disabled) {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(21,101,192,0.6);
}
.car-arrow:disabled { opacity: 0.3; cursor: default; }

/* Scroll-snap track */
.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 86%;
  scroll-snap-align: start;
}
@media (min-width: 620px) { .carousel-track > * { flex-basis: 320px; } }

/* Tool cards living inside a carousel get their own frame */
.carousel-track .tool-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 300px;
}
.carousel-track .tool-card:hover { border-color: var(--accent-br); }

/* Progress bar */
.carousel-progress {
  height: 3px; background: var(--line); border-radius: 4px;
  overflow: hidden; margin-top: 1.5rem; max-width: 360px;
}
.carousel-progress span {
  display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--accent), var(--accent-br));
  border-radius: 4px;
  transition: width 0.25s ease, margin-left 0.25s ease;
}

/* Continuous marquee ticker */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
  padding: 1.15rem 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--black-soft), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--black-soft), transparent); }
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--body); font-weight: 600; letter-spacing: 0.08em;
  font-size: 0.85rem; color: var(--text-faint); white-space: nowrap; text-transform: uppercase;
}
.marquee-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-br); flex-shrink: 0; }
.marquee-item .flag { font-size: 1.4rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Count-up: subtle entrance pop handled in JS; keep numbers tabular */
.stat .num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-glow, .marquee-track,
  .hero-slide.active, .hero-tab.active .ht-fill { animation: none !important; }
  .hero-slide, .hero-content { transition: none !important; }
  .hero-tab.active .ht-fill { transform: scaleX(1); }
  .carousel-track { scroll-behavior: auto; }
}

/* ============================================
   THREE-DOOR ROUTER (homepage)
   ============================================ */
.door-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.door-card {
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--black-soft);
  transition: all var(--transition);
}
.door-card:hover { background: var(--ink); }
.door-card .tc-top { height: 3px; width: 44px; background: var(--accent); border-radius: 2px; margin-bottom: 0.4rem; transition: width var(--transition); }
.door-card:hover .tc-top { width: 72px; }
.door-card h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.32rem;
  line-height: 1.15;
}
.door-card p { font-size: 0.94rem; font-weight: 400; color: var(--text-light); line-height: 1.65; }
.door-links { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.door-links a {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-br);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: gap var(--transition);
}
.door-links a::after { content: '\2192'; }
.door-links a:hover { gap: 0.85rem; }
@media (max-width: 720px) {
  .door-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HOMEPAGE UPGRADES (dark palette)
   ============================================ */
/* hero video slot + golden silk-route canvas */
.herovid { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.herovid.on { opacity: 0.55; }
#silk { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.85; }

/* sticky header shadow once scrolled */
.site-header.scrolled { box-shadow: 0 8px 26px -8px rgba(60,30,20,0.14); }

/* newsroom grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ncard { display: flex; flex-direction: column; background: var(--black-soft); transition: all var(--transition); }
.ncard:hover { background: var(--ink); }
.nvisual { height: 132px; position: relative; display: flex; align-items: flex-end; padding: 0.9rem; overflow: hidden; }
.nvisual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.nv-red { background: linear-gradient(135deg, #0A4A9E, #1259A8); }
.nv-gold { background: linear-gradient(135deg, #6b5325, #c9a04e); }
.nv-ink { background: linear-gradient(135deg, #141414, #2a2a2a); }
.chip { position: relative; z-index: 1; display: inline-block; padding: 0.3rem 0.75rem; border-radius: 100px; background: rgba(255,255,255,0.92); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #141414; }
.nbody { display: flex; flex-direction: column; flex: 1; gap: 0.6rem; padding: 1.4rem 1.5rem 1.5rem; }
.nbody h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nbody p { font-size: 0.9rem; font-weight: 400; color: var(--text-light); line-height: 1.6; flex: 1; }
.nlink { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--accent-br); transition: color var(--transition); }
.ncard:hover .nlink { color: var(--gold); }

/* official-sources band */
.sources { background: var(--accent-deepest); padding: 2.6rem 1.5rem; }
.sources-row { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.sources-row p { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.src-links { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.src-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 10px; font-size: 0.88rem; font-weight: 500; color: #ffffff; transition: all var(--transition); }
.src-links a:hover { background: rgba(255,255,255,0.1); border-color: #ffffff; }

/* fixed emergency pill (site-wide except rights.html) */
.sos { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.1rem 0 0.95rem; border-radius: 100px; background: var(--red); color: #ffffff; font-weight: 700; font-size: 0.85rem; box-shadow: 0 6px 18px rgba(204,51,58,0.4), 0 14px 40px rgba(0,0,0,0.45); transition: transform var(--transition), box-shadow var(--transition); }
.sos:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(204,51,58,0.5), 0 18px 48px rgba(0,0,0,0.5); }
.sos svg { width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 560px) { .sos-more { display: none; } }


/* ============================================
   HOMEPAGE HERO — light redesign
   ============================================ */
.home-hero { position: relative; padding: 4.5rem 1.5rem 4.25rem; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 80% at 90% 6%, rgba(18,89,168,0.06), transparent 60%); }
.home-hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hh-copy { max-width: 620px; }
.hh-badge { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; font-weight: 600;
  color: var(--text-light); background: var(--black-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 0.95rem; box-shadow: var(--glow); }
.hh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(47,143,87,0.18); }
.hh-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin: 1.5rem 0 1rem; }
.hh-head { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.96;
  font-size: clamp(2.7rem, 6vw, 5rem); }
.hh-head em { font-style: normal; color: var(--accent); position: relative; }
.hh-head em::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 0.06em; height: 0.09em;
  background: #c9a04e; opacity: 0.6; border-radius: 2px; }
.hh-sub { font-size: 1.1rem; color: var(--text-light); margin-top: 1.4rem; max-width: 34ch; line-height: 1.65; }
.hh-cta { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.hh-assure { display: flex; gap: 1.4rem; margin-top: 1.6rem; flex-wrap: wrap;
  color: var(--text-faint); font-size: 0.84rem; font-weight: 500; }
.hh-assure > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hh-assure svg { color: var(--green); flex-shrink: 0; }
.hh-stage { position: relative; height: 460px; }
.hh-medallion { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-52%);
  width: 214px; height: 238px; }
.hh-emblem-shape { position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 34px 52px rgba(18,89,168,0.42)); }
.hh-emblem-in { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.6rem; padding-bottom: 34px; color: #fff; text-align: center; }
.hh-shield { width: 44px; height: 44px; }
.hh-emblem-in span { font-size: 0.72rem; letter-spacing: 0.03em; font-weight: 600; max-width: 140px; line-height: 1.35; opacity: 0.94; }
.hh-card { position: absolute; display: flex; align-items: center; gap: 0.7rem;
  background: var(--black-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.75rem 1rem; box-shadow: 0 26px 46px -26px rgba(60,30,20,0.45), 0 2px 6px rgba(60,30,20,0.05);
  z-index: 2; animation: hhfloat 7s ease-in-out infinite; }
.hh-card-t { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.hh-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.hh-ic.ok { background: rgba(47,143,87,0.14); color: var(--green); }
.hh-ic.warn { background: rgba(178,106,18,0.16); color: #b26a12; }
.hh-ic.crim { background: rgba(18,89,168,0.12); color: var(--accent); }
.hh-c1 { left: -6px; top: 30px; animation-delay: -1s; }
.hh-c2 { right: -14px; top: 148px; animation-delay: -3.5s; }
.hh-c3 { left: 14px; bottom: 26px; animation-delay: -5s; }
@keyframes hhfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 1rem; }
  .hh-stage { height: 360px; order: 2; margin-top: 1.5rem; }
  .hh-sub { max-width: none; }
}
@media (max-width: 560px) { .hh-stage { height: 320px; transform: scale(0.9); transform-origin: center top; } }
@media (prefers-reduced-motion: reduce) { .hh-card { animation: none; } }

/* ============================================================
   LIVE OFFICIAL DATA
   Figures pulled from named official publishers at runtime
   (/api/live). Hidden until real data arrives — see live-data.js.
   ============================================================ */
.live-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--black-soft);
  padding: 1.25rem 1.5rem;
  margin: 0 0 3rem;
}
.live-box[hidden] { display: none; }
.live-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 1rem;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47,143,87,0.55);
  animation: livePulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,143,87,0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(47,143,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,143,87,0); }
}
.live-head .live-when { margin-left: auto; letter-spacing: 0.04em; text-transform: none; font-weight: 500; }
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem 1.5rem;
}
.live-item { min-width: 0; }
.live-label {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 0.3rem;
}
.live-value {
  font-family: var(--mono);
  font-size: 1.02rem; font-weight: 600; color: var(--white);
  overflow-wrap: anywhere;
}
.live-value.accent { color: var(--accent-br); }
.live-src {
  margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--text-faint); line-height: 1.6;
}
.live-src a { color: var(--accent-br); text-decoration: none; }
.live-src a:hover { text-decoration: underline; }
.live-stale {
  display: inline-block; margin-top: 0.4rem;
  font-size: 0.75rem; color: var(--red);
}
.live-stale[hidden] { display: none; }
@media (max-width: 560px) {
  .live-box { padding: 1.1rem 1.15rem; }
  .live-head .live-when { margin-left: 0; width: 100%; }
}
