/* Voice Command AI landing page
   Brand: docs/brand/brand-definition.md (Command Blue, Deep Navy, Voice Cyan, Cloud White).
   No build step. Mobile first, 360 px to 1440 px. */

/* ---------- Fonts (self-hosted, OFL; see fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Pretendard is subset to the Korean glyphs this page uses and only loads when Hangul is rendered. */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/pretendard-ko-subset-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+AC00-D7AF, U+FF01-FF60;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --blue: #0361F7;          /* Command Blue */
  --blue-600: #0252D4;
  --blue-700: #0143AE;
  --navy: #101B35;          /* Deep Navy */
  --navy-900: #0A1226;
  --navy-800: #142143;
  --navy-700: #1B2B54;
  --cyan: #00CFE8;          /* Voice Cyan: accents only, never small text */
  --cloud: #F5F7FB;         /* Cloud White */
  --light-blue: #DCE6F7;    /* Light Blue */
  --white: #FFFFFF;

  /* Text */
  --ink: #101B35;
  --ink-muted: #47536E;     /* 7.4:1 on Cloud White */
  --on-navy: #FFFFFF;
  --on-navy-muted: #AEBBD6; /* 8.6:1 on Deep Navy */
  --link-on-navy: #8FB6FF;

  /* State colors (always paired with text) */
  --state-run: #3D86FF;
  --state-done: #22B573;
  --state-wait: #F2A93B;

  /* Type */
  --font-sans: "Inter", "Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --fs-3xl: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-display: clamp(2.375rem, 1.3rem + 4.6vw, 4.5rem);

  /* Spacing scale (4 px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --maxw: 72rem;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 1px 2px rgba(16, 27, 53, 0.06), 0 8px 24px -12px rgba(16, 27, 53, 0.18);
  --shadow-float: 0 30px 80px -30px rgba(3, 12, 36, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ring: 0 0 0 3px var(--white), 0 0 0 5px var(--blue);
  --ring-on-navy: 0 0 0 3px var(--navy), 0 0 0 5px var(--cyan);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--cloud);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:lang(ko) body, html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }
code, pre { font-family: var(--font-mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.on-navy :focus-visible { box-shadow: var(--ring-on-navy); }
main:focus, main:focus-visible { box-shadow: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .btn-arrow { width: 18px; height: 18px; margin-left: -2px; transition: transform 0.25s var(--ease-out); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(4px); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); color: var(--white); }
.btn-primary:hover:not(:focus-visible) { box-shadow: 0 12px 28px -12px rgba(3, 97, 247, 0.9); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--light-blue); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 27, 53, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--on-navy);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: 64px;
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
/* Lockup includes its own 0.20S clear space; keep the aspect ratio fixed. */
.brand img { height: 46px; width: auto; aspect-ratio: 4498 / 1073; }
.main-nav { display: none; margin-left: auto; }
.main-nav ul { display: flex; gap: var(--s-1); list-style: none; }
.main-nav a {
  display: block;
  padding: var(--s-2) var(--s-3);
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--white); }
/* Underline slides in from the left on hover and keyboard focus. */
.main-nav a::after {
  content: "";
  position: absolute;
  left: var(--s-3); right: var(--s-3); bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.lang-toggle button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 var(--s-3);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-navy-muted);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
}
.lang-toggle button:hover { color: var(--white); }
.lang-toggle button[aria-pressed="true"] { background: var(--white); color: var(--navy); font-weight: 600; }
/* With JS, one white pill slides between EN and 한국어 (position and width set by site.js). */
.lang-toggle { position: relative; }
.lang-toggle.has-pill::before {
  content: "";
  position: absolute;
  top: 3px; bottom: 3px; left: 0;
  width: var(--pw, 0);
  border-radius: 999px;
  background: var(--white);
  transform: translateX(var(--px, 0));
}
.lang-toggle.pill-ready::before { transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out); }
.lang-toggle.has-pill button { position: relative; z-index: 1; transition: color 0.25s ease; }
.lang-toggle.has-pill button[aria-pressed="true"] { background: transparent; }

