
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Core surfaces ── */
  --bg:          #f8fafc;
  --bg-card:     #ffffff;
  --bg-warm:     #f1f5f9;

  /* ── Ink / text ── */
  --ink:         #0f172a;
  --ink-1:       #0f172a;
  --ink-2:       #475569;
  --ink-3:       #64748b;

  /* ── Borders ── */
  --border:      #e2e8f0;

  /* ── Green accent ── */
  --accent:      #22c55e;
  --accent-dim:  #dcfce7;
  --accent-text: #166534;

  /* ── Aliases kept for backward compatibility ── */
  --green:       #22c55e;
  --green-dim:   #dcfce7;
  --green-txt:   #166534;
  --green-text:  #166534;

  /* ── Semantic status colours (unchanged) ── */
  --blue:        #6366f1;
  --blue-dim:    #ede9fe;
  --blue-text:   #4338ca;
  --amber:       #f59e0b;
  --yellow:      #f59e0b;
  --yellow-dim:  #fef3c7;
  --yellow-text: #92400e;
  --red:         #ef4444;
  --red-dim:     #fee2e2;
  --red-text:    #991b1b;
  --pink:        #ec4899;
  --pink-dim:    #fce7f3;

  /* ── Nav specific ── */
  --nav-bg:             #ffffff;
  --nav-text:           #22c55e;
  --nav-border:         #e2e8f0;
  --nav-btn-ghost-bg:   #f1f5f9;
  --nav-btn-ghost-text: #166534;

  /* ── Sidebar ── */
  --sidebar-bg:          #f8fafc;
  --sidebar-active-bg:   #dcfce7;
  --sidebar-active-text: #166534;
  --sidebar-link-text:   #475569;

  /* ── Stat cards ── */
  --stat-bg:  #f1f5f9;
  --stat-lbl: #64748b;
  --stat-val: #0f172a;
  --stat-sub: #64748b;

  /* ── Typography ── */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --font:  'DM Sans', system-ui, sans-serif;

  --radius: 10px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }






nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  border-bottom: 0.5px solid var(--nav-border);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px;; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--nav-text); font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 12px; }







/* ── Resources nav button ── */
.nav-resources-btn {
  font-size: 14px;
  color: rgba(237,227,213,0.6);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-family: var(--sans);
  transition: color 0.15s;
}
.nav-resources-btn:hover,
.nav-resources-btn.active { color: var(--nav-text); font-weight: 500; }
.nav-resources-btn svg { transition: transform 0.2s; }
.nav-resources-btn.open svg { transform: rotate(180deg); }

/* ── Resources dropdown ── */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(26,21,16,0.12);
  z-index: 200;
}
.nav-dropdown.open { display: block; }

.nav-dropdown-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-item:hover { background: var(--bg); }

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-dropdown-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.nav-dropdown-desc {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
}

/* ── Buttons ── */
.btn-ghost-sm {
  font-size: 14px; font-weight: 500;
  color: var(--nav-btn-ghost-text); text-decoration: none;
  padding: 8px 16px; border-radius: 8px; border: none;
  background: var(--nav-btn-ghost-bg);
  transition: opacity 0.15s; cursor: pointer;
  font-family: var(--font);
}
.btn-ghost-sm:hover { opacity: 0.85; }

.btn-primary-sm {
  font-size: 14px; font-weight: 500; color: #fff;
  padding: 9px 20px; border-radius: 8px;
  text-decoration: none; transition: opacity 0.15s; border: none;
  cursor: pointer; font-family: var(--font);
}
.btn-primary-sm:hover {color: var(--stat-sub); opacity: 0.85; }

.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: #fff;
  background: var(--accent); padding: 14px 28px; border-radius: 10px;
  text-decoration: none; transition: opacity 0.15s, transform 0.15s; border: none;
  cursor: pointer; font-family: var(--font);
}
.btn-hero:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; color: var(--ink-2); background: transparent;
  border: 0.5px solid var(--border); padding: 14px 28px; border-radius: 10px;
  text-decoration: none; transition: background 0.15s;
}
.btn-hero-outline:hover { background: var(--bg-card); }

