/* CronCheck — Design System */
:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --bg-card: #1c1c21;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --primary: #22c55e;
  --primary-hover: #16a34a;
  --danger: #ef4444;
  --warning: #eab308;
  --radius: 8px;
  --radius-lg: 12px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,11,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.logo-icon { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px;
  font-weight: 500; transition: all 0.15s; cursor: pointer;
  border: none; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--text-dim); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 100px 0 60px; text-align: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 50px;
  background: rgba(34,197,94,0.1); color: var(--primary);
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
  border: 1px solid rgba(34,197,94,0.2);
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }

/* Code block */
.hero-code {
  max-width: 640px; margin: 0 auto 40px; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.code-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.code-title { margin-left: 12px; font-size: 12px; color: var(--text-dim); font-family: var(--mono); }
.hero-code pre {
  padding: 20px; overflow-x: auto; font-size: 13px;
  font-family: var(--mono); line-height: 1.7; color: var(--text-muted);
}
.hero-code code .comment { color: var(--text-dim); }

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

/* Status bar */
.status-bar {
  padding: 24px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.status-grid { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.status-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-family: var(--mono); color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.up { background: var(--primary); box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.status-dot.down { background: var(--danger); box-shadow: 0 0 8px rgba(239,68,68,0.4); animation: pulse 2s infinite; }
.status-time { color: var(--text-dim); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: var(--bg-elevated); }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-top: 48px; }
.step { text-align: center; padding: 32px; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(34,197,94,0.1); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 20px; margin-bottom: 16px;
  border: 1px solid rgba(34,197,94,0.2);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 48px; }
.feature {
  padding: 28px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: border-color 0.2s;
}
.feature:hover { border-color: var(--text-dim); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.feature code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; font-family: var(--mono); }

/* Code examples */
.code-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.code-example { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.code-example h4 { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); font-weight: 500; }
.code-example pre { padding: 16px 20px; overflow-x: auto; font-size: 12px; font-family: var(--mono); line-height: 1.7; color: var(--text-muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 900px; margin: 48px auto 0; }
.plan {
  padding: 32px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); position: relative;
}
.plan-featured { border-color: var(--primary); }
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #000; padding: 4px 14px;
  border-radius: 50px; font-size: 12px; font-weight: 600;
}
.plan h3 { font-size: 20px; margin-bottom: 8px; }
.price { font-size: 48px; font-weight: 800; margin-bottom: 24px; letter-spacing: -0.03em; }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.plan ul { list-style: none; margin-bottom: 28px; }
.plan li { padding: 8px 0; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.plan li::before { content: '✓ '; color: var(--primary); font-weight: 600; }

/* CTA */
.cta { text-align: center; padding: 100px 0; }
.cta h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.cta p { color: var(--text-muted); margin-bottom: 32px; font-size: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.footer-brand { max-width: 280px; font-weight: 700; font-size: 16px; }
.footer-brand p { font-weight: 400; font-size: 14px; color: var(--text-muted); margin-top: 8px; }
.footer-links { display: flex; gap: 64px; }
.footer-links h4 { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 14px; color: var(--text-muted); padding: 4px 0; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text-dim); }

/* Mobile */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 32px; }
  .status-grid { gap: 16px; }
  .footer-links { gap: 32px; }
}