.gh-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-width: 40px;
  min-height: 40px;
  padding: 0 var(--s-2);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.gh-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.gh-link svg { width: 22px; height: 22px; }
.gh-link span { display: none; }

@media (max-width: 639px) {
  .brand img { height: 38px; }
}
@media (max-width: 379px) {
  .brand img { height: 34px; }
  .lang-toggle button { min-width: 40px; padding: 0 var(--s-2); }
}
@media (min-width: 640px) {
  .gh-link { padding: 0 var(--s-4); border: 1px solid rgba(255, 255, 255, 0.2); }
  .gh-link span { display: inline; }
}
@media (min-width: 960px) {
  .main-nav { display: block; }
  .main-nav + .header-actions { margin-left: var(--s-3); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--on-navy);
  background:
    radial-gradient(60rem 32rem at 50% -6rem, rgba(3, 97, 247, 0.32), transparent 70%),
    radial-gradient(28rem 20rem at 85% 30%, rgba(0, 207, 232, 0.08), transparent 70%),
    var(--navy);
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  isolation: isolate;
}
/* Faint dotted grid, masked so it fades out toward the edges. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
}
/* A very faint glow drifting slowly behind the hero (transform only; paused off-screen by site.js). */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 12%; top: -8%;
  width: 76%; height: 62%;
  background: radial-gradient(closest-side, rgba(0, 207, 232, 0.11), rgba(3, 97, 247, 0.05) 55%, transparent);
  pointer-events: none;
  animation: drift 24s ease-in-out infinite alternate;
}
.hero.is-off::after { animation-play-state: paused; }
@keyframes drift {
  0% { transform: translate3d(-9%, 0, 0) scale(1); }
  50% { transform: translate3d(5%, 7%, 0) scale(1.12); }
  100% { transform: translate3d(10%, -3%, 0) scale(0.94); }
}
/* Staggered entrance, played once on load (CSS only, ends fully visible even without JS). */
.hero-inner > .badge, .hero h1 .line, .hero-lead, .hero-sub, .hero-ctas, .hero-meta, .glimpse-wrap {
  animation: up 0.55s var(--ease-out) both;
}
.hero-inner > .badge { animation-delay: 0.08s; }
.hero h1 .line { animation-delay: 0.14s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.2s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.26s; }
.hero-lead { animation-delay: 0.3s; }
.hero-sub { animation-delay: 0.34s; }
.hero-ctas { animation-delay: 0.4s; }
.hero-meta { animation-delay: 0.46s; }
.glimpse-wrap { animation-delay: 0.52s; animation-duration: 0.7s; }
.intro-done .hero-inner > *, .intro-done .hero h1 .line { animation: none; }
@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-inner { text-align: center; }
.hero-symbol {
  position: relative;
  width: clamp(104px, 80px + 6vw, 148px);
  margin: 0 auto var(--s-5);
}
.hero-symbol::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 207, 232, 0.26) 0%, rgba(3, 97, 247, 0.16) 38%, transparent 68%);
  animation: bloom 1.4s var(--ease-out) 0.25s both;
}
.hero-symbol svg { width: 100%; height: auto; overflow: visible; }
/* Brand rule: an idle logo stays still. The strokes rise in once, then rest in the exact symbol shape.
   They only move again on a deliberate hover or tap (.is-talk), for about a second. */