.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  background: var(--nav-btn-ghost-bg); padding: 14px 32px; border-radius: 10px;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-cta:hover { opacity: 0.9; }

.btn-danger {
  font-size: 13px; font-weight: 500; color: var(--red-text);
  background: var(--red-dim); border: none; padding: 8px 16px;
  border-radius: 8px; cursor: pointer; font-family: var(--font);
  transition: opacity 0.15s;
}
.btn-danger:hover { opacity: 0.8; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 32px; border-radius: 8px;
  background: var(--bg); border: 0.5px solid var(--border);
  cursor: pointer; color: var(--ink-2); font-size: 14px;
  transition: background 0.15s; font-family: var(--font);
}
.btn-icon:hover { background: var(--border); }

/* ── Mobile Hamburger ── */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 101;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: white; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  padding: 16px; z-index: 99; flex-direction: column; gap: 2px; border: 1px solid var(--border);
}


.mobile-menu.open { display: flex; }
.mobile-link {
  text-decoration: none;
  padding: 11px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.mobile-link:hover { background: rgba(255,255,255,0.06); color: var(--stat-sub); }
.mobile-divider { height: 0.5px; margin: 8px 0; }



.mobile-cta-row { display: flex; gap: 8px; padding: 4px 0; }
.mobile-cta-row .btn-ghost-sm,
.mobile-cta-row .btn-primary-sm { flex: 1; text-align: center; }

.mobile-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: rgba(237,227,213,0.7);
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 12px;
  border-radius: 8px;
  font-family: var(--sans);
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-pricing-toggle:hover { background: rgba(255,255,255,0.06); color: var(--nav-text); }

.mobile-pricing-items {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 4px 12px;
}
.mobile-pricing-items.open { display: flex; }

.mobile-plan-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-plan-link:hover { background: var(--bg); color: var(--ink); }
.mobile-plan-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--green-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-plan-name { font-weight: 500; color: var(--nav-text); }
.mobile-plan-desc { font-size: 12px; color: rgba(237,227,213,0.5); }

/* ── Section Primitives ── */
section { padding: 100px 24px; margin: 0 auto; text-align: center;}
.section-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-h {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.8px; color: var(--ink);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--ink-2); font-weight: 300;
  line-height: 1.6; margin-bottom: 48px;
}

/* ── Hero ── */
/* FIX 1: increased padding-top so badge has more breathing room below the nav */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 160px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34,197,94,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(34,197,94,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim); color: var(--accent-text);
  font-size: 12px; font-weight: 500; padding: 5px 12px;
  border-radius: 20px; margin-bottom: 28px; letter-spacing: 0.02em;
  animation: fadeUp 0.6s ease both;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(42px, 7vw, 80px);
  line-height: 1.05; letter-spacing: -1.5px; color: var(--ink);
  max-width: 800px; margin-bottom: 24px; animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 520px;
  margin-bottom: 40px; font-weight: 300; line-height: 1.6;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  justify-content: center; animation: fadeUp 0.6s 0.3s ease both;
}
.hero-note { margin-top: 16px; font-size: 13px; color: black; animation: fadeUp 0.6s 0.4s ease both; }
.hero-preview { margin-top: 64px; width: 100%; max-width: 960px; animation: fadeUp 0.8s 0.5s ease both; }

