:root {
  --bg: #0f1219;
  --bg-elevated: #171c27;
  --bg-card: #1c2230;
  --border: #2a3347;
  --text: #e8ecf4;
  --text-muted: #9aa6bd;
  --accent: #f0a53a;
  --accent-hover: #f7b85a;
  --accent-soft: rgba(240, 165, 58, 0.12);
  --green: #5ecf8a;
  --purple: #a78bfa;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(240, 165, 58, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(94, 207, 138, 0.08), transparent),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(15, 18, 25, 0.82);
  border-bottom: 1px solid rgba(42, 51, 71, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: clamp(0.82rem, 2.2vw, 1.05rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: min(52vw, 22rem);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid rgba(240, 165, 58, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-nav[hidden] { display: none !important; }

.mobile-nav.is-open {
  display: flex;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

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

.btn-primary {
  background: var(--accent);
  color: #1a1208;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a1208;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-block { width: 100%; }

/* Hero */

.hero {
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.demo-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.demo-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d4659;
}

.demo-bar span:first-child { background: #e06c75; }
.demo-bar span:nth-child(2) { background: #e5c07b; }
.demo-bar span:nth-child(3) { background: #98c379; }

.demo-body {
  padding: 1.75rem 1.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.7;
}

.demo-line { margin: 0 0 1.25rem; }

.typed { color: var(--green); }
.untyped { color: var(--text-muted); }

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin: 0 1px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.demo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.demo-stats strong {
  color: var(--text);
  font-weight: 600;
}

.demo-mode {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.15);
  color: var(--purple);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Sections */

.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features {
  padding: 4rem 0 5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: rgba(240, 165, 58, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.highlight {
  padding: 3.5rem 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.highlight-inner {
  max-width: 42rem;
  text-align: center;
}

.highlight blockquote {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.highlight blockquote em { color: var(--accent); font-style: normal; }

.highlight-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing */

.pricing {
  padding: 5rem 0 6rem;
}

.pricing-card {
  max-width: 26rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
}

.pricing-top {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-top h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-term {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.pricing-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.pricing-footnote {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-copy {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-demo { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .demo-mode { margin-left: 0; }
  .hero { padding-top: 2.5rem; }
}