.hero-symbol .stroke,
.eb-mark use { transform-box: fill-box; transform-origin: 50% 100%; }
.hero-symbol .stroke { animation: rise 0.62s var(--ease-out) both; }
.hero-symbol .stroke:nth-child(2), .eb-mark.play use:nth-child(2) { animation-delay: 0.07s; }
.hero-symbol .stroke:nth-child(3), .eb-mark.play use:nth-child(3) { animation-delay: 0.14s; }
.hero-symbol .stroke:nth-child(4), .eb-mark.play use:nth-child(4) { animation-delay: 0.21s; }
.hero-symbol .stroke:nth-child(5), .eb-mark.play use:nth-child(5) { animation-delay: 0.28s; }
.intro-done .hero-symbol .stroke { animation: none; }
.hero-symbol.is-talk .stroke { transform-origin: 50% 50%; animation: talk 1.2s ease-in-out both; }
.hero-symbol.is-talk .stroke:nth-child(2) { animation-delay: 0.06s; animation-duration: 1.1s; }
.hero-symbol.is-talk .stroke:nth-child(3) { animation-delay: 0.02s; animation-duration: 1.25s; }
.hero-symbol.is-talk .stroke:nth-child(4) { animation-delay: 0.09s; animation-duration: 1.05s; }
.hero-symbol.is-talk .stroke:nth-child(5) { animation-delay: 0.04s; animation-duration: 1.15s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16%) scaleY(0.3); }
  55% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes bloom {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}
/* Speech-like amplitude, always ending on the untouched resting shape. */
@keyframes talk {
  0%, 100% { transform: none; }
  16% { transform: scaleY(0.6); }
  34% { transform: scaleY(1.08); }
  52% { transform: scaleY(0.74); }
  70% { transform: scaleY(1.04); }
  86% { transform: scaleY(0.92); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3) var(--s-1) var(--s-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--on-navy);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 207, 232, 0.18);
}
.hero h1 {
  margin-top: var(--s-5);
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero h1 .line { display: block; }
:lang(ko) .hero h1 { line-height: 1.16; letter-spacing: -0.03em; }
.hero-lead {
  max-width: 38rem;
  margin: var(--s-5) auto 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--white);
}
.hero-sub {
  max-width: 36rem;
  margin: var(--s-3) auto 0;
  color: var(--on-navy-muted);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  list-style: none;
  color: var(--on-navy-muted);
  font-size: var(--fs-sm);
}
.hero-meta li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-meta svg { width: 16px; height: 16px; color: var(--cyan); }

/* Product glimpse: an illustration built from markup, overlapping into the next section. */
.glimpse-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  margin-bottom: calc(-1 * clamp(6rem, 4rem + 6vw, 9rem));
}
.glimpse {
  max-width: 60rem;
  margin-inline: auto;
  padding: var(--s-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow-float);
  text-align: left;
}
/* Caption under the hero illustration sits just below the overlap. */
.glimpse-caption {
  margin: calc(-1 * var(--s-7)) 0 var(--s-7);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-muted);
}
.g-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-1) var(--s-2) var(--s-4);
  font-size: var(--fs-sm);
}
.g-machine { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--white); }
.g-machine svg { width: 18px; height: 18px; color: var(--on-navy-muted); }
.g-conn { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--on-navy-muted); font-size: var(--fs-xs); }
.g-conn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--state-done); }
.g-cards { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.g-card {
  padding: var(--s-4);
  border-radius: var(--radius);
  background: var(--navy-700);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
}
.g-card.is-target { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 12px 30px -16px rgba(3, 97, 247, 0.8); }
.g-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.g-project { font-weight: 600; color: var(--white); font-family: var(--font-mono); font-size: var(--fs-sm); }
.g-agent { font-size: var(--fs-xs); color: var(--on-navy-muted); white-space: nowrap; }
.g-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--white);
}
.g-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.g-state span { color: var(--white); }
.g-state.run { color: var(--state-run); }
.g-state.wait { color: var(--state-wait); }
.g-state.done { color: var(--state-done); }
.g-msg { margin-top: var(--s-1); font-size: var(--fs-sm); color: var(--on-navy-muted); line-height: 1.45; }
.g-card.hide-sm { display: none; }

.g-composer {
  margin-top: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--radius);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.g-to { font-size: var(--fs-xs); color: var(--on-navy-muted); }