/* ── Preview Frame ── */
.preview-frame {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(30,17,10,0.12), 0 8px 24px rgba(30,17,10,0.06);
}
.preview-bar {
  background: var(--bg-warm); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px; border-bottom: 0.5px solid var(--border);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-url {
  flex: 1; background: var(--bg-card); border-radius: 6px;
  padding: 5px 12px; font-size: 12px; color: var(--ink-3); margin: 0 8px;
}
.preview-body { display: grid; grid-template-columns: 200px 1fr; min-height: 320px; }
.preview-sidebar {
  background: var(--bg-warm); border-right: 0.5px solid var(--border);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 4px;
}
.preview-logo {
  font-family: var(--serif); font-size: 13px; color: var(--ink);
  padding: 4px 8px 12px; border-bottom: 0.5px solid var(--border); margin-bottom: 8px;
}
.preview-nav-item { height: 30px; border-radius: 6px; background: var(--border); opacity: 0.5; }
.preview-nav-item.active { background: var(--accent-dim); opacity: 1; }
.preview-main { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.preview-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preview-metric {
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
.preview-metric-label { width: 60%; height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 8px; }
.preview-metric-val { width: 40%; height: 20px; background: var(--ink); border-radius: 4px; opacity: 0.12; }
.preview-metric-bar { width: 100%; height: 2px; background: var(--border); border-radius: 2px; margin-top: 8px; }
.preview-metric-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.preview-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.preview-card {
  background: var(--bg); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 10px 12px; height: 80px;
}
.preview-card-title { width: 50%; height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 10px; }
.preview-card-line { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 5px; }
.preview-card-line.short { width: 70%; }
.preview-card-line.shorter { width: 50%; }

/* ── Logos ── */
.logos {
  padding: 40px 24px; text-align: center;
  border-top: 0.5px solid var(--border); border-bottom: 0.5px solid var(--border);
}
.logos-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px;
}
.logos-row { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.logo-item { font-family: var(--serif); font-size: 18px; color: var(--ink-3); opacity: 0.5; letter-spacing: -0.3px; }

/* ── Features Grid ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; border: 0.5px solid var(--border); border-radius: 16px;
  overflow: hidden; background: var(--border);
}
.feature-card { background: var(--bg-card); padding: 32px 28px; transition: background 0.2s; }
.feature-card:hover { background: var(--bg-warm); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 18px;
}
.feature-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.feature-desc  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ── Stats Strip ── */
.stats-strip { background: var(--ink); padding: 64px 24px; }
.stats-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.stat-item { padding: 32px; text-align: center; border-right: 0.5px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 52px; color: #fff; letter-spacing: -1px; line-height: 1; margin-bottom: 8px; }
.stat-num span { color: var(--accent); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.5); }

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.steps-list { display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; gap: 20px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.step-desc  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.steps-visual {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: 0 16px 40px rgba(30,17,10,0.08);
}
.snippet-label { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.code-snippet {
  background: var(--ink); border-radius: 10px; padding: 20px;
  font-family: monospace; font-size: 13px; color: #9ca3af;
  line-height: 1.7; margin-bottom: 20px;
}
.code-snippet .hl  { color: var(--accent); }
.code-snippet .str { color: #fcd34d; }

/* ── Pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; border: 0.5px solid var(--border); border-radius: 16px;
  overflow: hidden; background: var(--border);
}
.pricing-card { background: var(--bg-card); padding: 36px 32px; }
.pricing-card.featured { background: var(--ink); }
.pricing-plan { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.pricing-card.featured .pricing-plan { color: rgba(255,255,255,0.5); }
.pricing-price { font-family: var(--serif); font-size: 48px; color: var(--ink); letter-spacing: -1px; line-height: 1; margin-bottom: 4px; }
.pricing-card.featured .pricing-price { color: #fff; }
.pricing-per { font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.pricing-card.featured .pricing-per { color: rgba(255,255,255,0.5); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.pricing-features li { font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.75); }
.pricing-features li::before { content: '-'; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.btn-pricing {
  display: block; text-align: center; padding: 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  border: 0.5px solid var(--border); color: var(--ink);
  background: transparent; transition: background 0.15s;
}
.btn-pricing:hover { background: var(--bg-warm); }
.btn-pricing.featured { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-pricing.featured:hover { opacity: 0.9; }

/* ── CTA Band — FIX 3: full viewport width, break out of any container ── */
.cta-band {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--ink);
  padding: 100px 24px;
  text-align: center;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); color: #fff; letter-spacing: -0.8px; margin-bottom: 16px; }
.cta-band h2 em { font-style: italic; color: var(--accent); }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.5); margin-bottom: 36px; font-weight: 300; }

/* ── Footer — FIX 4: no extra space below ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}
.footer-logo { font-family: var(--serif); font-size: 16px; color: var(--ink); text-decoration: none; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: 12px; color: var(--ink-3); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 40px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34,197,94,0.06) 0%, transparent 60%);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 40px;
  box-shadow: 0 16px 48px rgba(30,17,10,0.1);
  animation: fadeUp 0.5s ease both;
}
.auth-logo { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 28px; display: block; }
.auth-logo span { color: var(--accent); }
.auth-title { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 32px; font-weight: 300; }
.auth-footer { margin-top: 24px; text-align: center; font-size: 13px; color: var(--ink-2); }
.auth-footer a { color: var(--accent-text); text-decoration: none; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.auth-error {
  background: var(--red-dim); color: var(--red-text); border: 0.5px solid #fca5a5;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none;
}
.auth-error.show { display: block; }
.auth-btn {
  width: 100%; padding: 12px; border-radius: 8px;
  background: var(--accent); color: #fff; border: none;
  font-size: 15px; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: opacity 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-btn:hover { opacity: 0.85; }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Form Elements ── */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; display: block; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; font-size: 14px; font-family: var(--font);
  border: 0.5px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); color: var(--ink); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,160,0,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ink-3); }
