/* ===== Custom Properties ===== */
:root {
  /* brand */
  --gold: #DD8E1F;
  --gold-deep: #96590C;
  /* mid-tone between --gold and --gold-deep: dark enough to read as a
     hover-darken, light enough that --navy text on it still clears
     WCAG AA (4.67:1) — --gold-deep drops navy-on-it to 3.11:1 */
  --gold-hover: #BA7416;
  --gold-soft: rgba(221, 142, 31, 0.08);
  --navy: #0B1A2D;
  --navy-mid: #15293F;
  --navy-deep: #0F2337;
  --navy-soft: rgba(11, 26, 45, 0.04);
  --accent-red: #B91C1C;
  --accent-green: #15803D;
  /* lighter tints for status markers on dark navy SVG backgrounds — the
     base --accent-red/--accent-green are ~2.3:1 contrast there, near-invisible */
  --accent-red-light: #F87171;
  --accent-green-light: #4ADE80;
  --accent-gold-light: #F2C066;
  /* inline-SVG illustration tokens: muted label text + hairline dividers on navy panels */
  --illust-label: #9AA7B5;
  --illust-hairline: #ffffff;

  /* surfaces */
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --cream: #F4F1EC;
  --warm-white: #FBFAF7;

  /* ink */
  --text: #0B1A2D;
  --text-muted: #5B6776;
  --text-subtle: #66707F;
  --hairline: rgba(11, 26, 45, 0.08);
  --hairline-strong: rgba(11, 26, 45, 0.14);

  /* type */
  --font-display: "Noto Serif TC", "Source Serif Pro", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* scale */
  --navbar-height: 68px;
  --max-width: 1200px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* shadow */
  --shadow-xs: 0 1px 2px rgba(11, 26, 45, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 26, 45, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 26, 45, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(11, 26, 45, 0.18);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

section[id] { scroll-margin-top: calc(var(--navbar-height) + 16px); }

/* Any translated text node can end up holding an unbroken long word (German
   compound nouns especially) in a narrow container — guard all of them at
   the source instead of re-adding this per heading class as it recurs. */
[data-i18n] { overflow-wrap: break-word; }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* dark-surface contexts need a light focus ring */
.navbar :focus-visible,
.hero :focus-visible,
.loss-banner :focus-visible,
.results :focus-visible,
.contact :focus-visible,
.footer :focus-visible {
  outline-color: var(--accent-gold-light);
}

.nav-cta:focus-visible,
.hero-cta:focus-visible,
.form-submit:focus-visible {
  outline-offset: 3px;
}

/* ===== Shared ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-label.light {
  color: var(--accent-gold-light);
}

.section-label.light::before {
  background: var(--accent-gold-light);
  opacity: 0.6;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 20px;
  text-wrap: balance;
}

.section-heading.light { color: #FBFAF7; }

.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in[data-delay="1"] { transition-delay: 0.08s; }
.fade-in[data-delay="2"] { transition-delay: 0.16s; }
.fade-in[data-delay="3"] { transition-delay: 0.24s; }
.fade-in[data-delay="4"] { transition-delay: 0.32s; }
.fade-in[data-delay="5"] { transition-delay: 0.40s; }
.fade-in[data-delay="6"] { transition-delay: 0.48s; }
.fade-in[data-delay="7"] { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .moat-icon,
  .result-icon { opacity: 1; transform: none; transition: none; }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(11, 26, 45, 0.82);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: var(--r-sm);
  object-fit: contain;
}

.logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: #FBFAF7;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a:not(.nav-cta):hover { color: #fff; }

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent-gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out-expo);
}

.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-disabled:hover { color: rgba(255, 255, 255, 0.72) !important; }
.nav-disabled::after { display: none; }

.nav-cta {
  background: var(--gold) !important;
  /* white on --gold is ~2.64:1, fails WCAG AA even for large text;
     --navy on --gold is 6.64:1 */
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(221, 142, 31, 0.35);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
}

/* Shared by every custom-chevron <select> on the page (this one + .form-group
   select below) — chevron SVG/size/position stays per-component since the
   two are different-sized controls, but appearance reset, no-repeat and the
   dark <option> styling are the same and shouldn't drift independently. */
.lang-select,
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-repeat: no-repeat;
}

.lang-select option,
.form-group select option {
  background: var(--navy);
  color: #fff;
}

.lang-select {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-full);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 26px 5px 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  /* Smaller twin of .form-group select's chevron below (10x6 vs 12x8) —
     same stroke color/width baked into both data-URIs; a CSS custom
     property can't parameterize a color inside a data: URI, so if the
     chevron color ever changes, update both. */
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 10px center;
}

.lang-select:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s;
}

