/* ============================================================
   Reponest — landing page  ·  dark theme
   Palette pulled from the logo: cyan #38e1ff → blue #2b6cff on navy
   ============================================================ */

:root {
  --bg:        #05070d;
  --bg-2:      #080b14;
  --panel:     rgba(255, 255, 255, 0.025);
  --panel-2:   rgba(255, 255, 255, 0.04);
  --border:    rgba(120, 170, 255, 0.12);
  --border-2:  rgba(120, 170, 255, 0.22);

  --cyan:      #38e1ff;
  --blue:      #2b6cff;
  --indigo:    #5b6cff;
  --glow:      rgba(56, 225, 255, 0.55);

  --text:      #eaf1fb;
  --muted:     #93a3bd;
  --muted-2:   #6c7c97;

  --grad:      linear-gradient(135deg, #38e1ff 0%, #2b6cff 55%, #6a5bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(56,225,255,.18), rgba(43,108,255,.18));

  --radius:    16px;
  --radius-lg: 24px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Ambient page background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 75% -5%, rgba(43,108,255,.20), transparent 60%),
    radial-gradient(700px 500px at 10% 10%, rgba(56,225,255,.12), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(106,91,255,.14), transparent 60%),
    var(--bg);
}
body::after { /* subtle grain/vignette */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; font-weight: 700; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  padding: 7px 14px; border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
}
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 46px); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn-primary {
  color: #00131f; background: var(--grad);
  box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  color: var(--text); background: var(--panel-2);
  border-color: var(--border-2); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(120,170,255,.4); background: rgba(255,255,255,.06); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 9, 16, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: flex; align-items: center; flex: none; }
.brand-mark img {
  height: 38px; width: auto; display: block;
  filter: drop-shadow(0 0 5px rgba(56,225,255,.70)) drop-shadow(0 0 13px rgba(43,108,255,.50));
  transition: transform .3s var(--ease), filter .3s var(--ease);
}
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.brand:hover .brand-mark img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 8px rgba(56,225,255,.95)) drop-shadow(0 0 20px rgba(43,108,255,.65));
}
/* footer brand a touch smaller */
footer .brand-mark img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .signin { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-cta .signin:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 98%); }
.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; padding: 120px 0 80px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 86px); font-weight: 800; margin: 26px auto 22px;
  max-width: 16ch; letter-spacing: -.035em;
}
.hero .sub { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--muted-2); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--glow); }

/* ---------- Marquee / trust ---------- */
.trust { padding: 40px 0 10px; text-align: center; }
.trust p { color: var(--muted-2); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 26px; }
.trust-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pill { padding: 9px 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted);
  font-size: 14px; font-weight: 500; background: var(--panel); }

/* ---------- Sections ---------- */
section { position: relative; padding: 110px 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::before { /* hover glow */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(43,108,255,.5); }
.card:hover::before { opacity: .9; }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 20px; background: var(--grad-soft); border: 1px solid var(--border-2);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Showcase split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 18px; }
.split p.lead { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text); font-size: 15.5px; }
.checklist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-soft);
  border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--cyan); font-size: 12px; margin-top: 2px; }

/* faux app window */
.window {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-2);
  background: #0a0e18; box-shadow: 0 40px 90px -40px rgba(43,108,255,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.window .bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02); }
.window .bar i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; } .tl-g { background: #28c840; }
.window .bar .path { margin-left: 12px; color: var(--muted-2); font-size: 13px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.window .body { padding: 8px 0; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px; }
.frow { display: flex; align-items: center; gap: 12px; padding: 9px 18px; color: var(--muted); transition: background .2s; }
.frow:hover { background: rgba(255,255,255,.03); }
.frow .fname { color: var(--text); } .frow .fmeta { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.frow .fi { color: var(--cyan); }
.window .merge { margin: 14px 18px 16px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: rgba(40,200,64,.10); border: 1px solid rgba(40,200,64,.35); color: #7ee89a; font-family: var(--font); font-size: 14px; }
.window .merge .ok { width: 22px; height: 22px; border-radius: 50%; background: #28c840; color: #022; display: grid; place-items: center; font-weight: 800; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 34px 18px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--panel); }
.stat .num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.plan.featured { border-color: var(--border-2); box-shadow: 0 40px 80px -40px rgba(43,108,255,.6); position: relative; }
.plan.featured::after { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 5px 14px; border-radius: 999px; color: #00131f; background: var(--grad); }
.plan .pname { font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cyan); }
.plan .price { font-size: 42px; font-weight: 800; margin: 14px 0 4px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .pdesc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.plan ul { margin-bottom: 26px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--text); font-size: 14.5px; margin-bottom: 12px; }
.plan li .tick { color: var(--cyan); }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- CTA ---------- */
.cta-box { text-align: center; padding: 80px 40px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-2); position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(43,108,255,.22), transparent 60%), var(--bg-2); }
.cta-box h2 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 16px; }
.cta-box p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 70px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; margin-bottom: 50px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 260px; }
.foot-col h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px;
  border-top: 1px solid var(--border); color: var(--muted-2); font-size: 14px; flex-wrap: wrap; gap: 14px; }

