/* =====================================================================
   SCOPE — Smart Port Data Platform
   Design System — Editorial Black & White + single deep-navy accent
   Two-colour base · pill signature · flat elevation · one restrained accent
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Base */
  --ink:            #000000;
  --canvas:         #ffffff;
  --canvas-soft:    #efefef;
  --canvas-softer:  #f3f3f3;
  --surface-pressed:#e2e2e2;
  --black-elevated: #1c1c1c;

  /* Text */
  --body:           #5e5e5e;
  --hairline-mid:   #4b4b4b;
  --mute:           #afafaf;
  --on-dark:        #ffffff;
  --link:           #0000ee;
  --hairline:       #e6e6e6;

  /* Accent — deep navy. The single point colour (versatile, not only environmental). */
  --accent:         #1E3A8A;
  --accent-strong:  #16285E;
  --accent-soft:    #eaeef7;
  --accent-on-dark: #8AB0FF;

  /* Radius */
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --pill: 999px;
  --pill-tab: 36px;

  /* Elevation */
  --sh1: 0 4px 16px 0 rgba(0,0,0,0.10);
  --sh2: 0 8px 30px -6px rgba(0,0,0,0.16);
  --sh3: 0 2px 8px 0 rgba(0,0,0,0.16);

  /* Type */
  --font-display: "Inter", "Pretendard", system-ui, sans-serif;
  --font-body: "Inter", "Pretendard", system-ui, -apple-system, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --gap: clamp(16px, 2.4vw, 24px);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* Legacy aliases → mono so inline styles degrade gracefully */
  --navy:#fff; --navy-2:#fff; --surface:#fff; --surface-2:#f3f3f3;
  --line:#e6e6e6; --line-strong:#e2e2e2;
  --text:#000; --text-soft:#5e5e5e; --muted:#5e5e5e; --muted-2:#afafaf;
  --aqua:#1E3A8A; --cyan:#1E3A8A; --mint:#1E3A8A; --amber:#5e5e5e; --coral:#000;
  --grad-brand:#000; --grad-brand-soft:#efefef; --grad-mint:#000;
  --radius:16px; --radius-lg:16px; --radius-sm:12px; --shadow:0 4px 16px 0 rgba(0,0,0,0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
  /* Korean: break on words/phrases, never mid-syllable */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Language visibility ---------- */
html[data-lang="ko"] .lang-en { display: none !important; }
html[data-lang="en"] .lang-ko { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(56px, 8vw, 96px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }
.grid { display: grid; gap: var(--gap); }
.center { text-align: center; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); word-break: keep-all; text-wrap: balance; }
p, li { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.flow-arrow { width: 1px; height: 18px; background: var(--surface-pressed); margin: 2px auto; }
.h-display { font-size: clamp(2.3rem, 5.2vw, 3.25rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.02em; }
.h1 { font-size: clamp(1.9rem, 3.6vw, 2.25rem); line-height: 1.24; }
.h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); line-height: 1.24; }
.h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.125rem); color: var(--body); font-weight: 400; line-height: 1.6; }
.muted { color: var(--mute); }
.soft { color: var(--body); }
.balance { text-wrap: balance; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}

