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

:root {
  --navy: #0f1729;
  --navy-light: #1a2540;
  --navy-mid: #243352;
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
  --accent-subtle: rgba(14,165,233,0.08);
  --accent-border: rgba(14,165,233,0.2);
  --gold: #f59e0b;
  --gold-subtle: rgba(245,158,11,0.08);
  --gold-border: rgba(245,158,11,0.25);
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 2px; text-decoration: none; font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: -0.3px;
}
.nav-brand span { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(14,165,233,0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #d97706; transform: translateY(-1px); }
.btn-gold-outline { background: transparent; color: var(--gold); border: 1.5px solid var(--gold-border); }
.btn-gold-outline:hover { background: var(--gold-subtle); }

/* ── HERO ── */
.hero {
  padding: 140px 32px 80px; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  background: var(--accent-subtle); border: 1px solid var(--accent-border);
  border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: 52px; font-weight: 800; line-height: 1.08; letter-spacing: -1.5px;
  color: var(--navy); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 17px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }
.hero-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.hero-note strong { color: var(--text-secondary); }

/* ── BEFORE/AFTER ── */
.hero-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.ba-container { position: relative; width: 100%; height: 100%; overflow: hidden; }
.ba-layer {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.ba-sketch { background: #fafaf8; }
.ba-result { background: #fff; clip-path: inset(0 0 0 50%); transition: clip-path 0.05s; }
.ba-sketch-content, .ba-result-content {
  width: 88%; height: 85%; position: relative;
}

/* Sketch SVG styling */
.sketch-floor { width: 100%; height: 100%; }
.sketch-floor .wall { stroke: #6b7280; stroke-width: 2; fill: none; stroke-dasharray: 8 4; opacity: 0.7; }
.sketch-floor .wall-thick { stroke: #374151; stroke-width: 3; fill: none; stroke-dasharray: 12 4; opacity: 0.8; }
.sketch-floor .label { font-family: 'Caveat', cursive, var(--font); font-size: 13px; fill: #6b7280; }
.sketch-floor .scribble { stroke: #9ca3af; stroke-width: 1.5; fill: none; opacity: 0.5; stroke-dasharray: 4 3; }

/* Result SVG styling */
.result-floor { width: 100%; height: 100%; }
.result-floor .wall { stroke: var(--navy); stroke-width: 2.5; fill: none; }
.result-floor .wall-outer { stroke: var(--navy); stroke-width: 4; fill: none; }
.result-floor .room-fill { opacity: 0.04; }
.result-floor .label { font-family: var(--font); font-size: 11px; fill: var(--navy); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.result-floor .dim { font-family: var(--mono); font-size: 9px; fill: var(--text-muted); font-weight: 400; }
.result-floor .door { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.result-floor .furniture { fill: #e2e8f0; stroke: #cbd5e1; stroke-width: 0.75; rx: 2; }

/* Slider */
.ba-slider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: var(--accent); cursor: col-resize; z-index: 10;
  transition: left 0.05s;
}
.ba-slider::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 36px; height: 36px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 2px 12px rgba(14,165,233,0.4);
}
.ba-slider-arrows {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 11; display: flex; gap: 6px; pointer-events: none;
}
.ba-slider-arrows svg { width: 14px; height: 14px; color: #fff; }
.ba-label {
  position: absolute; top: 16px; padding: 4px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; z-index: 5;
}
.ba-label-sketch { left: 16px; background: rgba(0,0,0,0.06); color: var(--text-muted); }
.ba-label-result { right: 16px; background: var(--accent); color: #fff; }

/* ── SECTIONS ── */
.section { padding: 96px 32px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 12px;
}
.section-dark .section-label { color: var(--accent-hover); }
.section-header h2 {
  font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 16px;
}
.section-dark .section-header h2 { color: #fff; }
.section-header p {
  font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7;
}
.section-dark .section-header p { color: #94a3b8; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  position: relative; padding: 36px 28px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.step:hover { border-color: var(--accent-border); box-shadow: var(--shadow); transform: translateY(-2px); }
.step-number {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-subtle);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; margin-bottom: 20px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  padding: 32px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-subtle);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--accent);
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── TOOL PREVIEW ── */
.tool-preview {
  background: var(--navy); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.06);
}
.tool-preview-bar {
  display: flex; align-items: center; gap: 8px; padding: 14px 20px;
  background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tool-preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.tool-preview-dot:nth-child(1) { background: #ef4444; }
.tool-preview-dot:nth-child(2) { background: #f59e0b; }
.tool-preview-dot:nth-child(3) { background: #22c55e; }
.tool-preview-url {
  flex: 1; margin-left: 12px; padding: 6px 16px; background: rgba(255,255,255,0.06);
  border-radius: 6px; font-size: 12px; color: var(--text-muted); font-family: var(--mono);
}
.tool-preview-body { display: grid; grid-template-columns: 260px 220px 1fr; min-height: 420px; }
.tool-panel { padding: 20px; border-right: 1px solid rgba(255,255,255,0.06); }
.tool-panel:last-child { border-right: none; }
.tool-panel-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 16px;
}
.tool-upload-zone {
  border: 2px dashed rgba(255,255,255,0.12); border-radius: 10px; padding: 32px 16px;
  text-align: center; color: var(--text-muted); font-size: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tool-upload-zone svg { opacity: 0.4; }
.tool-thumb {
  margin-top: 16px; background: rgba(255,255,255,0.04); border-radius: 8px;
  padding: 8px; display: flex; align-items: center; gap: 10px;
}
.tool-thumb-img { width: 48px; height: 48px; border-radius: 6px; background: rgba(255,255,255,0.08); }
.tool-thumb-info { font-size: 12px; color: #94a3b8; }
.tool-thumb-name { color: #e2e8f0; font-weight: 600; font-size: 13px; }

/* Tool controls mockup */
.tool-control { margin-bottom: 18px; }
.tool-control-label { font-size: 12px; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; }
.tool-select {
  width: 100%; padding: 8px 12px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  color: #e2e8f0; font-size: 12px; font-family: var(--font);
}
.tool-toggle {
  display: flex; gap: 2px; background: rgba(255,255,255,0.04);
  border-radius: 6px; padding: 2px;
}
.tool-toggle-opt {
  padding: 6px 10px; border-radius: 5px; font-size: 11px; font-weight: 600;
  color: #64748b; cursor: pointer; text-align: center; flex: 1;
}
.tool-toggle-opt.active { background: var(--accent); color: #fff; }
.tool-toggle-opt .pro {
  font-size: 8px; background: var(--gold); color: #fff; padding: 1px 4px;
  border-radius: 3px; margin-left: 3px; vertical-align: top; font-weight: 700;
}

.tool-result {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.02); position: relative;
}
.tool-result-plan {
  width: 85%; height: 80%; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; background: rgba(255,255,255,0.03);
  display: flex; align-items: center; justify-content: center;
}
.tool-result-plan svg { width: 90%; height: 90%; }
.tool-result-plan .wall { stroke: rgba(255,255,255,0.6); stroke-width: 2.5; fill: none; }
.tool-result-plan .wall-outer { stroke: rgba(255,255,255,0.8); stroke-width: 4; fill: none; }
.tool-result-plan .label { font-family: var(--font); font-size: 10px; fill: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.tool-result-plan .furniture { fill: rgba(255,255,255,0.04); stroke: rgba(255,255,255,0.1); stroke-width: 0.75; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  position: relative; padding: 36px 28px; background: var(--bg-card);
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card.popular {
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pricing-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-tokens { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.pricing-tokens span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-price { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border-light);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-check { color: var(--accent); flex-shrink: 0; }
.pricing-note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.pricing-note strong { color: var(--accent); }

/* ── UPSELL ── */
.upsell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.upsell-card {
  padding: 32px 24px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.upsell-card:hover { background: rgba(255,255,255,0.06); border-color: var(--gold-border); }
.upsell-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--gold-subtle);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--gold);
}
.upsell-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.upsell-card p { font-size: 14px; color: #94a3b8; line-height: 1.65; margin-bottom: 20px; }
.upsell-note {
  text-align: center; margin-top: 32px; font-size: 14px; color: #64748b;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── TRUST ── */
.trust-logos {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.trust-logo {
  width: 120px; height: 40px; border-radius: 8px; background: var(--bg-alt);
  border: 1px solid var(--border-light);
}
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.testimonial {
  padding: 24px; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.testimonial p { font-size: 15px; color: var(--text-secondary); font-style: italic; margin-bottom: 16px; line-height: 1.65; }
.testimonial-author { font-size: 13px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 12px; color: var(--text-muted); }

/* ── FOOTER ── */
.footer { background: var(--navy); color: #94a3b8; padding: 64px 32px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; }
.footer-brand { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-tagline { font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #cbd5e1; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; text-align: center;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; }
  .hero h1 { font-size: 36px; }
  .steps, .features-grid, .pricing-grid, .upsell-grid { grid-template-columns: 1fr; }
  .tool-preview-body { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
}
