/* RatedStack marketing site — design tokens shared by every page.
   Dark violet/indigo SaaS aesthetic; hand-written static CSS (no build step)
   so the pages stay fully crawlable and instantly cacheable. */

:root {
  --bg: #0a0a0f;
  --bg-raised: #10101a;
  --violet: #7c5cff;
  --blue: #4c6fff;
  --grad: linear-gradient(100deg, #7c5cff, #4c6fff);
  --text: #f4f3ff;
  --muted: #a8a5c0;
  --dim: #6f6c86;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.035);
  --radius: 20px;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 30px rgba(124, 92, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 12px 40px rgba(124, 92, 255, .5); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; padding: 16px 0;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 15, .72); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 4px 16px rgba(124,92,255,.4);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); cursor: pointer; margin-left: auto; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(12,12,20,.97); backdrop-filter: blur(16px); padding: 18px 24px; gap: 16px;
    border-bottom: 1px solid var(--line);
  }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 40px; text-align: center; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); z-index: -1; pointer-events: none; }
.hero::before { width: 720px; height: 720px; background: rgba(124,92,255,.28); top: -280px; left: 50%; transform: translateX(-55%); }
.hero::after { width: 460px; height: 460px; background: rgba(76,111,255,.22); top: 60px; right: -120px; }
.grid-bg {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 40%, transparent 100%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(124,92,255,.1); border: 1px solid rgba(124,92,255,.3);
  font-size: 13.5px; color: #cfc6ff; margin-bottom: 26px;
}
h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.03; letter-spacing: -.035em;
  font-weight: 800; margin-bottom: 22px;
}
.hero p.sub { font-size: clamp(1rem, 2.1vw, 1.2rem); color: var(--muted); max-width: 660px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.reassure { margin-top: 16px; font-size: 13.5px; color: var(--dim); }

/* ── Product mockup ──────────────────────────────────────────────────── */
.mockup {
  margin: 60px auto 0; max-width: 1000px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-raised);
  box-shadow: 0 40px 120px rgba(80, 60, 200, .35), 0 0 0 1px rgba(255,255,255,.03);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .mockup { animation: none; } }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.mock-url { margin: 0 auto; font-size: 12px; color: var(--dim); background: rgba(255,255,255,.04); padding: 4px 14px; border-radius: 7px; }
.mock-body { display: grid; grid-template-columns: 168px 1fr 232px; min-height: 320px; text-align: left; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 12px; font-size: 13px; color: var(--muted); }
.mock-side .row { padding: 8px 10px; border-radius: 8px; display: flex; gap: 9px; align-items: center; }
.mock-side .row.active { background: rgba(124,92,255,.16); color: #fff; }
.mock-main { padding: 16px; border-right: 1px solid var(--line); }
.mock-tabs { display: flex; gap: 7px; margin-bottom: 13px; flex-wrap: wrap; }
.tab { font-size: 12px; padding: 5px 11px; border-radius: 7px; color: var(--muted); border: 1px solid transparent; }
.tab.active { background: rgba(255,255,255,.07); color: #fff; border-color: var(--line); }
.mock-editor { border: 1px solid var(--line); border-radius: 11px; padding: 14px; font-size: 13.5px; color: #d9d6f0; background: rgba(255,255,255,.02); }
.mock-editor .tags { color: var(--violet); margin-top: 9px; }
.mock-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; font-size: 12px; color: var(--dim); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 15px; }
.chip { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.on { background: rgba(124,92,255,.16); border-color: rgba(124,92,255,.45); color: #d9d2ff; }
.mock-right { padding: 14px; font-size: 12px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }
.cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; color: var(--dim); font-size: 10.5px; }
.cal span.on { background: var(--grad); color: #fff; font-weight: 600; }
.queued { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin-bottom: 7px; background: rgba(255,255,255,.02); }
.queued b { font-size: 12px; font-weight: 600; display: block; color: #e8e6f8; }
.queued span { font-size: 10.5px; color: var(--dim); }

@media (max-width: 860px) { .mock-body { grid-template-columns: 1fr; } .mock-side, .mock-right { display: none; } .mock-main { border-right: 0; } }

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: 96px 0; position: relative; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); font-weight: 600; margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 620px; margin-bottom: 46px; font-size: 17px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.track { display: flex; gap: 14px; width: max-content; animation: slide 34s linear infinite; }
.track.rev { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }
.plat {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 13px;
  background: var(--glass); border: 1px solid var(--line); font-size: 15px; color: var(--muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.plat:hover { color: #fff; border-color: rgba(124,92,255,.5); transform: translateY(-3px); }

/* ── Bento ───────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(124,92,255,.42); box-shadow: 0 20px 50px rgba(90,70,220,.22); }
.card.wide { grid-column: span 2; }
.card h3 { font-size: 20px; font-weight: 650; margin-bottom: 10px; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 15px; }
.icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.28); display: grid; place-items: center; margin-bottom: 18px; }
.card-demo { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: rgba(0,0,0,.25); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .card.wide { grid-column: span 1; } }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.step .num { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.step h3 { font-size: 18px; margin-bottom: 8px; font-weight: 650; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ── Security ────────────────────────────────────────────────────────── */
.security {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: center;
  padding: 46px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.sec-item { display: flex; gap: 14px; padding: 17px 19px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 12px; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 12px; color: #fff; margin-top: 2px; }
.sec-item p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .security { grid-template-columns: 1fr; padding: 30px; gap: 26px; } }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band { position: relative; text-align: center; padding: 100px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; width: 900px; height: 500px; background: radial-gradient(ellipse, rgba(124,92,255,.3), transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(70px); z-index: -1; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer { padding: 66px 0 34px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; margin-bottom: 44px; }
.foot-grid h4 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; font-weight: 600; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-grid a { color: var(--muted); font-size: 14.5px; transition: color .2s ease; }
.foot-grid a:hover { color: var(--text); }
.foot-blurb { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ── Scroll reveal ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Legal / simple content pages ────────────────────────────────────── */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 90px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 8px; }
.doc .updated { color: var(--dim); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; letter-spacing: -.01em; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; font-weight: 650; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 16px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #b9a9ff; text-decoration: underline; }
.doc strong { color: var(--text); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.doc th { color: var(--text); background: rgba(255,255,255,.03); font-weight: 600; }
.callout { border: 1px solid rgba(124,92,255,.3); background: rgba(124,92,255,.08); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.callout p { margin-bottom: 0; color: #d6cfff; }

/* ── Centered confirmation (welcome page) ────────────────────────────── */
.hold { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; position: relative; }
.hold-card { max-width: 560px; padding: 46px 40px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(80,60,200,.25); }
.hold .big { width: 62px; height: 62px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; margin: 0 auto 24px; font-size: 28px; box-shadow: 0 10px 34px rgba(124,92,255,.45); }
.hold h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 14px; }
.hold p { color: var(--muted); margin-bottom: 12px; }
