/* ── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #060608;
  --bg-1:      #0a0a0e;
  --bg-2:      #0e0e14;
  --bg-3:      #13131a;
  --border:    rgba(255,255,255,0.06);
  --border-hi: rgba(255,255,255,0.12);
  --green:     #00e87a;
  --green-dim: rgba(0,232,122,0.12);
  --green-glow:rgba(0,232,122,0.2);
  --blue:      #4d9eff;
  --blue-dim:  rgba(77,158,255,0.12);
  --purple:    #9b6fff;
  --text-1:    #f0f0f5;
  --text-2:    #9090a0;
  --text-3:    #50505f;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE ────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── GRID BACKGROUND ──────────────────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,6,8,0.7);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--green) 0%, #00bfff 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px var(--green-glow);
}
.nav-logo-mark svg { width: 14px; height: 14px; stroke: #060608; stroke-width: 2.5; }
.nav-logo-text { font-weight: 700; font-size: 16px; letter-spacing: -0.5px; color: var(--text-1); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-3); font-size: 13px; text-decoration: none; transition: color .2s; font-weight: 500; }
.nav-links a:hover { color: var(--text-2); }
.nav-cta {
  height: 34px; padding: 0 16px;
  background: var(--bg-3); border: 1px solid var(--border-hi);
  border-radius: 8px; color: var(--text-1); font-size: 13px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap-6px;
  transition: all .2s;
}
.nav-cta:hover { background: var(--bg-2); border-color: rgba(255,255,255,0.2); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 32px 80px;
  position: relative; text-align: center;
}

/* Radial spotlight */
.hero::after {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,232,122,0.07) 0%, transparent 65%);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px;
  background: var(--bg-2); border: 1px solid var(--border-hi);
  border-radius: 100px; margin-bottom: 28px;
  animation: fadeUp .6s ease forwards;
}
.hero-eyebrow-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-dim); border: 1px solid rgba(0,232,122,0.3);
  display: flex; align-items: center; justify-content: center;
}
.hero-eyebrow-dot::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease-in-out infinite;
}
.hero-eyebrow span { font-size: 12px; color: var(--text-2); font-weight: 500; }
.hero-eyebrow strong { color: var(--green); font-weight: 600; }

.hero-h1 {
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.92;
  margin-bottom: 24px;
  animation: fadeUp .6s .1s ease both;
}
.hero-h1 .line-dim { color: var(--text-3); }
.hero-h1 .line-grad {
  background: linear-gradient(135deg, var(--green) 0%, #00d4ff 50%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  max-width: 480px; margin: 0 auto 36px;
  color: var(--text-2); font-size: 16px; line-height: 1.7;
  animation: fadeUp .6s .2s ease both;
}

.hero-ctas {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  margin-bottom: 60px;
  animation: fadeUp .6s .3s ease both;
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary {
  height: 46px; padding: 0 24px;
  background: var(--green); color: #060608;
  font-weight: 700; font-size: 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: all .2s; border: none; cursor: pointer;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn-primary:hover {
  background: #00ff87;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--green-glow);
}
.btn-primary svg { width: 15px; height: 15px; transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(2px); }

.btn-secondary {
  height: 46px; padding: 0 22px;
  background: transparent; color: var(--text-2);
  font-weight: 500; font-size: 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: all .2s;
  border: 1px solid var(--border-hi); cursor: pointer;
}
.btn-secondary:hover { color: var(--text-1); border-color: rgba(255,255,255,0.2); background: var(--bg-2); }

/* ── STAT ROW ─────────────────────────────────────────────────────────────── */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; max-width: 420px; margin: 0 auto;
  background: var(--border); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  animation: fadeUp .6s .4s ease both;
}
.hero-stat {
  background: var(--bg-1); padding: 18px 20px; text-align: center;
}
.hero-stat-val { font-size: 22px; font-weight: 800; letter-spacing: -1px; color: var(--text-1); }
.hero-stat-label { font-size: 11px; color: var(--text-3); margin-top: 2px; font-weight: 500; }

/* ── DOCUMENT PREVIEW CARD ────────────────────────────────────────────────── */
.doc-preview-card {
  position: relative; max-width: 340px; margin: 60px auto 0;
  background: var(--bg-2); border: 1px solid var(--border-hi);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  animation: fadeUp .6s .5s ease both;
}
.doc-preview-topbar {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.doc-dot { width: 10px; height: 10px; border-radius: 50%; }
.doc-preview-content { padding: 16px; font-family: var(--font-mono); font-size: 11px; }
.doc-line { margin-bottom: 6px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.doc-line.hi { color: var(--green); }
.doc-line.hi2 { color: var(--blue); }
.doc-line-bar {
  height: 8px; border-radius: 4px; background: var(--bg-3);
  margin-bottom: 6px; overflow: hidden;
}
.doc-line-bar-fill { height: 100%; border-radius: 4px; background: var(--bg-3); }
.doc-stamp {
  position: absolute; bottom: 16px; right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(0,232,122,0.4);
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-12deg);
}
.doc-stamp svg { width: 22px; height: 22px; stroke: var(--green); opacity: 0.7; }

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */
.section { padding: 96px 32px; position: relative; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--green); letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.05; margin-bottom: 16px;
}
.section-sub { color: var(--text-2); font-size: 16px; max-width: 480px; }

.section-divider {
  height: 1px; max-width: 1080px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; margin-top: 56px; }
.step {
  background: var(--bg-1); padding: 32px 28px;
  position: relative; transition: background .2s;
}
.step:first-child { border-radius: 14px 0 0 14px; }
.step:last-child  { border-radius: 0 14px 14px 0; }
.step:hover { background: var(--bg-2); }

.step-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--text-3); letter-spacing: 2px; margin-bottom: 20px;
}
.step-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hi);
}
.step-icon svg { width: 20px; height: 20px; }
.step-icon.green { background: var(--green-dim); border-color: rgba(0,232,122,0.2); }
.step-icon.green svg { stroke: var(--green); }
.step-icon.blue  { background: var(--blue-dim);  border-color: rgba(77,158,255,0.2); }
.step-icon.blue  svg { stroke: var(--blue); }
.step-icon.purple{ background: rgba(155,111,255,0.1); border-color: rgba(155,111,255,0.2); }
.step-icon.purple svg { stroke: var(--purple); }

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.step p  { color: var(--text-2); font-size: 14px; line-height: 1.6; }