.g-to strong { color: var(--white); font-weight: 600; }
.g-row { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
/* Dictation waveform: the five strokes of the logo itself (same geometry and gradient). */
.g-wave { position: relative; flex: none; width: 32px; height: 28px; }
.g-wave svg { width: 100%; height: 100%; overflow: visible; }
.g-wave use { transform-box: fill-box; transform-origin: 50% 50%; }
.g-text { flex: 1; min-width: 0; color: var(--white); font-size: var(--fs-md); line-height: 1.45; }

/* ---------- Illustration story (classes set by site.js; static without JS or with reduced motion) ---------- */
.g-card { position: relative; }
.g-state .g-alt, .g-res { display: none; }
.js .g-res { display: block; opacity: 0; }
.g-msgs { display: grid; }
.g-msgs > .g-msg { grid-area: 1 / 1; transition: opacity 0.45s ease; }
.g-card.is-done .g-state.run { color: var(--state-done); }
.g-card.is-done .g-state span:first-child { display: none; }
.g-card.is-done .g-state .g-alt { display: inline; }
.g-card.is-done .g-msgs > .g-msg:first-child { opacity: 0; }
.g-card.is-done .g-res { opacity: 1; }
/* Highlight ring on the target card when the command lands. */
.g-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 2px var(--cyan), 0 0 32px rgba(0, 207, 232, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.g-card.is-hit::after { opacity: 1; }
/* "Needs input" breathes softly while the illustration is playing. */
.g-state.wait { position: relative; }
.g-state.wait::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
}
.glimpse.is-live .g-state.wait::after { animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping {
  0% { opacity: 0.6; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(2.8); }
}
/* Typing: the full sentence is always laid out (no height change); the untyped rest is invisible. */
.g-rest { visibility: hidden; }
.g-typed::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 1.1em;
  margin-right: 0;
  vertical-align: -0.18em;
  box-shadow: 1px 0 0 0 var(--cyan), 2px 0 0 0 var(--cyan);
  opacity: 0;
}
.glimpse.is-rec .g-typed::after { opacity: 1; }
.g-text { transition: opacity 0.35s ease; }
.glimpse.is-sent .g-text { opacity: 0; }
/* Recording: each stroke's amplitude moves smoothly. */
.glimpse.is-rec .g-wave use { animation: rec 0.9s ease-in-out infinite alternate; }
.glimpse.is-rec .g-wave use:nth-child(1) { animation-delay: -0.3s; animation-duration: 0.82s; }
.glimpse.is-rec .g-wave use:nth-child(2) { animation-delay: -0.7s; animation-duration: 1s; }
.glimpse.is-rec .g-wave use:nth-child(3) { animation-delay: -0.15s; animation-duration: 0.9s; }
.glimpse.is-rec .g-wave use:nth-child(4) { animation-delay: -0.55s; animation-duration: 1.06s; }
.glimpse.is-rec .g-wave use:nth-child(5) { animation-delay: -0.4s; animation-duration: 0.86s; }
@keyframes rec {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1.06); }
}
/* Sending: one converging motion. The strokes pull together into the compact symbol and settle. */
.g-wave use:nth-child(1) { --cx: 24%; }
.g-wave use:nth-child(2) { --cx: 12%; }
.g-wave use:nth-child(4) { --cx: -12%; }
.g-wave use:nth-child(5) { --cx: -24%; }
.glimpse.is-send .g-wave use { animation: converge 0.8s cubic-bezier(0.5, 0, 0.2, 1) both; }
.glimpse.is-send .g-wave svg { animation: gather 0.8s cubic-bezier(0.5, 0, 0.2, 1) both; }
.g-wave::after {
  content: "";
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 207, 232, 0.45), transparent 62%);
  opacity: 0;
  pointer-events: none;
}
.glimpse.is-send .g-wave::after { animation: flare 0.9s ease-out both; }
@keyframes converge {
  0% { transform: scaleY(0.85); }
  45% { transform: translateX(var(--cx, 0)) scale(0.72); }
  100% { transform: none; }
}
@keyframes gather {
  0%, 100% { transform: none; }
  45% { transform: scale(0.8); }
}
@keyframes flare {
  0% { opacity: 0; transform: scale(0.5); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1); }
}
.g-send {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--s-4);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: transform 0.16s ease, background-color 0.16s ease;
}
.g-send.is-press { transform: scale(0.92); background: var(--blue-700); }

