:root {
  color-scheme: light;
  --bg: #1d4ed8;
  --bg-mid: #2563eb;
  --bg-glow: #0ea5e9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --on-blue: #f8fafc;
  --on-blue-muted: rgba(248, 250, 252, 0.88);
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: rgba(255, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.28);
  --border-card: #e2e8f0;
  --shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: #2563eb;
  background-image: linear-gradient(180deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--on-blue);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--on-blue-muted);
}

.site-nav a:hover {
  color: #fef08a;
  text-decoration: none;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a78bfa);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.45);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--on-blue);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--on-blue-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.hero .download-note {
  color: var(--on-blue-muted) !important;
}

.hero a:not(.btn) {
  color: #fde047;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  text-decoration: none;
  background: #fff;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.demo-box {
  margin: 2.5rem auto 0;
  max-width: 28rem;
  text-align: left;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.demo-box .caret {
  color: #22d3ee;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

section {
  padding: 3.5rem 0;
}

section h2 {
  font-size: 1.75rem;
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

section:not(.feature-band) h2 {
  color: var(--on-blue);
}

.section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

section:not(.feature-band) .section-intro {
  color: var(--on-blue-muted);
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.grid .card:nth-child(3n + 1) {
  border-top: 4px solid #f472b6;
}

.grid .card:nth-child(3n + 2) {
  border-top: 4px solid #22d3ee;
}

.grid .card:nth-child(3n + 3) {
  border-top: 4px solid #a78bfa;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-band {
  background: rgba(255, 255, 255, 0.1);
  border-block: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.feature-band h2,
.feature-band .section-intro {
  color: var(--on-blue);
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-card);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.shortcut-table th,
.shortcut-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.shortcut-table th {
  background: linear-gradient(90deg, #dbeafe, #e0e7ff);
  font-weight: 600;
  color: #1e3a8a;
}

.shortcut-table tr:last-child td {
  border-bottom: none;
}

.shortcut-table code {
  background: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.88rem;
}

.prose {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--surface);
  padding: 2rem 2.25rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-card);
}

.prose h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  text-align: left;
  margin-top: 2rem;
  color: var(--text);
}

.prose p,
.prose li {
  color: #334155;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--on-blue-muted);
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 500;
  color: #fde047;
}

.site-footer a:hover {
  color: #fef08a;
}

@media (max-width: 520px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}