:root {
  --bg: #f4f7fb;
  --text: #0f172a;
  --muted: #475569;
  --accent: #228be6;
  --accent-dark: #1463b8;
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.72);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090d16;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --glass-bg: rgba(24, 31, 48, 0.55);
    --glass-border: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 75vh;
  background:
    radial-gradient(circle at 22% 25%, rgba(34, 139, 230, 0.25), transparent 50%),
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.2), transparent 48%),
    radial-gradient(circle at 50% 60%, rgba(99, 102, 241, 0.14), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.glass-card, .glass-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

/* Header */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 20;
  padding: 0 20px;
}

.nav {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 999px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 13px 26px;
  font-size: 15px;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border: 1px solid var(--glass-border);
  padding: 13px 24px;
  font-size: 15px;
}

.btn-sm {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 15px;
  font-size: 13px !important;
}

/* Hero */
.hero {
  max-width: 980px;
  margin: 56px auto 0;
  padding: 0 20px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 139, 230, 0.14);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 17px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Showcase */
.showcase {
  margin-top: 44px;
  border-radius: 22px;
  padding: 18px 24px 26px;
  text-align: left;
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.showcase-title { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

.showcase-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}

.ring-box {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

.demo-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(148, 163, 184, 0.22); stroke-width: 10; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 351.8;
  stroke-dashoffset: 65;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-label .phase { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.ring-label strong { font-size: 30px; font-variant-numeric: tabular-nums; }
.ring-label .lock-tag { font-size: 11px; color: var(--muted); }

.showcase-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-pill {
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-pill span { font-size: 12px; color: var(--muted); }
.stat-pill strong { font-size: 14px; }

/* Sections */
.section {
  max-width: 980px;
  margin: 72px auto 0;
  padding: 0 20px;
}

.section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card, .step-card {
  border-radius: 18px;
  padding: 20px;
}

.feature-card h3, .step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

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

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.footer {
  text-align: center;
  padding: 48px 20px 32px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 780px) {
  .showcase-grid, .features-grid, .steps-grid, .showcase-stats {
    grid-template-columns: 1fr;
  }
}
