:root {
  --bg: #0A0A0A;
  --bg-alt: #F7F5F0;
  --fg: #FAFAFA;
  --fg-alt: #1A1A1A;
  --accent: #C8FF6E;
  --accent-dim: rgba(200, 255, 110, 0.12);
  --muted: #666;
  --border: rgba(255,255,255,0.08);
  --border-alt: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Figtree', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tag {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero */
.hero {
  padding: 80px 48px 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  color: #999;
  max-width: 420px;
  line-height: 1.65;
}

/* Status Panel */
.status-panel {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  font-family: 'Syne', monospace;
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.panel-title { font-size: 13px; font-weight: 600; color: var(--fg); }
.panel-badge { font-size: 11px; color: var(--muted); margin-left: auto; }

.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.site-name { color: var(--fg); font-weight: 500; }
.site-status { font-size: 12px; font-weight: 600; }
.site-status.ok { color: var(--accent); }
.site-status.degraded { color: #F5A623; }
.site-latency { color: var(--muted); text-align: right; }

.panel-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
}
.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }
}
.ticker-text { font-size: 12px; color: var(--muted); }

/* Features */
.features {
  padding: 80px 48px;
  background: var(--bg-alt);
  color: var(--fg-alt);
}
.features-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-alt);
}
.feature-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border-alt);
  border-bottom: 1px solid var(--border-alt);
}
.feature-card:nth-child(2n) { border-right: none; }
.feature-card:nth-child(3),
.feature-card:nth-child(4) { border-bottom: none; }
.feature-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--fg-alt);
}
.feature-card p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* How It Works */
.howitworks {
  padding: 80px 48px;
  background: #0A0A0A;
  color: #FAFAFA;
}
.hiw-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}
.hiw-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hiw-header p {
  font-size: 18px;
  color: #888;
  max-width: 560px;
}
.hiw-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.hiw-col {
  padding: 40px;
}
.hiw-col.old {
  background: #0D0D0D;
  border-right: 1px solid var(--border);
}
.hiw-col.new { background: #0F1A00; }
.hiw-col-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 24px;
}
.old-label { color: #666; }
.new-label { color: var(--accent); }
.hiw-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hiw-col li {
  font-size: 15px;
  color: #888;
  padding-left: 20px;
  position: relative;
}
.hiw-col.new li { color: #ccc; }
.hiw-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
}
.hiw-col.new li::before { background: var(--accent); }
.hiw-cta {
  text-align: center;
}
.hiw-cta p {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #555;
  font-style: italic;
}

/* Closing */
.closing {
  padding: 100px 48px;
  background: var(--bg-alt);
  color: var(--fg-alt);
  text-align: center;
}
.closing h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.closing p {
  font-size: 18px;
  color: #666;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Footer */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--fg-alt);
}
.footer-copy {
  font-size: 13px;
  color: #888;
}

/* ──────────────────────────────────────────────────────────
   Status Page
   ────────────────────────────────────────────────────────── */

/* Nav status link */
.nav-status-link {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-status-link:hover { color: var(--accent); }

/* Page wrapper */
.status-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
}

/* Hero banner */
.status-hero {
  padding: 64px 48px 48px;
  border-bottom: 1px solid var(--border);
}
.status-hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}
.status-badge--up   { background: rgba(200,255,110,0.1); color: var(--accent); border: 1px solid rgba(200,255,110,0.3); }
.status-badge--down { background: rgba(255,80,80,0.1);   color: #FF5050;       border: 1px solid rgba(255,80,80,0.3); }
.status-badge--partial { background: rgba(245,166,35,0.1); color: #F5A623;     border: 1px solid rgba(245,166,35,0.3); }

.status-badge-dot {
  width: 9px; height: 9px; border-radius: 50%;
  animation: pulse 2s infinite;
}
.status-badge-dot--up      { background: var(--accent); }
.status-badge-dot--down    { background: #FF5050; animation: none; }
.status-badge-dot--partial { background: #F5A623; }

.status-hero-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}
.status-updated {
  font-size: 12px;
  color: #444;
}

/* Sections */
.status-section {
  padding: 48px 48px;
}
.status-section--alt {
  background: #0D0D0D;
}
.status-container {
  max-width: 880px;
  margin: 0 auto;
}
.status-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Monitor card */
.monitor-card {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
}
.monitor-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.monitor-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.monitor-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}
.monitor-url {
  font-size: 12px;
  color: var(--muted);
}
.monitor-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.monitor-meta {
  font-size: 12px;
  color: #444;
}

/* Status pills */
.status-pill {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.status-pill--up      { background: rgba(200,255,110,0.12); color: var(--accent); }
.status-pill--down    { background: rgba(255,80,80,0.12);   color: #FF5050; }
.status-pill--unknown { background: rgba(102,102,102,0.12); color: var(--muted); }

/* 24h uptime bar */
.uptime-bar-wrap { }
.uptime-bar {
  display: flex;
  gap: 2px;
  height: 32px;
  align-items: stretch;
}
.uptime-seg {
  flex: 1;
  border-radius: 2px;
  min-width: 0;
}
.uptime-seg--up      { background: var(--accent); opacity: 0.8; }
.uptime-seg--down    { background: #FF5050; }
.uptime-seg--partial { background: #F5A623; opacity: 0.8; }
.uptime-seg--none    { background: #1E1E1E; }

.uptime-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #444;
}

/* Empty states */
.status-empty {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.status-empty--good {
  color: var(--accent);
  border-color: rgba(200,255,110,0.2);
  background: rgba(200,255,110,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.status-empty-icon { font-size: 18px; }

/* Incident list */
.incident-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.incident-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #111;
  gap: 16px;
}
.incident-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.incident-row-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.incident-pill {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-top: 2px;
}
.incident-pill--resolved { background: rgba(200,255,110,0.1); color: var(--accent); }
.incident-pill--ongoing  { background: rgba(255,80,80,0.1);   color: #FF5050; }

.incident-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.incident-url {
  font-size: 14px;
  color: var(--fg);
  font-weight: 500;
}
.incident-time {
  font-size: 12px;
  color: #555;
}
.incident-postmortem-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.incident-postmortem-link:hover { opacity: 0.75; }

/* Status page footer */
.status-footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}
.status-footer-text {
  font-size: 13px;
  color: #444;
  text-align: center;
}
.status-footer-link {
  color: var(--accent);
  text-decoration: none;
  margin-left: 8px;
}
.status-footer-link:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────
   Hero Signup Form
   ────────────────────────────────────────────────────────── */
.hero-signup-form {
  margin-top: 36px;
}
.hero-signup-row {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(200,255,110,0.35);
  background: #111;
}
.hero-signup-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  min-width: 0;
}
.hero-signup-input::placeholder { color: #444; }
.hero-signup-btn {
  background: var(--accent);
  color: #0A0A0A;
  border: none;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.hero-signup-btn:hover { opacity: 0.88; }
.hero-signup-note {
  margin-top: 10px;
  font-size: 12px;
  color: #555;
}

/* ──────────────────────────────────────────────────────────
   Signup Page (/signup)
   ────────────────────────────────────────────────────────── */
.signup-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px 80px;
}
.signup-wrap {
  width: 100%;
  max-width: 480px;
}
.signup-header { margin-bottom: 40px; }
.signup-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  margin-bottom: 16px;
}
.signup-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}
.signup-sub {
  font-size: 16px;
  color: #888;
  line-height: 1.65;
}

/* Error + success banners */
.signup-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.2);
  border-radius: 8px;
  font-size: 14px;
  color: #FF5050;
  margin-bottom: 20px;
  line-height: 1.5;
}
.signup-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 24px;
  background: rgba(200,255,110,0.06);
  border: 1px solid rgba(200,255,110,0.25);
  border-radius: 12px;
  margin-bottom: 32px;
}
.signup-success-icon {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.signup-success-text {
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
}

/* Form fields */
.signup-form { display: flex; flex-direction: column; gap: 20px; }
.signup-field { display: flex; flex-direction: column; gap: 6px; }
.signup-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.01em;
}
.signup-label-hint { color: #555; font-weight: 400; }
.signup-input {
  background: #111;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.signup-input:focus { border-color: rgba(200,255,110,0.4); }
.signup-input::placeholder { color: #444; }

.signup-btn {
  background: var(--accent);
  color: #0A0A0A;
  border: none;
  border-radius: 8px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  letter-spacing: -0.01em;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.signup-btn:hover { opacity: 0.88; }

.signup-fine {
  font-size: 12px;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

/* Trust bar */
.signup-trust {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.signup-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}
.signup-trust-icon { font-size: 16px; }

/* ──────────────────────────────────────────────────────────
   Personal Status Page (/s/:short_id)
   ────────────────────────────────────────────────────────── */
.personal-upgrade-cta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(200,255,110,0.04);
  border: 1px solid rgba(200,255,110,0.12);
  border-radius: 10px;
  flex-wrap: wrap;
}
.personal-upgrade-text {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.personal-upgrade-text strong { color: #999; }
.personal-upgrade-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Syne', sans-serif;
}
.personal-upgrade-link:hover { opacity: 0.8; }

/* Mobile */
@media (max-width: 768px) {
  .nav, .hero, .features, .howitworks, .closing, .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; }
  .feature-card:nth-child(3) { border-bottom: 1px solid var(--border-alt); }
  .hiw-comparison { grid-template-columns: 1fr; }
  .hiw-col.old { border-right: none; border-bottom: 1px solid var(--border); }
  .status-hero, .status-section, .status-footer { padding-left: 20px; padding-right: 20px; }
  .status-hero { padding-top: 40px; padding-bottom: 32px; }
  .monitor-card-header { flex-direction: column; gap: 12px; }
  .monitor-right { flex-wrap: wrap; }
  .incident-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .uptime-bar { height: 24px; }
  .hero-signup-row { flex-direction: column; border-radius: 8px; }
  .hero-signup-btn { border-radius: 0 0 8px 8px; padding: 14px; text-align: center; }
  .signup-trust { gap: 16px; }
  .personal-upgrade-cta { flex-direction: column; align-items: flex-start; }
}