.step-connector {
  position: absolute; top: 54px; right: -13px; z-index: 1;
  width: 24px; height: 1px; background: var(--border-hi);
  display: flex; align-items: center;
}
.step-connector::after {
  content: ''; position: absolute; right: -1px;
  border: 4px solid transparent;
  border-left-color: var(--border-hi);
}

/* ── FEATURES GRID ────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 56px; }
.feature {
  background: var(--bg-1); padding: 28px;
  transition: background .2s;
}
.feature:hover { background: var(--bg-2); }
.feature:first-child { border-radius: 14px 0 0 0; }
.feature:nth-child(3) { border-radius: 0 14px 0 0; }
.feature:nth-child(4) { border-radius: 0 0 0 14px; }
.feature:last-child { border-radius: 0 0 14px 0; }

.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 18px; height: 18px; }
.feature h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature p  { color: var(--text-2); font-size: 13px; line-height: 1.65; }

/* ── COMPARISON TABLE ─────────────────────────────────────────────────────── */
.compare-table { margin-top: 56px; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); }
.compare-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; background: var(--bg-2); }
.compare-header > div { padding: 16px 20px; font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.compare-header > div.ours { color: var(--green); }
.compare-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-top: 1px solid var(--border); }
.compare-row:hover { background: var(--bg-2); }
.compare-cell { padding: 14px 20px; font-size: 13px; display: flex; align-items: center; }
.compare-cell.feature-name { color: var(--text-2); }
.compare-cell.ours { color: var(--green); font-weight: 600; }

