/* Same design tokens as the Angular app (frontend/src/styles.scss). */
:root {
  --bg: #0a0a12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eeedf7;
  --muted: #9b99b3;
  --faint: #66647d;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --gradient: linear-gradient(120deg, var(--accent) 0%, #6366f1 45%, var(--accent-2) 100%);
  --success: #34d399;
  --danger: #f87171;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 12px 40px -10px rgba(139, 92, 246, 0.55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', var(--font);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; margin: 0; }
.fine { color: var(--faint); font-size: .85rem; }
.fine a { color: var(--muted); }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--accent-2); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem var(--font); text-decoration: none; cursor: pointer; color: var(--text);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--gradient); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-hover); }
.btn-sm { padding: .5em 1em; font-size: .88rem; }
.btn-block { width: 100%; margin-top: .5rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; backdrop-filter: blur(12px); }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; font: 700 1.15rem var(--font-display); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gradient); font-size: .78rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 4rem 0 3rem; }
.pill { display: inline-block; padding: .35em .9em; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font-size: .85rem; margin-bottom: 1.4rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1rem; }

.hero-visual { position: relative; min-height: 360px; }
.mock { position: relative; z-index: 1; max-width: 360px; margin: 2rem auto 0; padding: 1.6rem; box-shadow: var(--shadow); background: rgba(17, 17, 28, .85); }
.mock-top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 1rem; }
.live { color: var(--success); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; margin: .8rem 0 .4rem; }
.bar span { display: block; width: 75%; height: 100%; background: var(--gradient); }
.mock-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; }
.price { font: 700 1.6rem var(--font-display); }
.toast { position: absolute; z-index: 2; display: flex; gap: .7rem; align-items: center; padding: .8rem 1rem; background: rgba(17, 17, 28, .92); box-shadow: var(--shadow); font-size: .9rem; }
.toast p { margin: 0; }
.toast-1 { top: 0; right: 0; animation: float 6s ease-in-out infinite; }
.toast-2 { bottom: 0; left: 0; animation: float 6s ease-in-out 3s infinite; }
.dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-hover); flex: none; }
.dot.ok { background: rgba(52, 211, 153, .15); color: var(--success); font-weight: 700; }
.dot.big { width: 56px; height: 56px; font-size: 1.5rem; margin: 0 auto 1rem; }
@keyframes float { 50% { transform: translateY(-8px); } }

.platforms { text-align: center; padding: 1rem 0 2rem; }
.platforms ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.4rem; padding: 0; margin: .4rem 0 0; font: 600 1.1rem var(--font-display); color: var(--muted); }

/* Sections */
.section { padding: 4rem 0 1rem; }
.grid { display: grid; gap: 1rem; margin-top: 2rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.step .num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gradient); font-weight: 700; margin-bottom: 1rem; }
.feat .ico { font-size: 1.5rem; display: block; margin-bottom: .7rem; }
.step p, .feat p { margin: 0; }

/* Waitlist */
.join { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; padding: 2.5rem; border-color: var(--border-strong); box-shadow: var(--glow); }
form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 500; color: var(--text); }
.req { color: var(--accent-2); }
.row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.row.two { grid-template-columns: 1fr 1fr; align-items: end; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: .75em .9em; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(0, 0, 0, .25); color: var(--text); font: 400 .95rem var(--font);
}
select option { background: #11111c; }
textarea { resize: vertical; min-height: 4.5em; line-height: 1.45; }
label.full { margin-bottom: 1rem; }
input[aria-invalid=true] { border-color: var(--danger); }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-size: .9rem; font-weight: 500; margin-bottom: .5rem; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.check { display: inline-flex !important; align-items: center; gap: .45rem !important; padding: .45em .85em; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 400 !important; color: var(--muted) !important; }
.check input { accent-color: var(--accent); margin: 0; }
.check:has(input:checked) { border-color: var(--accent); color: var(--text) !important; background: rgba(139, 92, 246, .14); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: .7rem 0 .3rem; font-size: .92rem; }
.form-msg.error { color: var(--danger); }
.thanks { grid-column: 2; text-align: center; align-self: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: .7rem 0 0; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 4rem 0 2.5rem; color: var(--faint); font-size: .9rem; }
.footer a { color: var(--muted); }

@media (max-width: 880px) {
  .hero, .join { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; gap: 2rem; }
  .grid.three { grid-template-columns: 1fr; }
  .join { padding: 1.5rem; gap: 1.5rem; }
  .thanks { grid-column: 1; }
}
@media (max-width: 560px) {
  .row.two { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; }
  .toast { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast-1, .toast-2 { animation: none; }
}
