/* Layout: hero with copy left and an animated RFQ flow right, a process marquee,
   then stacked sections (problem, data, steps, pricing, comparison, founder, FAQ, form). */
:root {
  --bg: #0c0d10;
  --bg-raise: #14161b;
  --ink: #ecebe6;
  --muted: #9a9890;
  --line: #262830;
  --copper: #d98a4e;
  --copper-soft: #e9a877;
  --signal: #5fd4c8;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(16px, 1.05vw, 18px)/1.65 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 4px; }
b, strong { color: var(--ink); font-weight: 600; }
h2 { font: 700 clamp(30px, 4.4vw, 56px)/1.04 var(--display); letter-spacing: -0.035em; margin: 10px 0 0; text-wrap: balance; }
h3 { font: 700 clamp(19px, 1.6vw, 23px)/1.2 var(--display); letter-spacing: -0.015em; margin: 0 0 10px; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 0; }
.lede { color: var(--muted); max-width: 62ch; margin: 18px 0 0; }
.muted { color: var(--muted); }
.note { color: var(--muted); font: 400 12.5px var(--mono); margin: 18px 0 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--copper); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 14px var(--body); letter-spacing: .01em; border-radius: 999px; padding: 11px 20px; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s; white-space: nowrap; }
.btn--lg { padding: 15px 26px; font-size: 15px; }
.btn--solid { background: var(--copper); color: #160c05; }
.btn--solid:hover { background: var(--copper-soft); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #3a3c45; }
.btn--ghost:hover { border-color: var(--copper); color: var(--copper); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--copper); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); background: linear-gradient(var(--bg) 30%, transparent); }
.nav__brand { font: 800 18px var(--display); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.nav__brand span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.nav nav { display: flex; gap: 24px; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
.nav__book { padding: 10px 18px; font-size: 13.5px; }

/* Hero */
.hero { position: relative; min-height: 100svh; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 70px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__grid { position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .35; mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%); }
.hero__title { font: 800 clamp(36px, 4.6vw, 70px)/1 var(--display); letter-spacing: -0.045em; margin: 18px 0 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--copper); }
.hero__sub { color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); max-width: 54ch; margin: 26px 0 0; }
.hero__sub::first-line { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero > * { min-width: 0; }

/* Hero flow animation */
.flow { position: relative; display: grid; gap: 14px; padding: 8px 0; }
.flow__card { position: relative; z-index: 1; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px -30px #000; min-width: 0; }
.flow__search { display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 12px 18px; width: 92%; }
.flow__g { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 14px var(--display); }
.flow__query { font: 500 14px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: clip; min-width: 0; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--copper); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.flow__result { margin-left: 8%; width: 92%; border-color: rgba(95,212,200,.35); }
.flow__url { margin: 0; font: 400 12px var(--mono); color: var(--signal); }
.flow__h { margin: 4px 0 2px; font: 700 16px/1.3 var(--display); }
.flow__d { margin: 0; font-size: 13.5px; color: var(--muted); }
.flow__rfq { width: 86%; margin-left: 2%; }
.flow__label { margin: 0 0 10px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.flow__file { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed #3a3c45; border-radius: 10px; font: 500 13.5px var(--mono); }
.flow__file small { margin-left: auto; color: var(--muted); }
.flow__meta { margin: 10px 0 10px; font-size: 13.5px; color: var(--muted); }
.flow__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.flow__bar i { display: block; height: 100%; width: 100%; background: var(--copper); transform-origin: left; transform: scaleX(0); }
.flow__ack { display: flex; align-items: center; gap: 14px; width: 80%; margin-left: 20%; border-color: rgba(95,212,200,.45); }
.flow__tick { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #04110f; font-weight: 800; }
.flow__timer { font-family: var(--mono); color: var(--signal); font-variant-numeric: tabular-nums; }
.flow__wire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.flow__wire path { fill: none; stroke: var(--copper); stroke-width: .5; stroke-dasharray: 1.2 1.6; opacity: .55; vector-effect: non-scaling-stroke; }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { font: 700 clamp(18px, 2vw, 26px) var(--display); letter-spacing: -0.02em; color: #57565f; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--copper); margin-left: 48px; font-size: .6em; vertical-align: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 13vh, 140px) var(--gutter) 0; }
.section__head { max-width: 820px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: border-color .3s, transform .3s; }
.card:hover { border-color: #3a3c45; transform: translateY(-3px); }
.card__n { display: block; font: 500 12px var(--mono); color: var(--copper); margin-bottom: 26px; }
.card p { margin: 0; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat b { display: block; font: 800 clamp(44px, 6vw, 80px)/1 var(--display); letter-spacing: -0.04em; color: var(--copper); font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--muted); margin-top: 12px; max-width: 32ch; }

/* Steps with a scroll-drawn line */
.steps { position: relative; list-style: none; margin: 56px 0 0; padding: 0 0 0 52px; display: grid; gap: clamp(36px, 6vh, 64px); max-width: 860px; }
.step { position: relative; }
.step__dot { position: absolute; left: -52px; top: 4px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3c45; background: var(--bg); transition: border-color .4s, background .4s, box-shadow .4s; }
.step.is-on .step__dot { border-color: var(--copper); background: var(--copper); box-shadow: 0 0 0 6px rgba(217,138,78,.18); }
.step__n { margin: 0 0 6px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.step p:last-child { margin: 0; color: var(--muted); max-width: 64ch; }
.steps__line { position: absolute; left: 10px; top: 14px; width: 2px; height: calc(100% - 28px); overflow: visible; }
.steps__line path { stroke: var(--copper); stroke-width: 2; fill: none; }
.steps::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan--main { border-color: var(--copper); background: linear-gradient(180deg, rgba(217,138,78,.10), var(--bg-raise) 45%); }
.plan__tag { margin: 0 0 14px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.plan h3 { font-size: 24px; margin: 0; }
.plan__price { font: 800 44px/1 var(--display); letter-spacing: -0.04em; margin: 16px 0 0; }
.plan__price small { font: 500 15px var(--body); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.plan__setup { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.plan__for { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.plan ul { margin: 18px 0 24px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 10px; align-content: start; font-size: 15px; flex: 1; }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--signal); font-weight: 700; }
.plan .btn { align-self: flex-start; }

/* Comparison table */
.table { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
thead th:last-child { color: var(--copper); }
tbody th { font-weight: 600; width: 22%; }
tbody td { color: var(--muted); }
tbody td:last-child { color: var(--ink); }

/* Founder */
.founder__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--line); padding-top: 48px; }
.founder__copy p { margin: 0 0 16px; color: var(--muted); }
.founder__copy a { color: var(--ink); text-underline-offset: 3px; }
.founder__sig { font: 500 13px var(--mono); color: var(--copper) !important; }

/* FAQ */
.faq__list { margin-top: 36px; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font: 600 clamp(17px, 1.4vw, 20px) var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-size: 24px; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* CTA + form */
.cta { padding-bottom: clamp(80px, 12vh, 130px); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); background: var(--bg-raise); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 56px); }
.cta__alt { margin: 24px 0 0; color: var(--muted); }
.audit { display: grid; gap: 14px; align-content: start; }
.audit label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
.audit input { font: 400 15px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; width: 100%; }
.audit input:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: transparent; }
.audit__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.audit .btn { justify-self: start; margin-top: 4px; }
.audit__error { margin: 0; color: #ff9b8a; font-size: 14px; }
.audit__done { margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(95,212,200,.12); border: 1px solid rgba(95,212,200,.4); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); text-align: center; color: var(--muted); font-size: 14px; }

/* Booking dialog (same as sohaibhamid.com) */
.book { width: min(640px, calc(100vw - 32px)); max-height: min(88vh, 860px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-raise); color: var(--ink); overflow: auto; }
.book::backdrop { background: rgba(6,7,9,.72); backdrop-filter: blur(6px); }
.book__body { padding: clamp(22px, 4vw, 36px); }
.book__close-form { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; }
.book__close { margin: 14px 14px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 20px; cursor: pointer; }
.book__title { font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -0.03em; margin: 8px 0 18px; }
.book__label { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.book__tz { text-transform: none; letter-spacing: 0; color: var(--copper); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg button, .days button, .slots button { font: 600 14px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.seg button small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.seg button[aria-checked="true"], .days button[aria-selected="true"] { border-color: var(--copper); background: rgba(217,138,78,.12); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.days button { flex: 0 0 auto; text-align: center; min-width: 66px; padding: 10px 8px; }
.days button span { display: block; font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.days button b { display: block; font: 700 20px var(--display); margin-top: 2px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; min-height: 48px; }
.slots button { text-align: center; font-variant-numeric: tabular-nums; }
.slots button:hover, .days button:hover, .seg button:hover { border-color: var(--copper-soft); }
.book__form { display: grid; gap: 14px; }
.book__picked { margin: 0 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(217,138,78,.12); border: 1px solid rgba(217,138,78,.35); font-weight: 600; }
.book__form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.book__form input, .book__form textarea { font: 400 15px var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; resize: vertical; }
.book__form input:focus, .book__form textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: transparent; }
.book__error { margin: 0; color: #ff9b8a; font-size: 14px; }
.book__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.book__done { text-align: center; padding: 10px 0; }
.book__done .book__actions { justify-content: center; margin-top: 18px; }
.book__check { width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: #04110f; font-size: 30px; font-weight: 700; }
.book__done h3 { font: 700 28px var(--display); margin: 0 0 8px; }
.book__summary { margin: 0 0 6px; font-weight: 600; }
.book [hidden], .audit [hidden] { display: none !important; }

/* Mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 110px; }
  .hero__title .line { display: inline; }
  .hero__title .line > span { display: inline; }
  .cards, .stats, .plans, .founder__grid, .cta__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav__brand span { display: none; }
  .audit__row { grid-template-columns: 1fr; }
  .steps { padding-left: 40px; }
  .step__dot { left: -40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
