:root {
  --bg: #0a0f14;
  --bg-2: #0e151d;
  --panel: #121b25;
  --panel-2: #16212d;
  --line: #223140;
  --text: #e8eef4;
  --muted: #93a4b3;
  --teal: #5eead4;
  --teal-2: #2dd4bf;
  --amber: #fbbf24;
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #12303a 0%, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand { font-family: 'Sora', system-ui, sans-serif; }

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

/* Ridge backdrop */
.ridge-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.ridge {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 55vh;
}
.ridge-back path { fill: #0f1b24; }
.ridge-front path { fill: #13232e; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(8px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--teal); }
.brand-dim { color: var(--muted); font-weight: 600; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
  color: #06231f;
  font-weight: 700;
  font-family: 'Sora', sans-serif;
  padding: 11px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-size: 0.95rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(45, 212, 191, 0.25); text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); box-shadow: none; color: var(--teal); }
.full { width: 100%; }

/* Layout */
main { position: relative; z-index: 1; }
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 12px; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Hero */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 90px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 14px 0 20px;
}
.grad {
  background: linear-gradient(120deg, var(--teal), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Sora'; font-size: 1.8rem; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #2f4557; }
.card-ico { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card.feature { border-left: 3px solid var(--teal); }

/* Demo */
.demo { background: linear-gradient(180deg, transparent, rgba(94,234,212,0.03)); border-radius: 28px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.demo-panel, .demo-result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.demo-result { min-height: 100%; }
textarea, input, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--teal); }
.field-label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.or { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 16px 0; position: relative; }
.or::before, .or::after {
  content: ''; position: absolute; top: 50%; width: 34%; height: 1px; background: var(--line);
}
.or::before { left: 0; } .or::after { right: 0; }
.form-row { display: flex; gap: 12px; }
.form-row .fld { flex: 1; }

/* Result rendering */
.result-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.result-ico { font-size: 2.4rem; margin-bottom: 10px; }
.result-empty span { display: block; font-size: 0.85rem; margin-top: 8px; opacity: 0.7; }
.est-headline { text-align: center; padding: 8px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.est-headline .svc { color: var(--muted); font-size: 0.9rem; }
.est-range { font-family: 'Sora'; font-size: 2.4rem; font-weight: 800; margin: 6px 0 2px; }
.est-range .grad { display: inline; }
.est-mid { color: var(--muted); font-size: 0.9rem; }
.est-rows { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.est-row { display: flex; justify-content: space-between; font-size: 0.92rem; }
.est-row span:first-child { color: var(--muted); }
.est-note { font-size: 0.8rem; color: var(--muted); background: var(--bg); padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.est-cta { margin-top: 16px; }
.badge-ai { display: inline-block; font-size: 0.72rem; background: rgba(94,234,212,0.12); color: var(--teal); border: 1px solid rgba(94,234,212,0.3); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.badge-kw { display: inline-block; font-size: 0.72rem; background: rgba(251,191,36,0.1); color: var(--amber); border: 1px solid rgba(251,191,36,0.25); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.demo-foot { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(94,234,212,0.12); color: var(--teal);
  font-family: 'Sora'; font-weight: 700; margin-bottom: 12px;
  border: 1px solid rgba(94,234,212,0.3);
}
.step h3 { margin: 0 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Proof */
.proof { text-align: center; max-width: 820px; }
.proof blockquote {
  font-family: 'Sora'; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.4;
  margin: 0 0 18px; color: var(--text); font-weight: 600;
}
.proof-by { color: var(--muted); }

/* Contact */
.contact { max-width: 760px; }
.lead-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-status { text-align: center; margin: 14px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #f87171; }
input.invalid, select.invalid, textarea.invalid { border-color: #f87171; }

/* Footer */
.footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: 50px 24px 60px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer .brand { justify-content: center; margin-bottom: 8px; }
.footer-tag { color: var(--muted); margin: 4px 0; }
.footer-fine { color: var(--muted); font-size: 0.85rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 860px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hero-stats { gap: 24px; }
}