/* legacy accent-text utilities → the single teal accent */
.gradient-text { color: var(--accent); -webkit-text-fill-color: currentColor; background: none; }
.mint-text { color: var(--accent); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.25;
  padding: 12px 22px; border-radius: var(--pill);
  transition: background .2s var(--ease), color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--black-elevated); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: var(--canvas-soft); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-pressed); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-text { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.btn-text svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn-text:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover svg { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--canvas);
  transition: box-shadow .25s var(--ease), border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .logo-mark { width: 28px; height: 28px; flex: none; color: var(--accent); }
.brand span.wordmark { color: var(--ink); -webkit-text-fill-color: currentColor; background: none; }
.brand-symbol { height: 30px; width: auto; flex: none; display: block; }
.brand-word { height: 15px; width: auto; flex: none; display: block; margin-top: 2px; }
.footer-brand .brand { gap: 10px; }
.footer-brand .brand-symbol { height: 32px; }
.footer-brand .brand-word { height: 16px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--ink); padding: 8px 14px; border-radius: var(--pill); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--canvas-soft); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle { display: inline-flex; border: 1px solid var(--surface-pressed); border-radius: var(--pill); overflow: hidden; }
.lang-toggle button { padding: 7px 12px; font-size: 0.8rem; font-weight: 600; color: var(--body); transition: color .2s, background .2s; }
.lang-toggle button.active { color: var(--on-dark); background: var(--ink); }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: var(--pill); border: 1px solid var(--surface-pressed); align-items: center; justify-content: center; }
.menu-btn span { position: relative; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
body.menu-open .menu-btn span { background: transparent; }
body.menu-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { position: fixed; inset: 68px 0 0 0; z-index: 999; background: var(--canvas); padding: 24px clamp(16px,4vw,32px); display: flex; flex-direction: column; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
body.menu-open .mobile-nav { transform: none; opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; padding: 14px 4px; border-bottom: 1px solid var(--hairline); color: var(--ink); }
.mobile-nav a.active { color: var(--accent); }
.mobile-nav .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 116px; padding-bottom: clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .num { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.hero-meta .lbl { font-size: 0.82rem; color: var(--body); margin-top: 2px; max-width: 160px; }

/* Hero dashboard card — light request-form aesthetic */
.hero-visual { position: relative; }
.dash { position: relative; border-radius: var(--r-xl); border: 1px solid var(--hairline); background: var(--canvas); box-shadow: var(--sh2); overflow: hidden; }
.dash-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.dash-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-pressed); }
.dash-dot.live { background: var(--accent); margin-left: auto; animation: pulse 2s infinite; }
.dash-top .t { font-size: 0.78rem; color: var(--body); font-weight: 500; }
.dash-body { padding: 16px; display: grid; gap: 12px; }
.kpi-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.kpi { background: var(--canvas-soft); border-radius: var(--r-md); padding: 12px 13px; }
.kpi .k { font-size: 0.66rem; color: var(--body); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 500; }
.kpi .v { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; margin-top: 4px; color: var(--ink); }
.kpi .v small { font-size: 0.8rem; font-weight: 600; }
.kpi.up .v { color: var(--accent); }
.kpi.warn .v { color: var(--ink); }
.dash-chart { background: var(--canvas-softer); border-radius: var(--r-md); padding: 14px 16px; }
.dash-chart .ttl { font-size: 0.76rem; color: var(--body); font-weight: 500; display: flex; justify-content: space-between; }
.dash-chart .ttl b { color: var(--accent); font-weight: 700; }
.spark { width: 100%; height: 60px; margin-top: 10px; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s var(--ease) forwards; }
.spark path.area { fill: var(--accent-soft); opacity: 0; animation: fade 1.4s ease .7s forwards; }
.berth-row { display: grid; gap: 8px; }
.berth { display: grid; grid-template-columns: 54px 1fr 46px; align-items: center; gap: 10px; font-size: 0.74rem; }
.berth .name { color: var(--body); font-weight: 500; }
.berth .track { height: 7px; border-radius: var(--pill); background: var(--surface-pressed); overflow: hidden; }
.berth .fill { height: 100%; border-radius: var(--pill); background: var(--accent); width: 0; animation: grow 1.4s var(--ease) forwards; }
.berth.b2 .fill { background: var(--mute); }
.berth .eta { color: var(--ink); font-weight: 600; text-align: right; }
.dash-float { position: absolute; right: -12px; bottom: 34px; z-index: 3; background: var(--canvas); border-radius: var(--pill); padding: 11px 16px; box-shadow: var(--sh3); display: flex; align-items: center; gap: 11px; animation: floaty 5s ease-in-out infinite; }
.dash-float .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-dark); }
.dash-float .big { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.dash-float .sm { font-size: 0.68rem; color: var(--body); }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: clamp(20px, 2.4vw, 28px); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.card:hover { box-shadow: var(--sh1); transform: translateY(-3px); border-color: #dcdcdc; }
.card .ic { width: 50px; height: 50px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--body); font-size: 0.97rem; line-height: 1.55; }
.card .tag { display: inline-block; margin-top: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.feature-num { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; background: var(--canvas); }
.stat-cell { padding: clamp(22px,2.6vw,34px); text-align: center; border-right: 1px solid var(--hairline); }
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-family: var(--font-display); font-size: clamp(1.9rem,3.4vw,2.6rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.stat-cell .lbl { color: var(--body); font-size: 0.88rem; margin-top: 8px; }

/* ---------- Split feature row ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.feature-row.rev .feature-media { order: -1; }
.feature-list { display: grid; gap: 14px; margin-top: 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 0.98rem; line-height: 1.5; }
.feature-list .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-dark); margin-top: 2px; }
.feature-list .ck svg { width: 12px; height: 12px; }

.media-frame { border-radius: var(--r-xl); border: 1px solid var(--hairline); overflow: hidden; background: var(--canvas); box-shadow: var(--sh1); position: relative; }
.media-frame .mf-top { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.media-frame .mf-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-pressed); }
.media-frame .mf-top i:first-child { background: var(--accent); }
.media-frame .mf-body { padding: 22px; }

/* ---------- Video placeholder (editorial frame) ---------- */
.video-ph { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--hairline); background: var(--canvas-soft); display: grid; place-items: center; text-align: center; }
.video-ph .vp-inner { position: relative; z-index: 2; padding: 24px; }
.video-ph .play { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; background: var(--accent); display: grid; place-items: center; color: var(--on-dark); box-shadow: 0 0 0 8px rgba(30,58,138,0.10); }
.video-ph .play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-ph .vp-label { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.video-ph .vp-sub { color: var(--body); font-size: 0.85rem; margin-top: 6px; }
.video-ph .vp-corner { position: absolute; top: 16px; left: 18px; z-index: 2; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; }
.video-ph .vp-ratio { position: absolute; bottom: 16px; right: 18px; z-index: 2; font-size: 0.72rem; color: var(--mute); letter-spacing: 0.06em; }
.video-ph[data-size="wide"] { aspect-ratio: 21/9; }

/* ---------- Chip / category ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--pill); background: var(--canvas-soft); font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Steps (inline number + title) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { border-top: 2px solid var(--accent); padding-top: 16px; }
.step-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.step-no { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--accent); letter-spacing: 0.04em; flex: none; }
.step h4 { font-size: 1.02rem; }
.step p { font-size: 0.9rem; color: var(--body); line-height: 1.55; }

/* ---------- Flow list (numbered rows, spaced number) ---------- */
.flow { display: grid; }
.flow-row { display: grid; grid-template-columns: 72px 1fr; gap: 24px; align-items: start; padding: 24px 4px; border-bottom: 1px solid var(--hairline); }
.flow-row:first-child { border-top: 1px solid var(--hairline); }
.flow-no { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--accent); line-height: 1; }
.flow-c h4 { font-size: 1.12rem; margin-bottom: 5px; }
.flow-c p { font-size: 0.96rem; color: var(--body); line-height: 1.55; }
@media (max-width: 520px) { .flow-row { grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 2px; } .flow-no { font-size: 1.25rem; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 52px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .item { display: flex; align-items: center; gap: 10px; color: var(--body); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.marquee .item .d { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Partner logo bar (uniform grid) ---------- */
.logo-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; }
.logo-cell { background: var(--canvas); min-height: 104px; display: grid; place-items: center; padding: 20px 18px; transition: background .2s; }
.logo-cell:hover { background: var(--canvas-softer); }
.logo-img { max-height: 46px; max-width: 160px; width: auto; object-fit: contain; transition: transform .2s, opacity .2s; }
.logo-cell:hover .logo-img { transform: scale(1.04); }
.logo-cell--blue { background: #004ea1; }
.logo-cell--blue:hover { background: #004ea1; }
.logo-cell--dark { background: #101010; }
.logo-cell--dark:hover { background: #101010; }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .005em; color: var(--body); text-align: center; line-height: 1.3; transition: color .2s; }
.logo-cell:hover .logo-word { color: var(--accent); }
.logo-cell--blue .logo-word, .logo-cell--dark .logo-word { color: #fff; }
.logo-cell--blue:hover .logo-word, .logo-cell--dark:hover .logo-word { color: #fff; }
.logo-word small { display: block; font-size: .72rem; font-weight: 500; color: var(--mute); letter-spacing: .04em; margin-top: 3px; }
@media (max-width: 860px) { .logo-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .logo-bar { grid-template-columns: 1fr 1fr; } .logo-word { font-size: .92rem; } }

/* ---------- Partner logo marquee (auto-scroll) ---------- */
.logo-marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.lm-track { display: flex; align-items: center; gap: clamp(52px, 7vw, 100px); width: max-content; animation: marquee 26s linear infinite; }
.lm-track img { height: 46px; width: auto; flex: none; display: block; }
.logo-marquee:hover .lm-track { animation-play-state: paused; }
@media (max-width: 600px) { .lm-track img { height: 38px; } .lm-track { gap: 48px; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--hairline); }
.tl-item { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--hairline); }
.tl-item::before { content: ""; position: absolute; left: 0; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--accent); }
.tl-date { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 0.84rem; }
.tl-item h4 { margin: 4px 0 4px; font-size: 1.05rem; }
.tl-item p { color: var(--body); font-size: 0.92rem; line-height: 1.5; }

/* ---------- Table ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dtable th { text-align: left; font-weight: 600; color: var(--body); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 12px 14px; border-bottom: 2px solid var(--accent-soft); }
.dtable td { padding: 13px 14px; border-bottom: 1px solid var(--hairline); color: var(--ink); }
.dtable tr:hover td { background: var(--canvas-softer); }
.dtable a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(30,58,138,0.35); transition: text-decoration-color .2s; }
.dtable a:hover { text-decoration-color: var(--accent); }
.dtable a svg { width: 13px; height: 13px; opacity: .7; }
.badge { display: inline-block; padding: 3px 11px; border-radius: var(--pill); font-size: 0.74rem; font-weight: 600; }
.badge.ok { background: var(--accent-soft); color: var(--accent-strong); }
.badge.low { background: var(--canvas-soft); color: var(--body); }
.badge.warn { background: var(--ink); color: var(--on-dark); }

/* ---------- Dark promo band (polarity flip) ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); padding: clamp(36px,5vw,64px); text-align: center; background: var(--ink); color: var(--on-dark); }
.cta-band .h2, .cta-band h2, .cta-band h3 { color: var(--on-dark); }
.cta-band .eyebrow { color: var(--accent-on-dark); }
.cta-band .lead { color: rgba(255,255,255,0.72); }
.cta-band .gradient-text { color: var(--accent-on-dark); }
.cta-band .btn-primary { background: var(--canvas); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--canvas-soft); }
.cta-band .btn-ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.cta-band .h2 { margin-bottom: 16px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.cta-band .steps .step { border-top-color: var(--accent-on-dark); }
.cta-band .steps .step-no { color: var(--accent-on-dark); }
.cta-band .steps .step h4 { color: var(--on-dark); }
.cta-band .steps .step p { color: rgba(255,255,255,0.62); }
.cta-band .card { background: var(--black-elevated); border-color: #333; color: var(--on-dark); }
.cta-band .card h3 { color: var(--on-dark); }
.cta-band .card p { color: rgba(255,255,255,0.66); }
.cta-band .card:hover { box-shadow: none; transform: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; color: var(--ink); font-weight: 500; }
.field input, .field textarea, .field select { background: var(--canvas-soft); border: 1px solid transparent; border-radius: var(--r-md); padding: 13px 15px; color: var(--ink); font-family: inherit; font-size: 0.95rem; transition: border-color .2s, background .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e5e5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background-color: var(--canvas); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: 56px 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand { margin-bottom: 14px; color: var(--on-dark); }
.footer-brand .brand .logo-mark { color: var(--accent-on-dark); }
.footer-brand .brand .wordmark { color: var(--on-dark); }
.footer-brand p { color: var(--mute); font-size: 0.9rem; max-width: 320px; line-height: 1.6; }
.footer-col h5 { font-size: 0.8rem; font-weight: 600; color: var(--on-dark); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--mute); font-size: 0.92rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent-on-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.15); flex-wrap: wrap; }
.footer-bottom p { color: var(--mute); font-size: 0.84rem; }
.footer-biz { color: var(--mute); font-size: 0.78rem; line-height: 1.6; margin-top: 36px; }
.footer-privacy { color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.footer-privacy:hover { color: var(--on-dark); }
/* Legal / document page */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--body); font-size: 0.95rem; line-height: 1.7; }
.legal ul { margin: 8px 0 8px 18px; list-style: disc; }
.legal li { margin-bottom: 4px; }
.legal .legal-meta { color: var(--mute); font-size: 0.88rem; margin-top: 8px; }
.legal table.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.92rem; }
.legal table.legal-table th, .legal table.legal-table td { border: 1px solid var(--hairline); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal table.legal-table th { background: var(--canvas-soft); font-weight: 600; color: var(--ink); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: grid; place-items: center; color: var(--on-dark); transition: .2s; }
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }

/* ---------- Page hero ---------- */
.page-hero { padding-top: 108px; padding-bottom: clamp(24px,4vw,44px); position: relative; }
.page-hero .crumbs { font-size: 0.84rem; color: var(--body); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.page-hero .crumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { margin: 14px 0 18px; max-width: 880px; }
.page-hero .lead { max-width: 680px; }

[id] { scroll-margin-top: 88px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .06s; }
.reveal[data-d="2"] { transition-delay: .12s; }
.reveal[data-d="3"] { transition-delay: .18s; }
.reveal[data-d="4"] { transition-delay: .24s; }
.reveal[data-d="5"] { transition-delay: .3s; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { width: var(--w, 70%); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; }
  .cards-4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-desktop { display: none; }
  .menu-btn { display: flex; }
  .feature-row, .feature-row.rev .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row.rev .feature-media { order: -1; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2,1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 22px; }
  .dash-float { display: none; }
}

/* ============ Mobile optimization ============ */
@media (max-width: 600px) {
  .container { padding-inline: 18px; }
  .section { padding-block: clamp(44px, 12vw, 64px); }
  .hero { padding-top: 98px; }
  .page-hero { padding-top: 92px; }
  .h-display { font-size: clamp(2rem, 8.6vw, 2.7rem); line-height: 1.16; }
  .h1 { font-size: clamp(1.7rem, 6.6vw, 2rem); }
  .h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .lead { font-size: 1rem; }
  .hero h1 { margin: 14px 0 16px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  /* hero dashboard mock */
  .dash-body { padding: 13px; gap: 10px; }
  .kpi { padding: 10px 11px; }
  .kpi .v { font-size: 1.2rem; }
  .kpi .k { font-size: 0.62rem; }
  /* tables → horizontal scroll instead of breaking */
  .media-frame .mf-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dtable { font-size: 0.84rem; }
  .dtable th, .dtable td { padding: 9px 10px; }
  /* feature media order: media under copy reads better */
  .cta-band { padding: 32px 20px; }
  .cta-actions { gap: 10px; }
  .cta-actions .btn { width: 100%; }
  .footer-biz { font-size: 0.72rem; line-height: 1.7; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .timeline::before { left: 6px; }
  .lm-track img { height: 34px; }
}
@media (max-width: 380px) {
  .kpi-row { gap: 6px; }
  .kpi .v { font-size: 1.05rem; }
  .hero-meta .num { font-size: 1.45rem; }
  .stat-cell .num { font-size: 1.7rem; }
}