.hamburger { position: relative; }
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero-track {
  position: relative;
  height: 240vh;
}

.hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* flex-start, not center: centering a block that can be taller than the
     viewport pushes it above y=0 and overflow:hidden clips the top clean
     off — that's what read as "overlapping the navbar" / "too compact".
     Top-anchored + a generous fluid top offset (below) is immune to that
     and never gets thinner than the navbar clearance it needs. */
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-static {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 15%, rgba(221, 142, 31, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy) 100%);
}

.hero-static::before,
.results-static::before {
  content: '';
  position: absolute;
  inset: 0;
  /* fallback for browsers without color-mix() (pre-2023) — same tint, hand-computed */
  background-image:
    linear-gradient(rgba(242, 192, 102, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 192, 102, 0.06) 1px, transparent 1px);
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent-gold-light) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent-gold-light) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at var(--mask-pos, 50% 50%), black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at var(--mask-pos, 50% 50%), black 0%, transparent 75%);
}

.hero-static::before {
  --mask-pos: 30% 35%;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out-expo);
}

.hero-canvas.ready {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 0% 100%, rgba(221, 142, 31, 0.22) 0%, transparent 55%),
    linear-gradient(180deg, rgba(11, 26, 45, 0.78) 0%, rgba(11, 26, 45, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  /* navbar height + a floor of 64px breathing room, scaling up on taller
     viewports — never thinner than the navbar needs, never as cramped as
     the old 120px minimum read in practice. clamp() nested in calc() so
     the navbar-height addition is written once, not per clamp argument. */
  padding: calc(var(--navbar-height) + clamp(64px, 9vh, 172px)) clamp(20px, 4vw, 48px) clamp(48px, 8vh, 96px);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold-light);
  /* pre-color-mix() fallback, same pattern as above */
  box-shadow: 0 0 0 4px rgba(242, 192, 102, 0.18);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-gold-light) 18%, transparent);
}

.hero-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--accent-gold-light);
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 6px;
  font-weight: 400;
}

.hero-subtitle-en {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.hero-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(221, 142, 31, 0.55);
}

.hero-cta svg { transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(4px); }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(40px, 6vh, 64px) clamp(20px, 4vw, 48px) clamp(36px, 5vh, 56px);
  max-width: var(--max-width);
  margin: clamp(40px, 6vh, 72px) auto 0;
  width: 100%;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 0.55em;
  opacity: 0.65;
  margin-left: 2px;
  font-weight: 500;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 4vw, 48px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== PROBLEM ===== */
.problem {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  min-height: 80vh;
  background: var(--bg);
}

.problem-visual {
  position: relative;
  overflow: hidden;
}

.problem-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
  filter: saturate(0.85);
}

.problem-content {
  padding: clamp(56px, 9vh, 112px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.crisis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}

.crisis-item {
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.crisis-item:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.crisis-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.crisis-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.crisis-quote {
  border-left: 2px solid var(--gold);
  padding: 18px 22px;
  margin-top: 12px;
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-xs);
}

.crisis-quote p {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  font-weight: 500;
}

.crisis-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-style: normal;
  letter-spacing: 0.01em;
}

.loss-banner {
  grid-column: 1 / -1;
  background: var(--navy);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.loss-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(221, 142, 31, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.loss-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: center;
  gap: clamp(40px, 8vw, 96px);
  flex-wrap: wrap;
  position: relative;
}

.loss-item {
  text-align: center;
}

.loss-number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.loss-unit {
  font-family: var(--font-display);
  font-size: 0.5em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-left: 2px;
}

.loss-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* ===== SOLUTION ===== */
.solution {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg);
}

.solution .container {
  text-align: left;
  margin-bottom: 56px;
}

.solution .section-lead {
  margin-bottom: 0;
}

.tech-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  padding: 0 clamp(20px, 4vw, 48px);
  max-width: 1320px;
  margin: 0 auto;
}