.check-icon { width: 18px; height: 18px; stroke: var(--green); }
.cross-icon { width: 18px; height: 18px; stroke: var(--text-3); }
.partial-icon { width: 18px; height: 18px; stroke: #FFB800; }

/* ── PRICING ──────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 56px; }

.pricing-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; display: flex; flex-direction: column;
  transition: border-color .2s;
}
.pricing-card:hover { border-color: var(--border-hi); }
.pricing-card.featured {
  background: linear-gradient(145deg, #091410, #060e10);
  border-color: rgba(0,232,122,0.3);
  box-shadow: 0 0 0 1px rgba(0,232,122,0.1), inset 0 1px 0 rgba(0,232,122,0.1);
}

.pricing-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--text-3); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.pricing-tag.green { color: var(--green); }

.pricing-price { font-size: 40px; font-weight: 900; letter-spacing: -2px; margin-bottom: 4px; }
.pricing-price sup { font-size: 20px; font-weight: 700; vertical-align: top; margin-top: 8px; color: var(--text-2); }
.pricing-period { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.pricing-save { font-size: 12px; color: var(--green); font-weight: 600; }

.pricing-features { list-style: none; flex: 1; margin-bottom: 24px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-2); margin-bottom: 10px;
}
.pricing-features li svg { width: 15px; height: 15px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }

.pricing-cta {
  width: 100%; height: 42px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .2s; border: none;
}
.pricing-cta.outline {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-hi);
}
.pricing-cta.outline:hover { color: var(--text-1); border-color: rgba(255,255,255,0.2); }
.pricing-cta.solid { background: var(--green); color: #060608; box-shadow: 0 0 24px var(--green-glow); }
.pricing-cta.solid:hover { background: #00ff87; }

/* ── FORM SECTION ─────────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px; max-width: 680px; margin: 0 auto;
}
.form-section-label {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}

.doc-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 32px; }
.doc-type-option {
  padding: 16px; border-radius: 12px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border);
  transition: all .2s; position: relative; overflow: hidden;
}
.doc-type-option::before { content:''; position:absolute; inset:0; opacity:0; transition:opacity .2s; background:linear-gradient(135deg,var(--green-dim),transparent); }
.doc-type-option.selected, .doc-type-option:hover { border-color: rgba(0,232,122,0.35); }
.doc-type-option.selected::before { opacity: 1; }

.doc-type-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.doc-type-name { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.doc-type-price {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--green); background: var(--green-dim);
  border: 1px solid rgba(0,232,122,0.2); border-radius: 6px;
  padding: 2px 8px;
}
.doc-type-desc { font-size: 12px; color: var(--text-3); line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; color: var(--text-3); font-weight: 500; letter-spacing: 0.2px; }
.form-label span { color: rgba(255,100,100,0.7); }

.inp {
  height: 40px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--border-hi);
  border-radius: 9px; color: var(--text-1); font-size: 13px;
  transition: all .2s; font-family: inherit; width: 100%;
}
.inp:focus { outline: none; border-color: rgba(0,232,122,0.4); box-shadow: 0 0 0 3px rgba(0,232,122,0.06); }
.inp::placeholder { color: var(--text-3); }
select.inp { cursor: pointer; }
select.inp option { background: #111; }

.features-grid-form { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 28px; }
.feature-check {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; transition: all .2s; font-size: 13px; color: var(--text-2);
  user-select: none;
}
.feature-check:hover { border-color: var(--border-hi); color: var(--text-1); }
.feature-check input { display: none; }
.feature-check-box {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  border: 1px solid var(--border-hi); background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.feature-check-box svg { width: 10px; height: 10px; stroke: var(--bg); opacity: 0; transition: opacity .15s; }
.feature-check.checked { border-color: rgba(0,232,122,0.3); color: var(--text-1); }
.feature-check.checked .feature-check-box { background: var(--green); border-color: var(--green); }
.feature-check.checked .feature-check-box svg { opacity: 1; }

.submit-btn {
  width: 100%; height: 48px; border-radius: 12px;
  background: var(--green); color: #060608;
  font-size: 15px; font-weight: 800; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .2s; letter-spacing: -0.3px;
  box-shadow: 0 4px 24px var(--green-glow);
}
.submit-btn:hover { background: #00ff87; transform: translateY(-1px); box-shadow: 0 8px 32px var(--green-glow); }
.submit-btn:disabled { opacity: 0.5; transform: none; cursor: not-allowed; }
.submit-btn svg { width: 18px; height: 18px; }

/* Progress bar */
.progress-wrap { height: 2px; background: var(--bg-3); border-radius: 2px; margin-top: 16px; overflow: hidden; display: none; }
.progress-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 16s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.progress-label { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 8px; display: none; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px; text-align: center;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-text { font-size: 12px; color: var(--text-3); max-width: 480px; margin: 0 auto; line-height: 1.7; }

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,232,122,0.3); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,232,122,0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.float { animation: float 5s ease-in-out infinite; }

/* ── UTILS ────────────────────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); }
.text-green { color: var(--green); }
.text-muted  { color: var(--text-2); }
.text-dim    { color: var(--text-3); }
.text-center { text-align: center; }
