/* AIONETRA corporate homepage.
   Locked dark theme (brand decision: the OS is a dark console). Native CSS, Pretendard Variable.
   One accent: brand teal from the logo. Radius: 6px everywhere. Dials: variance 7 / motion 5 / density 4. */

:root {
  --bg: #0a0d12;
  --bg-2: #0f131a;
  --bg-3: #141a22;
  --ink: #e9edf2;
  --ink-2: #b7bfcb;
  --muted: #7d8794;
  --line: #1f2733;
  --line-strong: #2c3644;
  --accent: #19b3a6;
  --accent-bright: #37d1c3;
  --accent-ink: #0a0d12;
  --accent-dim: rgb(25 179 166 / .14);
  --accent-line: rgb(25 179 166 / .35);
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(100% - 40px, 1200px); } }

h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 700; max-width: 24ch; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 650; }
.lead { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
section { padding-block: clamp(80px, 9vw, 128px); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: var(--r); }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: var(--r);
  font-weight: 600; font-size: 15px; white-space: nowrap; border: 1px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-bright); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: rgb(10 13 18 / .5); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.link { font-weight: 600; color: var(--accent-bright); border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(10 13 18 / .78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 36px; }
.brand img { width: 176px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__login { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav__login:hover { color: var(--ink); }
.nav__toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; align-items: center; border-radius: var(--r);
}
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: none; }
@media (max-width: 960px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; flex-direction: column; gap: 4px; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: var(--bg); }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile a { padding: 12px 4px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .nav__mobile .btn { margin-top: 14px; border: 0; }
}

/* ---------- Hero: image bleeds right, copy left ---------- */
.hero { position: relative; padding-block: 0; min-height: min(calc(100dvh - var(--nav-h)), 820px); display: grid; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(10 13 18 / .96) 0%, rgb(10 13 18 / .88) 38%, rgb(10 13 18 / .35) 68%, rgb(10 13 18 / .15) 100%),
    linear-gradient(180deg, rgb(10 13 18 / .2), rgb(10 13 18 / 0) 30%, rgb(10 13 18 / .6) 100%);
}
.hero__copy { position: relative; z-index: 1; padding-block: 64px; max-width: 640px; margin-inline: auto; width: min(100% - 48px, 1200px); }
.hero__copy { margin-left: max(24px, calc((100% - 1200px) / 2)); }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 750; }
.hero__sub { margin-top: 22px; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 34ch; }
.hero__cta { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__media::after { background: linear-gradient(180deg, rgb(10 13 18 / .55) 0%, rgb(10 13 18 / .9) 55%, rgb(10 13 18 / .97) 100%); }
  .hero__copy { padding-block: 200px 64px; margin-left: auto; width: min(100% - 48px, 1200px); }
}
@media (max-width: 640px) { .hero__copy { width: min(100% - 40px, 1200px); padding-top: 160px; } }

