:root {
  --bg: #0b1220;
  --bg-soft: #111a2d;
  --surface: #18233b;
  --text: #ebf1ff;
  --muted: #9fb0d1;
  --accent: #4f9cff;
  --ok: #34d399;
  --border: #2a3a5a;
  --shadow: 0 16px 40px rgba(2, 8, 20, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #1f2a47 0%, var(--bg) 48%);
  color: var(--text);
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

body.light-theme {
  --bg: #edf2ff;
  --bg-soft: #dde6ff;
  --surface: #f8faff;
  --text: #0f1a2f;
  --muted: #465879;
  --accent: #2f6fff;
  --ok: #0ea5a4;
  --border: #cfdbf9;
  background: radial-gradient(circle at 20% 0%, #ffffff 0%, #dfe9ff 52%);
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #7dc0ff);
  color: white;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(79, 156, 255, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: white;
}

.hero {
  padding: 84px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 1.03;
}

.hero p {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 57ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.preview-card {
  position: relative;
  overflow: hidden;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.preview-badge {
  color: var(--ok);
  font-weight: 700;
  font-size: 0.8rem;
}

.section {
  padding: 46px 0;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
}

.section-intro {
  color: var(--muted);
  max-width: 65ch;
  margin-top: 0;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 14px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

pre {
  margin: 0;
  overflow: auto;
  border-radius: 12px;
  background: #050913;
  color: #d6e0ff;
  border: 1px solid #2a3555;
  padding: 14px;
  font-size: 0.87rem;
}

body.light-theme pre {
  background: #f4f8ff;
  color: #0f1b2e;
  border-color: #ccdaf8;
}

.price {
  display: grid;
  gap: 12px;
}

.price-single-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.price-single-wrap .price {
  width: min(560px, 100%);
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
}

.price ul {
  padding-left: 16px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item {
  margin-bottom: 12px;
}

.footer-cta {
  padding: 55px 0 70px;
}

.footer-box {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.small {
  color: var(--muted);
  font-size: 0.86rem;
}

.demo-wrap,
.template-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.demo-main,
.template-main {
  padding: 26px 0 40px;
}

.centered {
  text-align: center;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.86rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  font: inherit;
}

.field input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-color: var(--accent);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 58px;
  }

  .nav {
    min-height: 60px;
  }

  .panel,
  .card {
    padding: 14px;
  }
}
