/* ================================================
   Raindar — style.css
   ================================================ */

:root {
  --bg:         #080d1a;
  --surface:    #0e1525;
  --surface-2:  #141d2e;
  --border:     #1c2840;
  --text:       #e8edf8;
  --muted:      #6b7fa3;
  --green:      #22c55e;
  --green-dim:  rgba(34, 197, 94, 0.12);
  --amber:      #f59e0b;
  --amber-dim:  rgba(245, 158, 11, 0.12);
  --red:        #ef4444;
  --red-dim:    rgba(239, 68, 68, 0.12);
  --radius:     8px;
  --radius-lg:  14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---- Nav ---------------------------------------- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo .dot { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--green) !important;
  color: #000 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 16px !important;
  border-radius: var(--radius) !important;
  transition: opacity 0.15s !important;
}

.btn-nav:hover { opacity: 0.88 !important; }

/* ---- Utility ------------------------------------ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section      { padding: 88px 0; }
.section-alt  { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

/* ---- Buttons ------------------------------------ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s;
}

.btn-ghost:hover { border-color: var(--muted); }

/* ---- Hero --------------------------------------- */

.hero {
  padding: 112px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34,197,94,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero h1 .hl { color: var(--green); }

.hero-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
  margin: 20px auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Live status pill --------------------------- */

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-dim);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ---- Radar preview ------------------------------ */

.radar-wrap {
  padding: 0 24px 88px;
  max-width: 1100px;
  margin: 0 auto;
}

.radar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.radar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.radar-bar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.radar-bar-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}

.radar-bar-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

.radar-table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
tbody td { padding: 14px 16px; vertical-align: middle; }

.cohort-name { font-weight: 500; }
.cohort-sub  { font-size: 12px; color: var(--muted); margin-top: 2px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.badge-ok       { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,.22); }
.badge-degraded { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(245,158,11,.22); animation: none; }
.badge-down     { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(239,68,68,.22); }

.badge-degraded .dot,
.badge-down .dot { animation: pulse 1.5s ease-in-out infinite; }

.delta     { font-size: 13px; font-weight: 500; white-space: nowrap; }
.delta-bad { color: var(--red); }
.delta-ok  { color: var(--green); }
.delta-neu { color: var(--muted); }

.n { font-size: 13px; color: var(--muted); }

.radar-foot {
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ---- Steps -------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.step-card p { font-size: 14px; color: var(--muted); }

/* ---- Tiers -------------------------------------- */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.tier-featured {
  border-color: rgba(34,197,94,.35);
}

.tier-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 18px;
}

.tier-featured .tier-label {
  color: var(--green);
  border-color: rgba(34,197,94,.35);
}

.tier-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.tier-price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.tier-price span { font-size: 14px; font-weight: 400; color: var(--muted); }

.tier-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.tier-features li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.check { color: var(--green); flex-shrink: 0; }

.tier-cta {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
  width: 100%;
}

.tier-cta:hover { opacity: 0.85; }
.tier-cta-green { background: var(--green); color: #000; }
.tier-cta-ghost { border: 1px solid var(--border); color: var(--text); background: transparent; }

/* ---- CTA / email capture ------------------------ */

.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-inner p { font-size: 16px; color: var(--muted); margin: 16px 0 32px; }

.email-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.email-form input::placeholder { color: var(--muted); }
.email-form input:focus { border-color: var(--green); }

.email-form button {
  background: var(--green);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.email-form button:hover { opacity: 0.88; }

.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
  justify-content: center;
}

/* ---- Footer ------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo { font-weight: 700; font-size: 15px; }
.footer-logo .dot { color: var(--green); }

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ---- Legal pages -------------------------------- */

.legal-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 { font-size: clamp(26px, 4vw, 46px); }

.legal-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.legal-body {
  padding: 56px 0 96px;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.legal-content h3 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  margin: 20px 0 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol { margin: 8px 0 16px 22px; }

.legal-content li {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-content table th {
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
  font-size: 13px;
}

.legal-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.legal-content strong { color: var(--text); font-weight: 600; }

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-caps {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ---- Responsive --------------------------------- */

@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }

  .hero-actions { flex-direction: column; padding: 0 24px; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  table thead th:nth-child(n+4),
  table tbody td:nth-child(n+4) { display: none; }

  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
