/* ================= Design tokens ================= */
:root {
  --bg: #f7f6f2;
  --bg-alt: #efede6;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --ink: #0e1726;
  --ink-2: #3c4658;
  --muted: #6b7486;
  --line: rgba(14, 23, 38, 0.1);
  --brand: #0b1f3a;
  --brand-2: #16345e;
  --gold: #b88a3b;
  --gold-2: #d4b06a;
  --teal: #2f9c8f;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, 0.06), 0 2px 8px rgba(14, 23, 38, 0.05);
  --shadow: 0 10px 30px -10px rgba(14, 23, 38, 0.2), 0 4px 10px -4px rgba(14, 23, 38, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 31, 58, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --hero-bg: #0b1324;
  --hero-ink: #f4f1ea;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a101c; --bg-alt: #0e1626; --surface: #121b2d; --surface-2: #18233a;
    --ink: #edf0f6; --ink-2: #c3cad8; --muted: #8b95a9; --line: rgba(255, 255, 255, 0.09);
    --brand: #d4b06a; --brand-2: #e2c48a; --gold: #d4b06a; --gold-2: #e8cf98;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --hero-bg: #070c17; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a101c; --bg-alt: #0e1626; --surface: #121b2d; --surface-2: #18233a;
  --ink: #edf0f6; --ink-2: #c3cad8; --muted: #8b95a9; --line: rgba(255, 255, 255, 0.09);
  --brand: #d4b06a; --brand-2: #e2c48a; --gold: #d4b06a; --gold-2: #e8cf98;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --hero-bg: #070c17; color-scheme: dark;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s; overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ================= Buttons ================= */
.btn {
  --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: var(--h); padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; box-shadow: 0 8px 24px -8px rgba(184, 138, 59, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(184, 138, 59, .8); }
.btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: var(--hero-ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-ghost:hover svg { transform: rotate(20deg) scale(1.1); }
.btn-sm { --h: 40px; padding: 0 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ================= Nav ================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; color: var(--hero-ink); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.brand-mark svg { width: 22px; height: 22px; fill: #1a1205; stroke: none; }
.brand-text { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1; display: flex; flex-direction: column; }
.brand-text span { font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.nav-links { display: flex; gap: .3rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .93rem; font-weight: 500; padding: .45rem .8rem; border-radius: 999px; opacity: .85; transition: background .2s, opacity .2s; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav .icon-btn { border-color: color-mix(in srgb, currentColor 20%, transparent); }
.nav .icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; } [data-theme="dark"] .i-moon { display: block; }
.menu-btn { display: none; }

/* ================= Hero ================= */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); padding: 150px 0 110px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 18s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: #1f4c8a; top: -160px; left: -120px; }
.b2 { width: 420px; height: 420px; background: #b88a3b; bottom: -180px; right: 8%; opacity: .35; animation-delay: -6s; }
.b3 { width: 360px; height: 360px; background: #2f9c8f; top: 20%; right: -120px; opacity: .3; animation-delay: -12s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,20px) scale(.95); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); margin-bottom: 1.4rem; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 600; margin-bottom: .45em; }
.hero h1 em { font-style: italic; background: linear-gradient(100deg, #f1d79c, #d4b06a 50%, #f4e3bb); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.rotator { transition: opacity .35s, transform .35s, filter .35s; }
.rotator.out { opacity: 0; transform: translateY(12px); filter: blur(6px); }
.lead { font-size: 1.15rem; color: rgba(244,241,234,.78); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.2rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .9rem; color: rgba(244,241,234,.75); }
.hero-badges li { display: flex; align-items: center; gap: .45rem; }
.hero-badges svg { width: 18px; height: 18px; color: var(--gold-2); }

.hero-visual { position: relative; perspective: 1200px; }
.report-card { background: rgba(255,255,255,.96); color: #0e1726; border-radius: 22px; padding: 1.3rem; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); transform-style: preserve-3d; transition: transform .15s ease-out; will-change: transform; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.rc-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #6b7486; font-weight: 600; }
.rc-head strong { font-family: var(--serif); font-size: 1.2rem; }
.rc-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: #15803d; background: #dcfce7; padding: .3rem .7rem; border-radius: 999px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.rc-photo { border-radius: 14px; overflow: hidden; height: 150px; transform: translateZ(30px); }
.rc-photo svg { width: 100%; height: 100%; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; transform: translateZ(20px); }
.rc-stats div { background: #f3f1ea; border-radius: 12px; padding: .6rem .7rem; }
.rc-stats span { display: block; font-size: .7rem; color: #6b7486; }
.rc-stats strong { font-size: .92rem; }
.rc-bars { display: grid; gap: .55rem; }
.rc-bar { display: grid; grid-template-columns: 100px 1fr; align-items: center; font-size: .8rem; color: #3c4658; }
.rc-bar i { height: 8px; border-radius: 99px; background: #e9e5da; position: relative; overflow: hidden; }
.rc-bar i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #16345e, #2f9c8f); transition: width 1.4s cubic-bezier(.2,.8,.2,1) .5s; }
.in .rc-bar i::after { width: var(--w); }
.float-chip { position: absolute; display: flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 14px; font-size: .85rem; font-weight: 600; background: rgba(15,25,45,.75); color: #fff; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.float-chip svg { width: 18px; height: 18px; color: #4ade80; }
.chip-1 { top: -18px; right: -14px; }
.chip-2 { bottom: -46px; left: -26px; animation-delay: -3s; }
.stars { color: #fbbf24; letter-spacing: 1px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ================= Stats ================= */
.stats { margin-top: -48px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 1.7rem 1.2rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .88rem; color: var(--muted); }

/* ================= Sections ================= */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head.left { text-align: left; margin: 0; }
.section-head p { color: var(--muted); font-size: 1.07rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.kicker.light { color: var(--gold-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.fine { font-size: .9rem; padding: .75rem 1rem; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; }

/* ================= Services ================= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { position: relative; padding: 2rem 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.spotlight::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 16%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.spotlight:hover::before { opacity: 1; }
.s-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.3rem; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); transition: transform .3s; }
.service:hover .s-icon { transform: rotate(-8deg) scale(1.08); }
.s-icon svg { width: 26px; height: 26px; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ================= Process ================= */
.process { max-width: 900px; margin: 0 auto; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 2rem; }
.steps-track { position: absolute; top: 24px; left: 10%; right: 10%; height: 3px; background: var(--line); border-radius: 3px; }
.steps-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; background: none; border: 0; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .3s; }
.step span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font-family: var(--serif); font-size: 1.1rem; transition: all .35s cubic-bezier(.2,.8,.2,1); }
.step:hover span { border-color: var(--gold); }
.step.done span { background: color-mix(in srgb, var(--gold) 18%, var(--surface)); border-color: var(--gold); color: var(--gold); }
.step.active { color: var(--ink); }
.step.active span { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; border-color: transparent; transform: scale(1.12); box-shadow: 0 10px 24px -8px rgba(184,138,59,.8); }
.step-panel { display: flex; gap: 1.5rem; align-items: flex-start; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-height: 170px; }
.step-panel.swap > * { animation: swapIn .45s cubic-bezier(.2,.8,.2,1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sp-icon { flex: none; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.sp-icon svg { width: 30px; height: 30px; }
.sp-time { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.step-panel h3 { margin: .2rem 0 .4rem; font-size: 1.45rem; }
.step-panel p { color: var(--muted); margin: 0; }

/* ================= Estimator ================= */
.estimator-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.estimator { padding: 2rem; display: grid; gap: 1.4rem; }
.field label { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; margin-bottom: .55rem; }
.field output { color: var(--gold); font-variant-numeric: tabular-nums; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { border: 0; background: transparent; padding: .6rem .4rem; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--muted); transition: all .25s; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--gold) var(--p, 22%), var(--surface-2) var(--p, 22%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: grab; transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); cursor: grab; }
select, input, textarea { font: inherit; color: var(--ink); }
.field select { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.toggles { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.switch { display: flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .93rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 44px; height: 26px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.estimate-out { text-align: center; padding: 1.4rem; border-radius: 14px; background: linear-gradient(135deg, var(--hero-bg), #16345e); color: #fff; }
.estimate-out span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.estimate-out strong { display: block; font-family: var(--serif); font-size: 2.4rem; margin: .1rem 0; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.estimate-out small { opacity: .75; }
.estimate-out strong.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.06); } }

/* ================= AI showcase ================= */
.ai-section { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.ai-section::before { content: ""; position: absolute; width: 600px; height: 600px; right: -150px; top: -200px; background: radial-gradient(circle, rgba(47,156,143,.35), transparent 65%); }
.ai-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.ai-copy p { color: rgba(244,241,234,.75); font-size: 1.07rem; }
.ai-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.ai-chips button, .chat-suggest button { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: inherit; padding: .6rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; transition: all .2s; }
.ai-chips button:hover { background: var(--gold-2); color: #1a1205; border-color: transparent; transform: translateY(-2px); }
.ai-demo { display: grid; gap: .9rem; padding: 1.6rem; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.demo-bubble { padding: .9rem 1.1rem; border-radius: 18px; max-width: 88%; font-size: .95rem; line-height: 1.5; }
.demo-bubble.user { justify-self: end; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; border-bottom-right-radius: 6px; }
.demo-bubble.bot { background: rgba(255,255,255,.1); border-bottom-left-radius: 6px; }
.typing-caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ================= Testimonials ================= */
.testimonials .section-head { margin-bottom: 2.5rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: scroll 50s linear infinite; padding: 1rem 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - .625rem)); } }
.quote { margin: 0; width: 360px; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; transition: transform .25s; }
.quote:hover { transform: translateY(-4px); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 1.06rem; line-height: 1.5; }
.quote figcaption { display: flex; align-items: center; gap: .7rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #16345e, #2f9c8f); }

/* ================= FAQ ================= */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); position: relative; transition: transform .3s, background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 11px; height: 2px; background: currentColor; border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .3s; }
.faq details[open] summary i { background: var(--gold); color: #1a1205; transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq details > div p { margin: 0; }
.faq details > div a { color: var(--gold); }

/* ================= Contact ================= */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-info p { color: var(--muted); font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list svg { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }
.request-form { position: relative; padding: 2rem; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.span-2 { grid-column: span 2; }
.float { position: relative; }
.float input, .float select, .float textarea { width: 100%; padding: 1.45rem 1rem .55rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical; }
.float input:focus, .float select:focus, .float textarea:focus { outline: none; border-color: var(--gold); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.float label { position: absolute; left: 1rem; top: 1rem; color: var(--muted); font-size: .97rem; pointer-events: none; transition: all .18s; }
.float input:focus + label, .float input:not(:placeholder-shown) + label,
.float textarea:focus + label, .float textarea:not(:placeholder-shown) + label, .float label.static { top: .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--gold); }
.float .invalid { border-color: #dc2626; }
.form-error { color: #dc2626; font-size: .9rem; min-height: 1.2em; margin: 0 0 .6rem; }
.form-success { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: var(--surface); opacity: 0; pointer-events: none; transition: opacity .4s; }
.form-success.show { opacity: 1; pointer-events: auto; }
.form-success p { color: var(--muted); }
.check { width: 84px; height: 84px; margin: 0 auto 1rem; }
.check svg { width: 100%; height: 100%; stroke: var(--teal); stroke-width: 3; }
.check circle { stroke-dasharray: 160; stroke-dashoffset: 160; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-success.show circle { animation: draw .6s forwards; }
.form-success.show path { animation: draw .4s .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ================= Footer ================= */
.footer { background: var(--hero-bg); color: rgba(244,241,234,.7); padding: 60px 0 30px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { color: #fff; margin-bottom: 1rem; }
.footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer nav a { text-decoration: none; } .footer nav a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .82rem; opacity: .8; }

/* ================= Chat widget ================= */
.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #1a1205; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 14px 34px -8px rgba(184,138,59,.75); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-fab svg { width: 28px; height: 28px; position: absolute; transition: transform .3s, opacity .3s; }
.chat-fab .i-close { opacity: 0; transform: rotate(-90deg); }
.chat-fab[aria-expanded="true"] .i-open { opacity: 0; transform: rotate(90deg); }
.chat-fab[aria-expanded="true"] .i-close { opacity: 1; transform: none; }
.fab-ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
.chat-fab[aria-expanded="true"] .fab-ping, .chat-fab.seen .fab-ping { display: none; }
@keyframes ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }
.chat { position: fixed; right: 24px; bottom: 100px; z-index: 60; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 130px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right; transform: scale(.9) translateY(20px); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.chat.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: linear-gradient(135deg, var(--hero-bg), #16345e); color: #fff; }
.chat-head > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chat-head span { font-size: .78rem; opacity: .75; display: flex; align-items: center; gap: .35rem; }
.chat-head .icon-btn { border-color: rgba(255,255,255,.2); width: 34px; height: 34px; }
.chat-head .icon-btn:hover { background: rgba(255,255,255,.12); }
.chat-head .icon-btn svg { width: 17px; height: 17px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; }
.chat-avatar svg { width: 22px; height: 22px; fill: currentColor; }
.online { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: .75rem 1rem; border-radius: 16px; font-size: .94rem; line-height: 1.55; animation: msgIn .3s cubic-bezier(.2,.8,.2,1); overflow-wrap: anywhere; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.bot p { margin: 0 0 .5em; } .msg.bot p:last-child { margin: 0; }
.msg.bot ul, .msg.bot ol { margin: .3em 0 .5em; padding-left: 1.2em; }
.msg.bot a { color: var(--gold); }
.msg.error { background: #fee2e2; color: #991b1b; }
.typing { display: inline-flex; gap: 4px; padding: .3rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-suggest { display: flex; gap: .45rem; padding: 0 1.1rem .7rem; overflow-x: auto; scrollbar-width: none; }
.chat-suggest button { flex: none; font-size: .82rem; padding: .45rem .85rem; border-color: var(--line); background: var(--surface); color: var(--ink-2); }
.chat-suggest button:hover { border-color: var(--gold); color: var(--gold); }
.chat-input { display: flex; gap: .5rem; align-items: flex-end; margin: 0 .9rem; padding: .4rem .4rem .4rem .9rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
.chat-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 15%, transparent); }
.chat-input textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; padding: .5rem 0; max-height: 120px; font-size: .95rem; }
.chat-input button { flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1205; transition: transform .2s, opacity .2s; }
.chat-input button:disabled { opacity: .45; cursor: default; }
.chat-input button:not(:disabled):hover { transform: scale(1.06); }
.chat-input button svg { width: 18px; height: 18px; }
.chat-foot { font-size: .7rem; color: var(--muted); text-align: center; margin: .5rem 1rem .7rem; }

/* ================= Reveal on scroll ================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ================= Responsive ================= */
@media (max-width: 980px) {
  .hero-inner, .estimator-wrap, .ai-inner, .faq-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 120px 0 100px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .section-head.left { text-align: center; margin: 0 auto; max-width: 640px; }
  .nav-links { position: absolute; top: 72px; left: 16px; right: 16px; flex-direction: column; padding: .6rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .25s; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hide-sm { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .services-grid { grid-template-columns: 1fr; }
  .steps span { width: 40px; height: 40px; font-size: .95rem; }
  .steps { font-size: .75rem; }
  .step { font-size: .72rem; }
  .steps-track { top: 19px; }
  .step-panel { flex-direction: column; padding: 1.5rem; }
  .segmented { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .chip-1 { right: 0; } .chip-2 { left: 0; }
  .quote { width: 290px; }
  .chat { right: 16px; bottom: 92px; }
  .chat-fab { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
