:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #05070f;
  color: #eef2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 24%),
              linear-gradient(180deg, #02040c 0%, #07101d 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(4, 10, 22, 0.96);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.header-grid,
.hero-grid,
.section-header,
.cards-grid,
.grid-2,
.code-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.header-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 0;
}

.brand strong {
  display: block;
  font-size: 1.5rem;
}

.brand span {
  color: #94a3b8;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.site-nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: #fff;
}

.hero {
  padding: 4rem 0 3.5rem;
}

.section-primary {
  background: rgba(8, 16, 32, 0.92);
}

.section-light {
  padding: 3.5rem 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
  align-items: center;
}

.hero-copy h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.02;
}

.hero-copy p,
.feature-card p,
.security-card p,
.code-panel p {
  color: #cbd5e1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #8b5cf6;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(29, 78, 216, 0.18);
}

.button-primary {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
}

.button-secondary {
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.88);
}

.hero-panel,
.stat-card,
.feature-card,
.security-card,
.code-panel {
  padding: 1.75rem;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-panel .stat-card {
  padding: 1.5rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.85rem;
  font-size: 1.3rem;
  color: #fff;
}

.stat-card span,
.security-card strong {
  color: #94a3b8;
}

.feature-card {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature-card:hover,
.security-card:hover,
.code-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 1);
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.security-list {
  display: grid;
  gap: 1rem;
}

.security-card strong {
  display: block;
  margin-bottom: 0.6rem;
}

.code-grid {
  grid-template-columns: 1.2fr 1fr;
}

.code-panel pre {
  margin: 1rem 0 0;
  padding: 1rem;
  background: rgba(10, 18, 34, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  overflow-x: auto;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}

.code-panel h3 {
  margin: 0;
}

.learn-more .feature-card a {
  color: #cbd5e1;
  text-decoration: none;
}

.learn-more .feature-card a:hover {
  color: #fff;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-header p {
  margin: 0;
  color: #94a3b8;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer p {
  margin: 0;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .header-grid,
  .hero-grid,
  .grid-2,
  .code-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
