/* WIA site shared styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --ink: #121317;
  --muted: #6b7280;
  --line: #eceff3;
  --brand: #ff6900;
  --brand-2: #ff8d3a;
  --green: #16a34a;
  --red: #dc2626;
  --blue: #2563eb;
  --amber: #d97706;
  --accent-soft: #fff0e6;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(236,239,243,.86);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
  color: var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: white; font-size: 15px;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; transition: .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: transparent; border: 0; color: var(--muted);
  font-size: 14px; padding: 8px 0; display: flex; align-items: center; gap: 5px;
}
.nav-dropdown-trigger::after { content: "▾"; font-size: 10px; }
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger { color: var(--ink); }
.nav-dropdown-menu {
  position: absolute; top: 34px; left: -12px; min-width: 128px;
  background: #ffffff; border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
  box-shadow: 0 16px 40px rgba(18,19,23,.12);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { padding: 8px 10px; border-radius: 8px; display: block; }
.nav-dropdown-menu a:hover { background: var(--accent-soft); color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-switch { white-space: nowrap; flex-shrink: 0; background: #fff0e6 !important; color: #121317 !important; border: 1px solid rgba(255,105,0,.22) !important; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  border-radius: 999px; padding: 11px 18px; font-weight: 650; font-size: 14px;
  border: 1px solid transparent; transition: .2s;
}
.btn-primary { background: var(--brand); color: white; box-shadow: 0 8px 24px rgba(255,105,0,.24); }
.btn-primary:hover { background: #e85d00; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(255,105,0,.32); background: #fff0e6; }
.btn-light { background: white; color: #171717; }
.btn-outline-light { border-color: rgba(255,105,0,.32); color: var(--brand); }
.btn-sm { padding: 8px 13px; font-size: 13px; }

.hero {
  color: var(--ink); background:
    radial-gradient(circle at 20% 15%, rgba(255,105,0,.14), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(255,141,58,.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #fafafa 100%);
  padding: 98px 0 84px; overflow: hidden;
}
.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,105,0,.22);
  background: #fff0e6; color: #c2410c;
  padding: 8px 12px; border-radius: 999px; font-size: 13px; margin-bottom: 24px;
}
.hero h1 {
  margin: 0; font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -.055em;
  font-weight: 780;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #ff8d3a, #ff6900, #ffb27a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-paper-subtitle {
  display: block; max-width: 820px; margin: 24px auto 0;
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 650;
  line-height: 1.25; letter-spacing: -.025em;
}
.hero-subtitle { font-size: 20px; color: var(--muted); margin: 22px auto 30px; max-width: 760px; line-height: 1.7; }
.hero-authors { margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.team-link { color: var(--ink); font-weight: 650; }
.team-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; color: var(--muted); font-size: 12px; letter-spacing: .05em; }

.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { color: var(--brand); font-weight: 750; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { margin: 10px 0 14px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; line-height: 1.03; }

.section-head p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.promo-section { padding-top: 52px; scroll-margin-top: 90px; }
.promo-wrap { max-width: 960px; }
.promo-section .section-head { margin-bottom: 28px; }
.promo-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 13px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 16px 40px rgba(15,23,42,.05);
}
.stat-value { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.stat-label { color: var(--muted); margin-top: 6px; font-size: 14px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,105,0,.25); box-shadow: 0 20px 45px rgba(15,23,42,.08); }
.card-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: #fff0e6; color: var(--brand); margin-bottom: 18px; font-size: 20px;
}
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  color: var(--brand); font-weight: 800; font-size: 13px;
  display: block; margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: white; border-radius: 999px;
  padding: 10px 16px; font-weight: 650; color: #374151; font-size: 14px;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }

.table-card { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #fafafa; color: #4b5563; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.metric-good { color: var(--green); font-weight: 750; }
.result-table { min-width: 940px; }
.result-table .group td { background: #fafafa; color: #4b5563; font-weight: 750; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.result-table .best { background: #ffe3e3; color: var(--red); font-weight: 800; }
.result-table .second { background: #e3f0ff; color: var(--blue); font-weight: 700; }
.result-table .ours td { background: #f1f1f8; }
.result-table .ours .model-name { font-weight: 800; }
.result-table .ours td.best { background: #ffe3e3; font-weight: 800; }
.result-table .ours td.second { background: #e3f0ff; font-weight: 700; }
.result-table .placeholder-row td { color: var(--muted); }
.result-table th:not(:first-child),
.result-table td:not(:first-child) { text-align: center; }
.result-table th:first-child,
.result-table td:first-child { text-align: left; }
.result-table .group td { text-align: center; }
.table-note { text-align: center; color: var(--muted); margin-top: 12px; font-size: 13px; }
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.resource-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; transition: .25s;
}
.resource-card:hover { transform: translateY(-4px); border-color: rgba(255,105,0,.25); box-shadow: 0 20px 45px rgba(15,23,42,.08); }
.resource-icon { width: 42px; height: 42px; color: var(--brand); margin-bottom: 16px; }
.resource-card h3 { margin: 0 0 10px; font-size: 20px; }
.resource-card p { color: var(--muted); line-height: 1.7; margin: 0 0 20px; }
.model-matrix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.matrix-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; transition: .25s;
}
.matrix-card:hover { transform: translateY(-4px); border-color: rgba(255,105,0,.25); box-shadow: 0 20px 45px rgba(15,23,42,.08); }
.matrix-scale { color: var(--brand); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.matrix-card h3 { margin: 0 0 8px; font-size: 16px; }
.matrix-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.cta {
  background: linear-gradient(135deg, #171310, #111318);
  color: white; text-align: center; padding: 84px 0; border-radius: 28px;
}
.cta h2 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; }
.cta p { color: rgba(255,255,255,.62); max-width: 640px; margin: 0 auto 28px; line-height: 1.7; }

.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

.page-hero { color: var(--ink); background:
    radial-gradient(circle at 50% -10%, rgba(255,105,0,.13), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%); padding: 76px 0 52px; text-align: center; }
.page-hero h1 { margin: 14px 0 12px; font-size: clamp(38px, 6vw, 62px); letter-spacing: -.045em; }
.page-hero p { color: var(--muted); max-width: 700px; margin: 0 auto; line-height: 1.7; }
.domain-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.domain-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; border: 1px solid var(--line);
  color: #374151; border-radius: 999px; padding: 10px 15px;
  font: inherit; font-size: 14px; cursor: pointer; transition: .2s;
}
.domain-tab:hover { background: #fff0e6; color: var(--ink); transform: translateY(-1px); }
.domain-tab.active { background: var(--brand); border-color: var(--brand); color: white; box-shadow: 0 10px 26px rgba(255,105,0,.26); }
.domain-icon { font-size: 16px; line-height: 1; }

@media (max-width: 900px) {
  .stats-grid, .grid-3, .grid-2, .steps, .resource-grid { grid-template-columns: 1fr 1fr; }
  .model-matrix { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 700px) {
  .nav-inner {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 0;
  }
  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
  }
}
@media (max-width: 620px) {
  .stats-grid, .grid-3, .grid-2, .steps, .resource-grid, .model-matrix { grid-template-columns: 1fr; }
  .hero { padding-top: 68px; }
  .hero h1 { font-size: 44px; }
  .footer-inner { flex-direction: column; }
}

/* Demo gallery */
.demo-page { width: min(1180px, calc(100% - 40px)); padding: 28px 0 70px; }
.demo-shell { display: grid; gap: 18px; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.demo-head h2 { margin: 4px 0 8px; font-size: 28px; letter-spacing: -.03em; }
.demo-head p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 760px; }
.demo-kicker { color: var(--brand); font-weight: 750; font-size: 13px; letter-spacing: .08em; }
.video-frame {
  background: #0b0b0c;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(18,19,23,.14);
  aspect-ratio: 16 / 9;
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b0b0c; }
@media (max-width: 700px) {
  .demo-head { flex-direction: column; }
  .video-frame { border-radius: 16px; }
}

:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
