/* Rocketor — design system.
   Dark, high-contrast, ad-performance aesthetic. No frameworks, no webfonts. */

:root {
  --ink: #050706;
  --bg: #080b0a;
  --surface: #0e1211;
  --surface-2: #131917;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf1ec;
  --muted: #93a29b;
  --faint: #7d8c85;
  --accent: #c9f24e;
  --accent-ink: #0b1206;
  --accent-soft: rgba(201, 242, 78, 0.12);
  --cyan: #6ee7c8;
  --amber: #ffc76b;
  --danger: #ff8080;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(201, 242, 78, 0.13), transparent 62%),
    radial-gradient(760px 460px at 92% 4%, rgba(110, 231, 200, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.1; letter-spacing: -0.02em; font-weight: 640; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; color: var(--muted); }
strong { color: var(--text); font-weight: 620; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.86rem; }
.mono { font-family: var(--mono); font-size: 0.86rem; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 240px; }
.hide { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 10, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; letter-spacing: -0.03em; font-size: 1.06rem; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.brand .mark svg { width: 18px; height: 18px; }
.brand small { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { font-size: 0.92rem; color: var(--muted); font-weight: 520; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.94rem;
  font-weight: 620;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--text); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 12px 34px -14px rgba(201, 242, 78, 0.7); }
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 18px 44px -16px rgba(201, 242, 78, 0.85); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-danger { border-color: rgba(255, 128, 128, 0.4); color: var(--danger); }

/* ---------- sections ---------- */
section { padding: 82px 0; position: relative; }
section.tight { padding: 54px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(201, 242, 78, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 620;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 44px; }

.hero { padding: 92px 0 66px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: center; }
.hero h1 span.hl { color: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-points div span { display: block; font-size: 1.5rem; font-weight: 680; color: var(--text); }
.hero-points div small { color: var(--faint); font-size: 0.8rem; }

.panel {
  background: linear-gradient(180deg, var(--surface), rgba(14, 18, 17, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
}
.panel.flat { box-shadow: none; }
.panel .tagline { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--faint); }
.console-rows { display: grid; gap: 10px; margin-top: 16px; }
.console-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.console-row b { font-weight: 620; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px rgba(201, 242, 78, 0.16); }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

/* ---------- pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(201, 242, 78, 0.45); background: linear-gradient(180deg, rgba(201, 242, 78, 0.06), var(--surface)); }
.plan .badge { align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(201, 242, 78, 0.35); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; font-weight: 640; }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 2px; }
.plan .price b { font-size: 2.6rem; letter-spacing: -0.04em; font-weight: 690; }
.plan .price span { color: var(--faint); font-size: 0.9rem; }
.plan .terms { font-size: 0.88rem; color: var(--cyan); margin-bottom: 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; }
.plan ul li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--muted); align-items: flex-start; }
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: 0 0 16px; }
.plan .foot { margin-top: auto; }
.plan-note { margin-top: 18px; font-size: 0.86rem; color: var(--faint); }

/* ---------- timeline ---------- */
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 8px; }
.timeline .step { padding: 0 0 30px 26px; position: relative; }
.timeline .step::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-strong); }
.timeline .step.done::before { background: var(--accent); border-color: var(--accent); }
.timeline .step.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(201, 242, 78, 0.16); }
.timeline .step small { color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; }
.timeline .step h3 { margin: 6px 0 6px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { margin-top: 12px; color: var(--muted); font-size: 0.94rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- forms ---------- */
form { margin: 0; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 620; }
input, select, textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201, 242, 78, 0.35); border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #8b9a93; opacity: 1; }
textarea { min-height: 118px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin: 0 0 16px; }
legend { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); padding: 0 6px; }
.radio-row { display: grid; gap: 10px; }
.radio {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px; cursor: pointer;
}
.radio input { width: auto; margin-top: 4px; }
.radio.selected { border-color: var(--accent); background: var(--accent-soft); }
.radio b { display: block; }
.radio small { color: var(--faint); }

/* ---------- banners ---------- */
.banner { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 0.92rem; margin-bottom: 20px; border: 1px solid; }
.banner.ok { background: rgba(110, 231, 200, 0.08); border-color: rgba(110, 231, 200, 0.3); color: var(--cyan); }
.banner.warn { background: rgba(255, 199, 107, 0.08); border-color: rgba(255, 199, 107, 0.3); color: var(--amber); }
.banner.bad { background: rgba(255, 128, 128, 0.08); border-color: rgba(255, 128, 128, 0.32); color: var(--danger); }

.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 620; }
.pill.ok { color: var(--accent); border-color: rgba(201, 242, 78, 0.4); background: var(--accent-soft); }
.pill.warn { color: var(--amber); border-color: rgba(255, 199, 107, 0.35); }
.pill.bad { color: var(--danger); border-color: rgba(255, 128, 128, 0.35); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--faint); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 640; background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: 0; }
td.wrapcell { white-space: normal; max-width: 320px; }

/* ---------- portal ---------- */
.portal-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.avatar { width: 46px; height: 46px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card small { display: block; color: var(--faint); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.stat-card b { font-size: 1.35rem; font-weight: 660; letter-spacing: -0.02em; }
.deliverable { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.deliverable header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.deliverable .body { color: var(--muted); font-size: 0.93rem; white-space: pre-wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.tabs a.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.auth-shell { max-width: 460px; margin: 40px auto; }

/* ---------- admin ---------- */
.grid.two > .panel, .grid.two > .card { align-self: start; }
.admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 30px; }
.plan-health { display: grid; gap: 10px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.site-footer h4 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); font-size: 0.92rem; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--faint); font-size: 0.84rem; }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.divider { height: 1px; background: var(--line); margin: 44px 0; }
.kbd-row { display: flex; gap: 10px; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; color: var(--muted); }
.checklist li::before { content: "→"; color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.legal-body h2 { margin-top: 36px; font-size: 1.35rem; }
.legal-body p { color: var(--muted); }
.legal-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 58px 0; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 18px 22px; gap: 14px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .plan-grid, .grid.two, .grid.three, .grid.four, .admin-grid, .footer-grid { grid-template-columns: 1fr; }
  .header-cta .btn span { display: none; }
}
