:root {
  --bg: #06080f;
  --surface: #0f1420;
  --surface-2: #151c2c;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-text: #041018;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; color: var(--text);
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav-cta {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-text) !important;
}

.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(129, 140, 248, 0.12), transparent 45%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
}
.eyebrow {
  color: var(--accent); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08; margin: 0.75rem 0 1rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.75rem 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.35rem; border-radius: 999px; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; font-size: 0.95rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-text);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-block { width: 100%; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-top: 2rem;
}
.hero-stats div {
  padding: 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-stats strong { display: block; font-size: 1.4rem; font-family: var(--font-display); }
.hero-stats span { color: var(--muted); font-size: 0.82rem; }
.hero-card {
  padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.card-label { color: var(--accent); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0.5rem 0; }
.card-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }

.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 0.5rem; }
.section-head p { color: var(--muted); margin: 0; }

.template-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem;
}
.template-card {
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}
.template-card:hover { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.35); }
.template-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.template-card h3 { margin: 0 0 0.35rem; font-family: var(--font-display); }
.template-card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; }
.template-card a { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

.demos { background: var(--surface); }
.demo-filters {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.demo-filters input, .demo-filters select {
  flex: 1; min-width: 200px; padding: 0.75rem 1rem;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
.demo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.demo-card {
  padding: 1.1rem 1.25rem; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
}
.demo-card.featured { border-color: rgba(56, 189, 248, 0.4); }
.demo-card .tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); margin-bottom: 0.35rem;
}
.demo-card h4 { margin: 0 0 0.25rem; font-size: 0.98rem; }
.demo-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.85rem; }
.demo-card a { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.demo-count { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.5rem; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.steps article {
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps span {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  color: var(--accent); margin-bottom: 0.5rem;
}
.steps h3 { margin: 0 0 0.5rem; font-family: var(--font-display); }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.about-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: start;
}
.about h2 { font-family: var(--font-display); font-size: 2rem; margin-top: 0; }
.about p { color: var(--muted); }
.about-facts {
  list-style: none; margin: 0; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.about-facts li { margin-bottom: 1rem; color: var(--muted); }
.about-facts strong { display: block; color: var(--text); margin-bottom: 0.15rem; }
.about-facts a { color: var(--accent); }

.contact-box {
  text-align: center; padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.08));
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px);
}
.contact-box h2 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 0.5rem; }
.contact-box > p { color: var(--muted); margin: 0 0 1.5rem; }
.contact-form {
  max-width: 480px; margin: 0 auto;
  display: grid; gap: 0.75rem;
}
.contact-form input, .contact-form textarea {
  padding: 0.8rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font: inherit;
}
.form-msg { font-size: 0.9rem; }
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #f87171; }

.footer {
  padding: 2rem 0; border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  color: var(--muted); font-size: 0.85rem;
}

@media (max-width: 800px) {
  .nav { display: none; }
  .hero-grid, .about-grid, .steps { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