/* ---------- Mobile ---------- */
.mobile-menu { display: none; }
@media (max-width: 940px) {
  .nav-links, .nav-cta .signin { display: none; }
  .menu-btn { display: block; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mobile-menu.open { display: block; position: fixed; inset: 72px 0 0; z-index: 99;
    background: rgba(6,9,16,.96); backdrop-filter: blur(16px); padding: 30px 24px; }
  .mobile-menu.open a { display: block; font-size: 20px; padding: 16px 0; color: var(--text); border-bottom: 1px solid var(--border); }
  .mobile-menu.open .btn { margin-top: 24px; width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ============================================================
   Auth pages — sign in / get started
   ============================================================ */
.auth-body { min-height: 100vh; display: flex; flex-direction: column; }

.auth-top { padding: 26px 0; }
.auth-top .wrap { display: flex; align-items: center; justify-content: space-between; }
.auth-top .back { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.auth-top .back:hover { color: var(--text); }

.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px 72px; }

.auth-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 40px 90px -40px rgba(43,108,255,.5);
  backdrop-filter: blur(10px);
}
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head .mark { width: 46px; height: 46px; margin: 0 auto 16px; }
.auth-head h1 { font-size: 26px; margin-bottom: 8px; }
.auth-head p { color: var(--muted); font-size: 15px; }

.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.auth-field input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: rgba(5,7,13,.55); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.auth-field input::placeholder { color: var(--muted-2); }
.auth-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56,225,255,.14); }

.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.auth-row a { color: var(--cyan); font-size: 13.5px; font-weight: 500; }
.auth-row a:hover { text-decoration: underline; }
.auth-check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--blue); }

.auth-alt { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 24px; }
.auth-alt a { color: var(--cyan); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

.auth-errors {
  background: rgba(255,90,90,.08); border: 1px solid rgba(255,90,90,.3);
  border-radius: 12px; padding: 12px 15px; margin-bottom: 20px;
}
.auth-errors ul { color: #ffb4b4; font-size: 13.5px; }
.auth-errors li + li { margin-top: 4px; }

.auth-terms { color: var(--muted-2); font-size: 12.5px; text-align: center; margin-top: 18px; line-height: 1.5; }
.auth-terms a { color: var(--muted); }
.auth-terms a:hover { color: var(--text); }

/* Social sign-in */
.btn-google {
  width: 100%; justify-content: center; gap: 11px;
  color: var(--text); background: #fff; border: none;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -12px rgba(0,0,0,.6); }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.btn-google span { color: #1f2430; font-weight: 600; }

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted-2); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 22px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-2);
}

/* ---------- Inner pages (docs, changelog, status, legal) ---------- */
.doc-page { max-width: 820px; margin: 0 auto; padding: 140px 24px 90px; }
.doc-page .doc-eyebrow {
  color: var(--cyan); font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 12px;
}
.doc-page h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; }
.doc-page .doc-lede { color: var(--muted); font-size: 17px; max-width: 62ch; margin-bottom: 42px; }
.doc-page h2 { font-size: 22px; margin: 44px 0 12px; }
.doc-page h3 { font-size: 16.5px; margin: 26px 0 8px; }
.doc-page p { color: var(--muted); max-width: 68ch; margin-bottom: 12px; }
.doc-page p strong, .doc-page li strong { color: var(--text); }
.doc-page ul, .doc-page ol { margin: 0 0 14px 22px; color: var(--muted); }
.doc-page ul { list-style: disc; }
.doc-page li { margin-bottom: 6px; }
.doc-page a { color: var(--cyan); }
.doc-page a:hover { text-decoration: underline; }
.doc-page code {
  font-family: 'Cascadia Mono', Consolas, ui-monospace, monospace;
  font-size: .88em; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 7px;
}
.doc-page pre {
  background: rgba(5,7,13,.65); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin: 0 0 16px;
  overflow-x: auto;
}
.doc-page pre code { background: none; border: none; padding: 0; color: var(--text); font-size: 13.5px; line-height: 1.7; }
.doc-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px;
}
.doc-badge {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  border-radius: 99px; padding: 3px 12px; margin-left: 10px; vertical-align: middle;
  color: #ffd08a; background: rgba(255,178,74,.1); border: 1px solid rgba(255,178,74,.35);
}

/* changelog entries */
.log-entry { display: grid; grid-template-columns: 128px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.log-entry:last-child { border-bottom: none; }
.log-date { color: var(--muted-2); font-size: 13.5px; white-space: nowrap; padding-top: 2px; }
.log-entry h3 { margin: 0 0 6px; font-size: 16.5px; }
.log-entry p, .log-entry ul { margin-bottom: 0; }
@media (max-width: 560px) { .log-entry { grid-template-columns: 1fr; gap: 4px; } }

/* status page */
.status-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.status-light { width: 14px; height: 14px; border-radius: 50%; background: var(--muted-2); flex: none; }
.status-light.up { background: #34d399; box-shadow: 0 0 14px rgba(52,211,153,.7); }
.status-light.down { background: #ff6b6b; box-shadow: 0 0 14px rgba(255,107,107,.7); }
.status-hero .status-word { font-size: 19px; font-weight: 600; }
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--border);
}
.status-row:last-child { border-bottom: none; }
.status-row .name { color: var(--text); font-weight: 500; }
.status-row .state { font-size: 13.5px; font-weight: 600; color: var(--muted-2); }
.status-row .state.up { color: #34d399; }
.status-row .state.down { color: #ff6b6b; }