.g-machine, .g-conn { white-space: nowrap; }
@media (max-width: 419px) {
  .glimpse { padding: var(--s-3); border-radius: var(--radius); }
  .g-top { padding: var(--s-1) var(--s-1) var(--s-3); }
  .g-composer { padding: var(--s-3); }
  .g-text { font-size: var(--fs-sm); }
  .g-send { padding: 0 var(--s-3); }
}
@media (min-width: 600px) {
  .glimpse { padding: var(--s-5); }
  .g-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .g-cards { grid-template-columns: repeat(3, 1fr); }
  .g-card.hide-sm { display: block; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-white { background: var(--white); }
.section-cloud { background: var(--cloud); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.after-glimpse { padding-top: calc(var(--section-y) + clamp(6rem, 4rem + 6vw, 9rem)); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.section-navy .eyebrow { color: var(--link-on-navy); }
.section-head h2 { font-size: var(--fs-3xl); }
.section-head p:not(.eyebrow) { margin-top: var(--s-4); font-size: var(--fs-lg); color: var(--ink-muted); }
.section-navy .section-head p:not(.eyebrow) { color: var(--on-navy-muted); }

/* ---------- Problem / solution ---------- */
.problems { display: grid; gap: var(--s-4); list-style: none; }
.problem {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light-blue);
  box-shadow: var(--shadow-card);
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--light-blue);
  color: var(--blue);
  flex: none;
}
.icon-tile svg { width: 22px; height: 22px; }
.problem h3 { margin-top: var(--s-4); font-size: var(--fs-xl); }
.problem > p { margin-top: var(--s-2); color: var(--ink-muted); }
.solution { margin-top: var(--s-5); }
.solution-inner {
  padding-top: var(--s-4);
  border-top: 1px dashed #C9D6EE;
}
.solution-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}
:lang(ko) .solution-label { text-transform: none; letter-spacing: 0; }
.solution p { margin-top: var(--s-1); color: var(--ink); }

@media (min-width: 820px) {
  .problems { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  /* Align title, problem and solution rows across the three cards. */
  @supports (grid-template-rows: subgrid) {
    .problems { grid-template-rows: repeat(4, auto); row-gap: 0; }
    .problem { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
  }
}

/* ---------- Features ---------- */
.features { display: grid; gap: var(--s-3); list-style: none; }
.feature {
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--cloud);
  border: 1px solid transparent;
}
.feature:hover { border-color: var(--light-blue); background: var(--white); }
.feature h3 { margin-top: var(--s-4); font-size: var(--fs-lg); }
.feature p { margin-top: var(--s-2); color: var(--ink-muted); font-size: var(--fs-md); }
.feature.soon { background: var(--white); border: 1px dashed #B7C6E3; }
.feature.soon .icon-tile { background: var(--cloud); color: var(--ink-muted); }
.feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.tag-soon {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 var(--s-3);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.features-note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-muted); }

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- How it works ---------- */
.diagram {
  margin: 0;
  padding: clamp(1rem, 0.5rem + 2vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--light-blue);
  box-shadow: var(--shadow-card);
}
.diagram svg { width: 100%; height: auto; font-family: var(--font-sans); }
.diagram .d-wide { display: none; }
@media (min-width: 760px) {
  .diagram .d-wide { display: block; }
  .diagram .d-tall { display: none; }
}
.d-title { font-size: 17px; font-weight: 600; fill: var(--navy); }
.d-sub { font-size: 13px; fill: var(--ink-muted); }
.d-item { font-size: 14px; fill: var(--ink); }
.d-item-inv { font-size: 14px; fill: #E6ECF8; }
.d-title-inv { font-size: 18px; font-weight: 600; fill: var(--white); }
.d-sub-inv { font-size: 13px; fill: var(--on-navy-muted); }
.d-chip { font-size: 14px; font-weight: 500; fill: var(--navy); }
.d-label { font-size: 13px; font-weight: 600; fill: var(--blue-700); }
.d-flow { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
/* Data pulses (SMIL in the markup) and a lock glow timed to the pulse crossing the encrypted channel. */
.d-pulse { fill: var(--cyan); stroke: var(--white); stroke-width: 1.5; }
.d-glow { opacity: 0.15; transform-box: fill-box; transform-origin: center; animation: lockglow 3s ease-in-out infinite; }
@keyframes lockglow {
  0%, 60%, 100% { opacity: 0.12; transform: scale(0.9); }
  22% { opacity: 0.8; transform: scale(1.12); }
}
.diagram.is-paused .d-flow, .diagram.is-paused .d-glow { animation-play-state: paused; }
.diagram figcaption { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-muted); text-align: center; }
/* Phone layout of the diagram: slightly larger labels, since the SVG scales down. */
@media (max-width: 759px) {
  .diagram { padding: var(--s-3); }
  .d-tall .d-sub, .d-tall .d-sub-inv { font-size: 14px; }
  .d-tall .d-item, .d-tall .d-item-inv, .d-tall .d-chip, .d-tall .d-label { font-size: 15px; }
  .d-tall .d-title { font-size: 18px; }
  .d-tall .d-title-inv { font-size: 19px; }
}

.steps { display: grid; gap: var(--s-4); margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); list-style: none; counter-reset: step; }
.step { position: relative; padding-left: 3.25rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.step h3 { font-size: var(--fs-lg); padding-top: 0.25rem; }
.step p { margin-top: var(--s-2); color: var(--ink-muted); }
.step code {
  display: inline-block;
  margin-top: var(--s-3);
  padding: var(--s-1) var(--s-3);
  border-radius: 8px;
  background: var(--navy);
  color: #E6ECF8;
  font-size: var(--fs-sm);
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* ---------- Measured ---------- */
.stats { display: grid; gap: var(--s-3); list-style: none; }
.stat {
  position: relative;
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: var(--s-5); top: 0;
  width: 40px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.stat-value {
  display: block;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.stat-value small { font-size: 0.5em; font-weight: 500; letter-spacing: 0; color: var(--on-navy-muted); }
.stat-label { display: block; margin-top: var(--s-3); color: var(--on-navy-muted); font-size: var(--fs-md); line-height: 1.5; }
.verified { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); list-style: none; }
.verified li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.verified svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.measured-note {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--on-navy-muted);
  font-size: var(--fs-sm);
}
.measured-note a { color: var(--link-on-navy); font-weight: 600; }
.measured-note a:hover { color: var(--white); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 1040px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Agents and platforms ---------- */
.split { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.split h3 { font-size: var(--fs-xl); }
.split h3 + p { margin-top: var(--s-2); color: var(--ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--s-4);
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--light-blue);
  font-weight: 500;
  font-size: var(--fs-sm);
}
.chips li.dedicated { border-color: var(--blue); }
.chips li.dedicated::before { content: ""; width: 6px; height: 6px; margin-right: var(--s-2); border-radius: 50%; background: var(--blue); }
.chips li.more { background: transparent; border-style: dashed; color: var(--ink-muted); }
.chips-legend { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-muted); }
.chips-legend::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.small-note { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--ink-muted); }

.platforms { margin-top: var(--s-5); list-style: none; border-top: 1px solid var(--light-blue); }
.platforms li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 56px;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--light-blue);
}
.platform-name { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.platform-name svg { width: 20px; height: 20px; color: var(--navy); }
.platform-kind { display: block; font-weight: 400; font-size: var(--fs-sm); color: var(--ink-muted); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 var(--s-3);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill-ok { background: #E6F6EE; color: #0B6B3F; }
.pill-test { background: var(--light-blue); color: var(--blue-700); }
.pill-soon { background: #EEF0F5; color: var(--ink-muted); }

/* ---------- Try it ---------- */
.try { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .try { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); } }
.try .section-head { margin-bottom: 0; }
.try-reqs { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-muted); }
.code {
  position: relative;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-navy-muted);
  font-size: var(--fs-xs);
}
.code-dots { display: inline-flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.copy-btn {
  min-height: 34px;
  padding: 0 var(--s-3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.08); }
.copy-btn:focus-visible { box-shadow: var(--ring-on-navy); }
.code pre {
  margin: 0;
  padding: var(--s-4) var(--s-5) var(--s-5);
  overflow-x: auto;
  color: #E6ECF8;
  font-size: 0.8125rem;
  line-height: 1.85;
}
.code pre:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan); border-radius: 0; }
.code .p { color: #7D8DB0; user-select: none; }
.code .c { color: #8C9BBD; }

/* ---------- Open source ---------- */
.oss { display: grid; gap: var(--s-4); list-style: none; }
.oss-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light-blue);
}
.oss-card.feature-card { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.oss-card h3 { margin-top: var(--s-4); font-size: var(--fs-xl); }
.oss-card p { margin-top: var(--s-2); color: var(--ink-muted); }
.oss-card.feature-card p { color: var(--on-navy-muted); }
.oss-card.feature-card p a { color: var(--link-on-navy); font-weight: 600; }
.oss-card.feature-card p a:hover { color: var(--white); }
.oss-card.feature-card .icon-tile { background: rgba(255, 255, 255, 0.08); color: var(--cyan); }
.oss-card .more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  margin-top: auto;
  padding-top: var(--s-4);
  font-weight: 600;
  text-decoration: none;
}
.oss-card .more-link:hover { text-decoration: underline; }
.oss-card.feature-card .more-link { color: var(--link-on-navy); }
.oss-card.feature-card .more-link:hover { color: var(--white); }
.more-link svg { width: 16px; height: 16px; }
@media (min-width: 820px) { .oss { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--s-8) var(--s-6);
  background: var(--navy-900);
  color: var(--on-navy-muted);
  font-size: var(--fs-sm);
}
.footer-top { display: grid; gap: var(--s-6); }
.footer-brand img { height: 44px; width: auto; aspect-ratio: 4498 / 1073; margin-left: -6px; }
.footer-slogan { margin-top: var(--s-3); color: var(--white); font-weight: 500; font-size: var(--fs-md); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; align-content: flex-start; }
.footer-links a { color: var(--on-navy); text-decoration: none; display: inline-block; padding: var(--s-1) 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 820px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
  .footer-links { justify-content: flex-end; max-width: 34rem; }
}

/* ---------- Motion: section marks, scroll reveals, hover lift ---------- */
/* Small static five-stroke mark (real symbol geometry) before section labels; its strokes rise once on reveal. */
.eyebrow.has-mark::before { display: none; }
.eb-mark { width: 16px; height: 14px; flex: none; overflow: visible; }
.eb-mark.play use { animation: rise 0.6s var(--ease-out) both; }

/* Reveal on scroll. Only elements tagged by site.js are hidden, and only when JS runs. */
.js .rv {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  transition-delay: var(--rv-d, 0s);
}
.js .rv.in { opacity: 1; translate: none; }

.problem, .oss-card, .stat, .feature {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.oss-card .more-link svg { transition: transform 0.25s var(--ease-out); }
.oss-card .more-link:hover svg, .oss-card .more-link:focus-visible svg { transform: translateX(3px); }
.oss-card:focus-within { transform: translateY(-4px); }
@media (hover: hover) {
  .problem:hover, .oss-card:hover, .feature:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 27, 53, 0.06), 0 20px 40px -20px rgba(16, 27, 53, 0.38); }
  .stat:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
}

/* ---------- Motion preferences ---------- */
/* Reduced motion: nothing loops or moves. The logo, illustration, diagram and numbers show their final static state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero::after { display: none; }
  .d-pulses { display: none; }
  .js .rv { opacity: 1; translate: none; }
  .btn:hover, .btn:focus-visible, .problem:hover, .oss-card:hover, .feature:hover, .stat:hover, .oss-card:focus-within { transform: none; }
  .btn:hover .btn-arrow, .oss-card .more-link:hover svg { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .glimpse-wrap, .copy-btn, .d-pulses { display: none; }
  .js .rv { opacity: 1; translate: none; }
  .hero, .section-navy, .site-footer { background: #fff; color: #000; }
  .after-glimpse { padding-top: var(--section-y); }
}