.tech-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.tech-panel:hover {
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.tech-panel.reverse .tech-panel-img { order: 2; }
.tech-panel.reverse .tech-panel-content { order: 1; }

.tech-panel-img {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.tech-illustration text {
  font-family: var(--font-body);
}

.tech-panel-img .tech-illustration {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.tech-panel:hover .tech-panel-img .tech-illustration {
  transform: scale(1.04);
}

.tech-number {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.tech-panel.reverse .tech-number {
  left: auto;
  right: 24px;
}

.tech-panel-content {
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-panel-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.tech-en {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.tech-panel-content > p:not(.tech-en) {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.tech-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-metrics span {
  padding: 5px 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(221, 142, 31, 0.18);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 500;
  font-feature-settings: "tnum";
}

.tech-metrics .correct {
  background: rgba(21, 128, 61, 0.07);
  border-color: rgba(21, 128, 61, 0.2);
  color: var(--accent-green);
}

.tech-metrics .incorrect {
  background: rgba(185, 28, 28, 0.06);
  border-color: rgba(185, 28, 28, 0.18);
  color: var(--accent-red);
}

.tech-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-tags span {
  padding: 4px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ===== PRODUCT ===== */
.product {
  padding: clamp(64px, 9vh, 100px) 0;
  background: var(--cream);
}

.product .container {
  text-align: left;
  margin-bottom: 0;
}

/* Brand tagline under the lead — same voice as .hero-slogan, but in
   --gold-deep for contrast on the cream background (the pairing
   .section-label already uses here) */
.product-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--gold-deep);
  letter-spacing: 0.01em;
  margin-top: 20px;
}

.product .tech-showcase {
  margin: 48px auto 0;
}

.compliance {
  padding: clamp(64px, 9vh, 100px) 0;
  background: var(--cream);
}

/* ===== PROCESS ===== */
.process {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--cream);
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(221, 142, 31, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.process .container {
  margin-bottom: 56px;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.timeline-line {
  position: absolute;
  left: 39px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(221, 142, 31, 0.25) 70%, transparent 100%);
  border-radius: 1px;
}

.timeline-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(221, 142, 31, 0.2);
  font-family: var(--font-display);
}

.timeline-content {
  padding-top: 8px;
  flex: 1;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.timeline-en {
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.timeline-content > p:not(.timeline-en) {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== RESULTS ===== */
.results {
  position: relative;
  padding: clamp(96px, 14vh, 160px) 0;
  overflow: hidden;
}

.results-bg {
  position: absolute;
  inset: 0;
}

.results-static {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy) 100%);
}

.results-static::before {
  --mask-pos: 80% 20%;
}

.results-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(221, 142, 31, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, rgba(11, 26, 45, 0.95) 0%, rgba(21, 41, 63, 0.92) 100%);
}

.results-inner {
  position: relative;
  z-index: 2;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.result-card {
  padding: 32px 24px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  text-align: left;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold-light);
  border-radius: 0 0 2px 0;
  opacity: 0.7;
}

.result-card:hover {
  background: rgba(255, 255, 255, 0.07);
  /* pre-color-mix() fallback, same pattern as above */
  border-color: rgba(242, 192, 102, 0.35);
  border-color: color-mix(in srgb, var(--accent-gold-light) 35%, transparent);
  transform: translateY(-3px);
}

.result-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0;
  transform: scale(0.5) rotate(10deg);
  transition: transform 0.5s var(--ease-out-expo) 0.1s, opacity 0.4s ease 0.1s;
}

.result-icon svg {
  width: 20px;
  height: 20px;
}

.fade-in.visible .result-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.result-card:hover .result-icon {
  transform: scale(1.08) rotate(4deg);
}

.result-metric {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  font-feature-settings: "tnum";
}

.result-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}

.result-compare {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.result-old {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.result-compare svg {
  color: var(--accent-gold-light);
  flex-shrink: 0;
  opacity: 0.7;
}

.result-new {
  color: var(--accent-gold-light);
  font-weight: 600;
}

/* ===== ADVANTAGE ===== */
.advantage {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg);
}

.compare-table-wrap {
  overflow-x: auto;
  margin: 36px 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table thead {
  background: var(--navy-soft);
}

.compare-table th {
  padding: 16px 22px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--hairline);
}

.compare-table td {
  padding: 18px 22px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table tbody tr {
  transition: background 0.2s;
}

.compare-table tbody tr:hover {
  background: var(--gold-soft);
}

.edge-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.moats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.moat {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.moat:hover {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.moat-line {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 16px;
  border-radius: 2px;
}

.moat h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.moat p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.moat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  transition: transform 0.5s var(--ease-out-expo) 0.1s, opacity 0.4s ease 0.1s;
}

.moat-icon svg {
  width: 20px;
  height: 20px;
}

.fade-in.visible .moat-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.moat:hover .moat-icon {
  transform: scale(1.08) rotate(-4deg);
}

/* ===== Section decorative watermarks (results / advantage) ===== */
.results-illustration {
  position: absolute;
  top: 50%;
  right: clamp(-40px, 2vw, 40px);
  transform: translateY(-50%);
  width: clamp(200px, 26vw, 340px);
  height: clamp(200px, 26vw, 340px);
  color: var(--accent-gold-light);
  opacity: 0.14;
  pointer-events: none;
}

.advantage {
  position: relative;
}

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

.advantage-illustration {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(320px, 46vw, 620px);
  height: clamp(320px, 46vw, 620px);
  color: var(--gold);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.compliance-disclaimer {
  margin-top: 32px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}

/* ===== FAQ ===== */
.faq {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--cream);
}

.faq-list {
  margin-top: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 22px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===== CONTACT ===== */
.contact {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(221, 142, 31, 0.18) 0%, transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  position: relative;
}

.contact-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-top: 20px;
  max-width: 440px;
}

.contact-desc-en {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  max-width: 440px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 40px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: #fff;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='rgba(255,255,255,0.5)' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(221, 142, 31, 0.18);
}

.form-group input:focus:not(:focus-visible),
.form-group select:focus:not(:focus-visible),
.form-group textarea:focus:not(:focus-visible) {
  outline: none;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent-gold-light);
  outline-offset: 1px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  margin-top: 4px;
}

.form-submit:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(221, 142, 31, 0.5);
}

.form-submit svg { transition: transform 0.2s; }
.form-submit:hover svg { transform: translateX(4px); }

/* ===== PILOT (free pilot application) ===== */
.pilot {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(221, 142, 31, 0.18) 0%, transparent 55%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: clamp(80px, 12vh, 140px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pilot-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  text-align: center;
}

.pilot-inner .section-label,
.pilot-inner .contact-desc {
  margin-left: auto;
  margin-right: auto;
}

.pilot-form {
  text-align: left;
  margin-top: 40px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

.footer-brand a:hover { color: var(--accent-gold-light); }

.footer-brand .logo-mark {
  width: 26px;
  height: 26px;
}

.footer-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-link svg {
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

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

.footer-link:hover svg {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-rights {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .moats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Eight nav items + CTA (added Free Pilot / Application) don't reliably fit a
   shrinking flex row at tablet widths — the CTA button's text wraps
   internally before the row as a whole "overflows" in any way a
   container-width check would catch. Simplest correct fix: use the mobile
   (hamburger) nav in this whole band instead of trying to squeeze a 9-item
   row. Re-measured after adding German (longest labels): the logo/lang-
   select/first-nav-link cluster collides (0px gap) as low as 1121px, not
   comfortable again until ~1195px. Breakpoint set to 1200px for margin
   above that. */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(11, 26, 45, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px clamp(20px, 4vw, 48px);
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links.active { display: flex; }

  .nav-cta {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-content {
    /* smaller, fixed breathing room than the desktop clamp — mobile
       viewports are short, so the vh-scaled desktop padding (up to 240px
       top / 96px bottom) would eat too much of the screen */
    padding-top: calc(var(--navbar-height) + 32px);
    padding-bottom: 32px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

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

  .problem-img {
    min-height: 280px;
  }

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

  .tech-panel,
  .tech-panel.reverse {
    grid-template-columns: 1fr;
  }

  .tech-panel.reverse .tech-panel-img,
  .tech-panel.reverse .tech-panel-content {
    order: 0;
  }

  .tech-panel-img .tech-illustration {
    height: 240px;
  }

  .tech-number {
    left: 24px !important;
    right: auto !important;
  }

  .timeline-line { left: 19px; }

  .timeline-marker {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
    gap: 16px;
  }

  .scroll-hint { display: none; }

  /* 16px inputs prevent iOS Safari's auto-zoom on focus */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem;
  }

  .lang-select {
    font-size: 1rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }

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

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

  .loss-banner-inner {
    flex-direction: column;
    gap: 28px;
  }

  .hero-title {
    font-size: 2.25rem;
  }
}

/* .hero is a fixed height:100vh sticky pin (hero3d.js scrubs the 3D scene
   to scroll progress over it) — it can't grow to fit content, so on short
   viewports hero-content's width-driven type scale can push the CTA button
   past the clip boundary entirely invisible (measured: gone below ~780px
   viewport height at 1440 width, well within normal laptop-with-chrome
   territory). Trim the vertical rhythm and drop the decorative stats row
   so the headline + CTA always fit.
   Every property below is !important: source order alone proved fragile
   here — two max-width blocks (768px, then 480px) each independently
   re-broke this same fix by setting the same properties later in the
   file. !important makes the short-viewport case win regardless of where
   a future max-width block lands, no file-position discipline required. */
@media (max-height: 820px) {
  .hero-content {
    padding-top: calc(var(--navbar-height) + 24px) !important;
    padding-bottom: 24px !important;
  }

  .hero-badge { margin-bottom: 16px !important; }

  .hero-slogan { display: none !important; }

  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem) !important;
    margin-bottom: 14px !important;
  }

  .hero-subtitle { margin-bottom: 4px !important; }

  .hero-stats { display: none !important; }
}
