:root {
  --navy: #0a192f;
  --cyan: #00c2ff;
  --canvas: #eaf6ff;
  --ink: #0a192f;
  --muted: #4e647a;
  --line: #d3e6f5;
  --link: #0369a1;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; }
h1 { font-size: clamp(1.85rem, 3.4vw, 3.15rem); margin: 0.35rem 0 0.75rem; }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); margin: 0 0 0.4rem; }
p { margin: 0.4rem 0 0.8rem; }
.skip { position: absolute; left: 1rem; top: -4rem; background: #fff; padding: 0.4rem 0.7rem; }
.skip:focus { top: 1rem; }
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.2rem; padding: 0.6rem 1.25rem; gap: 1rem;
  background: rgba(234, 246, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: flex; gap: 0.55rem; align-items: center; color: var(--navy); font-weight: 700; text-decoration: none; flex: none; }
.links { display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.links a:hover { color: var(--navy); }
.links a.btn-navy, .links a.btn-navy:hover { color: #fff; }
main:has(.auth-screen) + .footer { display: none; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 0.7rem; padding: 0.45rem 0.75rem; font: inherit; font-weight: 650; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px;
  border: 0; font-weight: 700; text-decoration: none; cursor: pointer; font: inherit;
}
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-danger { background: #fff; color: #be123c; border: 1px solid #fecdd3; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero-grid, .split, .feature-row, .stat-row, .grid-3, .grid-2, .footer-grid, .studio, .auth-screen {
  min-width: 0;
}
.hero-grid > *, .split > *, .feature-row > *, .stat-row > *, .grid-3 > *, .grid-2 > *, .studio > * {
  min-width: 0;
}
.hero-grid, .split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1rem, 3vw, 2rem); align-items: center; }
.hero-grid { padding: clamp(2.2rem, 5vw, 4.2rem) 0; }
.kicker { color: var(--cyan); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.lede { font-size: 1.05rem; color: #cbd5e1; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 1.4rem;
  padding: 1.35rem 1.4rem; box-shadow: 0 18px 40px -28px rgba(10,25,47,.45);
}
.score { background: #10243f; color: #fff; }
.grid-3, .grid-2, .score-grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.num { font-family: ui-monospace, monospace; font-size: 2.3rem; margin: 0; }
.section { padding: clamp(2rem, 4vw, 3.2rem) 0; }
.muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1.2rem 0 0; }
.chips span, .badge { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.84rem; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.price { font-family: ui-monospace, monospace; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.3rem 0; }
.featured { outline: 2px solid var(--cyan); }
form { display: grid; gap: 0.75rem; }
label { font-weight: 600; font-size: 0.92rem; }
input, textarea, select {
  width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 0.8rem;
  padding: 0.75rem 0.8rem; font: inherit; background: #fff;
}
textarea { min-height: 8rem; }
.flash { width: min(1120px, calc(100% - 2rem)); margin: 1rem auto 0; padding: 0.8rem 1rem; border-radius: 0.8rem; }
.flash.ok { background: #ecfdf5; color: #065f46; }
.flash.bad { background: #fff1f2; color: #9f1239; }
.footer { background: var(--navy); color: #fff; margin-top: 3rem; }
.footer a { color: #cbd5e1; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr); gap: 1.5rem; padding: 2.4rem 0; }
.legal { border-top: 1px solid rgba(255,255,255,.12); color: #94a3b8; font-size: 0.8rem; padding: 0.9rem 0 1.3rem; }
details { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: 0.8rem 1rem; margin: 0.6rem 0; }
summary { cursor: pointer; font-weight: 650; }
.page { padding: 2.2rem 0 0.5rem; }
ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1rem 1.1rem 1rem 4rem; margin: 0.7rem 0; position: relative; }
ol.steps li:before { content: counter(step, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem; color: var(--link); font-weight: 700; }
.shot { border-radius: 1.25rem; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #0b1730; box-shadow: 0 30px 70px -36px rgba(0,0,0,.65); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.shot-light { border-color: var(--line); background: #fff; box-shadow: 0 24px 50px -36px rgba(10,25,47,.35); }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; padding: clamp(1.6rem, 4vw, 3.2rem) 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; padding: 0.9rem 1rem; }
.stat strong { display: block; font-size: 1.05rem; letter-spacing: -0.03em; }
.cta-band { background: var(--navy); color: #fff; border-radius: 1.6rem; padding: clamp(1.4rem, 3vw, 2.4rem); }
.cta-band .lede { color: #dbe7f3; }

.studio {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(200px, 270px);
  min-height: 560px;
  background: #07111f;
  color: #e8eef7;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid #16304f;
  margin: 1.2rem 0 2rem;
  box-shadow: 0 24px 50px -32px rgba(7, 17, 31, .7);
}
.studio-side, .studio-main, .studio-out { padding: 1rem; }
.studio-side, .studio-out { background: #081426; }
.studio-side { border-right: 1px solid #16304f; }
.studio-out { border-left: 1px solid #16304f; }
.studio h2 { font-size: 1rem; margin: 0.35rem 0 0.55rem; color: #f8fafc; }
.studio p { color: #dbe7f3; }
.sample-btn {
  width: 100%; text-align: left; background: #0d1c31; color: #f8fafc;
  border: 1px solid #24507a; border-radius: 0.85rem; padding: 0.7rem 0.8rem;
  margin: 0.35rem 0; cursor: pointer; font: inherit;
}
.sample-btn strong { display: block; color: #fff; }
.sample-btn span { color: #b7c6d6; font-size: 0.8rem; }
.sample-btn.active { border-color: var(--cyan); background: rgba(0, 194, 255, 0.12); }
.stage { background: #10233d; border: 1px solid #1e3a5f; border-radius: 1rem; min-height: 220px; padding: 1.1rem; }
.file-preview { border: 1px dashed #3d6490; border-radius: 0.9rem; padding: 1.1rem; min-height: 160px; background: rgba(8, 20, 38, 0.45); }
.meter { height: 8px; background: #1e3a5f; border-radius: 99px; overflow: hidden; margin: 0.35rem 0 0.8rem; }
.meter > span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .45s ease; }
.step-line { display: flex; gap: 0.45rem; align-items: center; font-size: 0.86rem; color: #b7c6d6; margin: 0.4rem 0; }
.step-line.done { color: #f8fafc; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 99px; background: #334155; flex: none; }
.step-line.done .dot { background: var(--cyan); }
.pill {
  display: inline-block; border-radius: 99px; padding: 0.15rem 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0, 194, 255, 0.16); color: var(--cyan); font-weight: 700;
}
.studio .btn { width: 100%; margin-top: 0.8rem; }
.note { font-size: 0.84rem; color: #b7c6d6; }

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 4.4rem);
  background: #07111f;
}
.auth-visual {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(0, 194, 255, 0.22), transparent 52%),
    #07111f;
  color: #fff;
}
.auth-visual h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 14ch; }
.auth-visual p { color: #c5d4e4; max-width: 34rem; }
.auth-visual .shot { margin-top: 0.4rem; }
.auth-points { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; color: #d5e2ee; }
.auth-points li { padding-left: 1rem; position: relative; }
.auth-points li:before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.4rem; height: 0.4rem; border-radius: 99px; background: var(--cyan); }
.auth-panel {
  background: #f4f7fb;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: clamp(1.7rem, 3vw, 2.15rem); margin-bottom: 0.35rem; }
.auth-card .lede, .auth-card .muted { color: #52657a; }
.auth-form { margin-top: 1rem; }
.auth-form input {
  min-height: 3rem;
  border: 1px solid #cfd8e3;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.75rem 0.9rem;
}
.auth-form input:focus {
  outline: none;
  border-color: #7dd3f0;
  box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.18);
}
.auth-form .btn { width: 100%; border-radius: 0.75rem; min-height: 3rem; margin-top: 0.35rem; }
.auth-switch { margin-top: 1rem; color: #52657a; font-size: 0.95rem; }
.auth-help { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; font-size: 0.84rem; color: #64748b; }

@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; }
  .links {
    display: none; position: absolute; top: 4.2rem; left: 0; right: 0;
    background: var(--canvas); border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.2rem 1rem; flex-direction: column; align-items: stretch;
  }
  .links.open { display: flex; }
  .links .btn { width: 100%; }
  .hero-grid, .split, .grid-3, .grid-2, .footer-grid, .feature-row, .stat-row, .auth-screen {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-row.reverse { direction: ltr; }
  .auth-visual { padding-bottom: 0.4rem; }
  .auth-visual h2 { max-width: none; }
  .auth-visual .shot { display: none; }
  .studio { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .studio-side, .studio-out { border: 0; }
  .studio-main { border-top: 1px solid #16304f; border-bottom: 1px solid #16304f; }
}

@media (max-width: 720px) {
  .nav { padding: 0.55rem 0.85rem; }
  .wrap, .narrow, .flash { width: min(1120px, calc(100% - 1.25rem)); }
  .hero-grid { padding: 1.6rem 0 1.8rem; }
  .card, .cta-band { padding: 1rem; border-radius: 1rem; }
  .stat-row, .score-grid, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .chips { padding-left: 0; }
  ol.steps li { padding: 0.9rem 0.9rem 0.9rem 3.3rem; }
  .footer-grid { gap: 0.4rem; }
  .auth-points { display: none; }
  .auth-panel { align-items: flex-start; }
}