/* ---------- Pitch triptych ---------- */
.pitch { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(56px, 7vw, 96px); }
.pitch__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pitch h2 { font-size: clamp(26px, 2.8vw, 34px); color: var(--ink); }
.pitch h2 + p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.pitch__grid > div + div { border-left: 1px solid var(--line); padding-left: 40px; }
@media (max-width: 900px) {
  .pitch__grid { grid-template-columns: 1fr; gap: 28px; }
  .pitch__grid > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

/* ---------- Engine: sticky intro + rows ---------- */
.engine__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.engine__intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.engine__intro p { margin-top: 18px; color: var(--ink-2); max-width: 40ch; }
.flow { counter-reset: f; display: grid; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow h3 { font-size: 24px; letter-spacing: -0.02em; }
.flow h3::before { content: counter(f, decimal-leading-zero); display: block; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .08em; margin-bottom: 6px; }
.flow p { color: var(--ink-2); font-size: 15.5px; max-width: 52ch; }
@media (max-width: 900px) {
  .engine__grid { grid-template-columns: 1fr; gap: 40px; }
  .engine__intro { position: static; }
  .flow li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
}

/* ---------- MU:DAM ---------- */
.mudam { background: var(--bg-2); border-block: 1px solid var(--line); }
.spectrum { margin-top: 56px; }
.spectrum__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 3px; }
.spectrum__zone { flex: 0 0 var(--w); }
.spectrum__zone--1 { background: rgb(25 179 166 / .35); }
.spectrum__zone--2 { background: rgb(25 179 166 / .65); }
.spectrum__zone--3 { background: var(--accent-bright); }
.spectrum__ticks { position: relative; height: 22px; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.spectrum__ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.spectrum__ticks span:first-child { transform: none; }
.spectrum__ticks span:last-child { transform: translateX(-100%); }
.spectrum__levels { margin-top: 20px; display: grid; grid-template-columns: 30fr 40fr 30fr; gap: 24px; }
.spectrum__levels strong { display: block; font-size: 16px; font-weight: 650; }
.spectrum__levels span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.questions { margin-top: 64px; display: grid; gap: 0; }
.questions li { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; padding: 22px 0; border-top: 1px solid var(--line-strong); color: var(--ink); }
.questions li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 700px) {
  .spectrum__levels { grid-template-columns: 1fr; gap: 14px; }
  .spectrum__levels li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
  .spectrum__levels span { margin-top: 0; }
}

/* ---------- Markets bento ---------- */
.bento { margin-top: 56px; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.tile { border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); padding: 28px; }
.tile--lead { grid-row: 1 / 3; padding: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-3); }
.tile--lead picture { display: block; }
.tile--lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile__body { padding: 28px; }
.tile__state { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent-bright); padding: 4px 10px; border-radius: 4px; background: var(--accent-dim); border: 1px solid var(--accent-line); }
.tile h3 { margin-top: 14px; font-size: 24px; letter-spacing: -0.02em; }
.tile p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile--lead { grid-row: auto; } }

/* ---------- Stages ---------- */
.stage-list { margin-top: 48px; border-top: 1px solid var(--line-strong); }
.stage-list li { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.stage__name { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stage__name h3 { font-size: 24px; letter-spacing: -0.02em; }
.stage-list p { color: var(--ink-2); max-width: 58ch; }
.status { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.status--done { color: var(--accent-bright); border-color: var(--accent-line); background: var(--accent-dim); }
.status--now { color: var(--ink); }
.status--next { color: var(--muted); border-style: dashed; }
@media (max-width: 900px) { .stage-list li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Modules marquee ---------- */
.modules { padding-block: clamp(56px, 7vw, 96px); border-block: 1px solid var(--line); background: var(--bg-2); }
.modules h2 { font-size: 22px; color: var(--muted); font-weight: 600; letter-spacing: -0.01em; }
.marquee { margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; }
.marquee__track span { padding: 12px 20px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }
.modules__list { display: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee { display: none; }
  .modules__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .modules__list li { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; color: var(--ink-2); }
}

/* ---------- Proof ---------- */
.proof__grid { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.proof__media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.proof__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.proof__copy p { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.proof__copy .link { display: inline-block; margin-top: 24px; }
@media (max-width: 900px) { .proof__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Closing ---------- */
.closing { background: var(--bg-2); border-top: 1px solid var(--line); }
.closing__inner { text-align: center; display: grid; justify-items: center; }
.closing h2 { max-width: 24ch; }
.closing p { margin-top: 16px; color: var(--ink-2); max-width: 46ch; font-size: 17px; }
.closing .btn { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer__brand img { width: 176px; height: auto; }
.footer__brand p { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 40ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h3 { font-size: 13px; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.footer__cols a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; }
.footer__cols a:hover { color: var(--ink); }
.footer__copy { grid-column: 1 / -1; font-size: 13px; color: var(--muted); padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Motion (reveal on scroll, hero rise) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__media { animation: fade 1.2s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}