.form-error { font-size: 11px; color: var(--red); margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-textarea { resize: vertical; min-height: 80px; }

/* ── Dashboard Layout ── */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  padding-top: 64px;
}
.sidebar {
  position: fixed; top: 64px; left: 0; bottom: 0;
  width: 220px; overflow-y: auto;
  padding: 24px 16px;
  border-right: 0.5px solid var(--border);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column; gap: 4px;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 0 8px; margin-bottom: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--sidebar-link-text); text-decoration: none;
  padding: 8px 10px; border-radius: 8px;
  transition: all 0.15s; cursor: pointer;
}
.sidebar-link:hover { background: var(--accent-dim); color: var(--accent-text); }
.sidebar-link.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); font-weight: 500; }
.sidebar-link .icon { font-size: 15px; width: 20px; text-align: center; }
.sidebar-footer {
  margin-top: auto; padding-top: 16px; border-top: 0.5px solid var(--border);
}
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.sidebar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent-text);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.sidebar-email { font-size: 11px; color: var(--ink-3); }

.main-content { grid-column: 2; padding: 32px 40px; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.page-title { font-family: var(--serif); font-size: 28px; color: var(--ink); letter-spacing: -0.5px; }
.page-sub { font-size: 14px; color: black; margin-top: 4px; }

/* ── Stats Cards ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--stat-bg); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 20px 24px;
}
.stat-card-label { font-size: 12px; color: black; font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card-value { font-family: var(--serif); font-size: 36px; color: var(--stat-val); letter-spacing: -1px; line-height: 1; }
.stat-card-sub { font-size: 12px; color: var(--stat-sub); margin-top: 6px; }
.stat-card.up   .stat-card-value { color: var(--stat-val); }
.stat-card.down .stat-card-value { color: var(--red); }

/* ── Monitor List ── */
.monitors-table {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.monitors-table-header {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 120px;
  padding: 12px 20px;
  border-bottom: 0.5px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3);
}
.monitor-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 120px;
  padding: 16px 20px; align-items: center;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.15s; cursor: pointer;
}
.monitor-row:last-child { border-bottom: none; }
.monitor-row:hover { background: var(--bg-warm); }
.monitor-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.monitor-url  { font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.monitor-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ── Status Badge ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; padding: 4px 10px;
  border-radius: 20px;
}
.status-badge.up      { background: #dcfce7; color: #166534; }
.status-badge.down    { background: var(--red-dim); color: var(--red-text); }
.status-badge.pending { background: var(--accent-dim); color: var(--accent-text); }
.status-badge.paused  { background: var(--border); color: var(--ink-2); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
.status-dot.up      { background: #16a34a; animation: pulse 2s infinite; }
.status-dot.down    { background: var(--red); animation: pulse 1s infinite; }
.status-dot.pending { background: var(--accent); animation: pulse 2s infinite; }
.status-dot.paused  { background: var(--ink-3); }

/* ── Empty State ── */
.empty-state { padding: 80px 40px; text-align: center; }
.empty-state-icon { font-size: 40px; margin-bottom: 16px; }
.empty-state-title { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.empty-state-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(30,17,10,0.4);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 32px; width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px rgba(30,17,10,0.2);
  transform: translateY(16px); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: -0.3px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--ink-3); cursor: pointer; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--ink); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ── Response Time Chart ── */
.chart-container {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 24px;
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chart-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.chart-canvas { width: 100%; height: 140px; }

/* ── Incidents ── */
.incident-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 20px; border-bottom: 0.5px solid var(--border);
}
.incident-row:last-child { border-bottom: none; }
.incident-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; margin-top: 2px;
}
.incident-icon.down { background: var(--red-dim); }
.incident-icon.resolved { background: #dcfce7; }
.incident-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.incident-meta { font-size: 12px; color: var(--ink-3); }
.incident-duration { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; flex-shrink: 0; }

/* ── Uptime Bar ── */
.uptime-bar-wrap { display: flex; gap: 2px; height: 28px; align-items: stretch; border-radius: 4px; overflow: hidden; }
.uptime-bar-seg { flex: 1; min-width: 3px; transition: opacity 0.15s; cursor: default; }
.uptime-bar-seg:hover { opacity: 0.7; }
.uptime-bar-seg.up   { background: #16a34a; }
.uptime-bar-seg.down { background: var(--red); }
.uptime-bar-seg.none { background: var(--border); }

/* ── Tag / Pill ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 500; padding: 3px 8px;
  border-radius: 6px; background: var(--border); color: var(--ink-2);
}
.tag.green { background: #dcfce7; color: #166534; }
.tag.red   { background: var(--red-dim); color: var(--red-text); }
.tag.blue  { background: var(--blue-dim); color: var(--blue-text); }
.tag.amber { background: var(--accent-dim); color: var(--accent-text); }

/* ── Loader ── */
.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite; display: inline-block;
}
.spinner.dark { border-color: rgba(30,17,10,0.15); border-top-color: var(--ink); }
.loading-overlay {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; transition: opacity 0.3s;
}

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--ink); color: white;
  padding: 12px 18px; border-radius: 10px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(30,17,10,0.2);
  animation: fadeUp 0.3s ease both; max-width: 320px;
}
.toast.success { background: #14532d; }
.toast.error   { background: var(--red-text); }

/* ── Settings ── */
.settings-section {
  background: var(--bg-card); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 28px; margin-bottom: 20px;
}
.settings-section-title { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.settings-section-desc { font-size: 13px; color: var(--ink-2); margin-bottom: 20px; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 0.5px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-row-label { font-size: 14px; color: var(--ink); }
.settings-row-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ── Toggle ── */
.toggle { position: relative; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 22px; cursor: pointer; transition: background 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── API Keys Table ── */
.key-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 0.5px solid var(--border); gap: 16px;
}
.key-row:last-child { border-bottom: none; }
.key-value {
  font-family: monospace; font-size: 13px; color: var(--ink-2);
  background: var(--bg-warm); padding: 6px 12px; border-radius: 6px;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Public Status Page ── */
.status-page { max-width: 720px; margin: 0 auto; padding: 80px 24px 60px; }
.status-header { text-align: center; margin-bottom: 48px; }
.status-overall {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 12px;
  font-size: 16px; font-weight: 500; margin-bottom: 16px;
}
.status-overall.operational { background: #dcfce7; color: #166534; }
.status-overall.degraded    { background: var(--red-dim); color: var(--red-text); }
.status-overall.partial     { background: var(--accent-dim); color: var(--accent-text); }
.status-monitor-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 0.5px solid var(--border);
}
.status-monitor-row:last-child { border-bottom: none; }
.status-monitor-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.status-monitor-url  { font-size: 12px; color: var(--ink-3); }

/* ── Code Block ── */
.code-wrap { background: #0f0f0f; border-radius: var(--radius); overflow: hidden; margin: 16px 0 24px; }
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 0.5px solid #1f1f1f;
}
.code-lang { font-size: 11px; color: #6b7280; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.copy-btn {
  font-size: 11px; color: #9ca3af; background: #1f1f1f; border: none;
  padding: 4px 10px; border-radius: 4px; cursor: pointer;
  transition: all 0.15s; font-family: var(--font);
}
.copy-btn:hover { background: #2d2d2d; color: #fff; }
.copy-btn.copied { color: var(--accent); }
pre { padding: 20px; overflow-x: auto; font-family: monospace; font-size: 13px; line-height: 1.7; color: #e5e7eb; }
pre .hl  { color: #fcd34d; }
pre .str { color: #6ee7b7; }
pre .cmt { color: #4b5563; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--ink-3); }

/* ── Detail Panel ── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.detail-card {
  background: var(--stat-bg); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 20px;
}
.detail-card-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stat-lbl); margin-bottom: 8px; }
.detail-card-value { font-family: var(--serif); font-size: 32px; color: var(--stat-val); letter-spacing: -0.5px; }
.detail-card-sub { font-size: 12px; color: var(--stat-sub); margin-top: 4px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps-visual { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 0.5px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .preview-metrics { grid-template-columns: repeat(2, 1fr); }
  .preview-cards { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  footer .footer-links { justify-content: center; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { grid-column: 1; padding: 24px 16px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .monitors-table-header { display: none; }
  .monitor-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; gap: 4px; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  h1 { font-size: 34px !important; }
  .section-h { font-size: 28px; }
  .hero { padding: 120px 20px 60px; }
  section { padding: 60px 20px; }
  .stats-row { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
}



/* -- Feature card hover animations -- */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.feature-card:hover { border-color: var(--accent); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: #fff;
}
.feature-icon {
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}



/* ── Demo-only additions ── */
.demo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #f1f5f9; border: 0.5px solid var(--border); color: black;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 24px; font-size: 13px;
}
.demo-banner strong { font-weight: 600; }
.demo-banner .live { display: inline-flex; align-items: center; gap: 6px; }
.demo-banner .live-dot { width: 8px; height: 8px; border-radius: 50%; background: green; animation: pulse 1.6s infinite; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.detail-meta div { background: #f1f5f9; border-radius: 10px; padding: 12px 14px; }
.detail-meta .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: black; font-weight: 600; }
.detail-meta .v { font-size: 16px; color: black; margin-top: 2px; }
.uptime-legend { display: flex; justify-content: space-between; font-size: 11px; color: black; margin-top: 6px; }
.view[hidden] { display: none !important; }
.nav-count {
  margin-left: auto; font-size: 11px; font-weight: 600; line-height: 1;
  background: var(--red); color: #fff; border-radius: 10px; padding: 3px 7px;
}
.nav-count:empty { display: none; }
.inc-head, .inc-row {
  display: grid; grid-template-columns: 32px 2fr 1fr 1fr 1fr; gap: 16px; align-items: center;
}
.inc-head {
  padding: 12px 20px; border-bottom: 0.5px solid var(--border);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3);
}
.inc-row {
  padding: 16px 20px; border-bottom: 0.5px solid var(--border);
  cursor: pointer; transition: background 0.15s;
}
.inc-row:last-child { border-bottom: none; }
.inc-row:hover { background: var(--bg-warm); }
.inc-row .inc-sm { font-size: 13px; color: var(--ink-2); }
.page-btn {
  padding: 6px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; font-family: var(--sans);
  background: var(--bg-card); color: var(--ink-2); border: 0.5px solid var(--border);
}
.page-btn.current { background: var(--ink); color: #fff; }
.demo-hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 600px) {
  .inc-head { display: none; }
  .inc-row { grid-template-columns: 24px 1fr auto; gap: 10px; }
  .inc-row > .inc-started, .inc-row > .inc-dur { display: none; }
  .status-url-box { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .monitor-row > div:nth-child(3),
  .monitor-row > div:nth-child(4),
  .monitor-row > div:nth-child(5) { font-size: 12px !important; }
}
