/* =========================================================
   Brava Digital — Web Studio · UK
   Dark, technical, premium. Geometric grotesk + mono wordmark.
   ========================================================= */

:root {
  --bg:        #08090c;
  --bg-soft:   #0d0e13;
  --surface:   #121319;
  --surface-2: #16171f;
  --line:      rgba(255,255,255,.10);
  --line-soft: rgba(255,255,255,.06);

  --ink:       #f5f6f8;
  --ink-dim:   #9a9da8;
  --ink-faint: #5a5d68;

  --blue:      #5d6dff;
  --blue-hi:   #8a97ff;
  --blue-lo:   #4257f2;
  --blue-tint: rgba(93,109,255,.10);
  --grad:      linear-gradient(135deg, #8aa0ff, #4257f2);

  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --pad:  clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
  --r:    16px;
  --ease: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.55; overflow-x: hidden; cursor: none;
}
@media (hover: none) { body { cursor: auto; } }
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

/* ---------- Grain + cursor ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
  border-radius: 50%; transform: translate(-50%,-50%); will-change: transform; }
.cursor { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.45);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease); }
.cursor-dot { width: 5px; height: 5px; background: var(--ink); }
.cursor.is-hover { width: 60px; height: 60px; background: var(--blue-tint); border-color: transparent; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  border-radius: 100px; padding: .85em 1.5em; border: 1px solid transparent;
  position: relative; overflow: hidden; transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s; }
.btn--primary { background: var(--blue); color: #0a0b14; }
.btn--primary:hover { background: var(--blue-hi); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.04); transform: translateY(-2px); }
.btn--sm { padding: .6em 1.1em; font-size: 14px; }
.btn--lg { padding: 1em 1.5em; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 900; display: flex; align-items: center;
  justify-content: space-between; padding: 1rem var(--pad);
  border-bottom: 1px solid transparent; transition: background .4s, backdrop-filter .4s, border-color .4s; }
.nav.is-stuck { background: rgba(8,9,12,.72); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav__brand { display: flex; align-items: center; gap: .6rem; }
.nav__mark { width: 28px; height: 28px; flex: none; }
.nav__word { font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.nav__word b { color: var(--blue); }
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--blue); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
main { position: relative; z-index: 1; }
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__container { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto;
  padding: clamp(8rem, 18vh, 12rem) var(--pad) 0; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg canvas { display: block; width: 100%; height: 100%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 42%, rgba(8,9,12,.45), transparent 72%); }
.hero__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__diamond { position: absolute; top: 6%; right: -6%; width: clamp(220px, 34vw, 520px); height: clamp(220px, 34vw, 520px);
  opacity: .12; z-index: 1; }
.hero__title { font-weight: 600; line-height: .98; letter-spacing: -.035em; font-size: clamp(2.6rem, 8.5vw, 6.6rem); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; }
.hero__title .accent { color: var(--blue); }
.hero__lede { max-width: 56ch; color: var(--ink-dim); font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 1.8rem; }
.hero__cta { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; justify-content: center; }

.hero__stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(3.5rem, 9vh, 6rem); background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r); overflow: hidden; }
.hstat { background: var(--bg); padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: .5rem; }
.hstat__num { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; }
.hstat__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 1.3rem 0; overflow: hidden; white-space: nowrap; margin-top: clamp(4rem, 10vh, 7rem); }
.marquee__track { display: inline-flex; align-items: center; gap: 2rem; font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.8rem, 1.5vw, 1rem); color: var(--ink-dim);
  animation: marquee 32s linear infinite; }
.marquee__track i { color: var(--blue); font-style: normal; font-size: .6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section scaffold ---------- */
.section { padding: clamp(5rem, 13vh, 9rem) var(--pad); max-width: var(--maxw); margin-inline: auto; }
.section__head { max-width: 60ch; margin-bottom: clamp(3rem, 7vh, 4.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1.3rem; }
.kicker--center { display: block; text-align: center; }
.section__title { font-weight: 600; font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; }
.section__sub { color: var(--ink-dim); font-size: clamp(1rem, 1.4vw, 1.12rem); margin-top: 1.3rem; max-width: 48ch; }
.section__head--center .section__sub { margin-inline: auto; }

/* ---------- Card grids ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); align-items: stretch; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.8vw, 1.5rem); }

/* ---------- Feature cards ---------- */
.feature { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: clamp(1.6rem, 2.5vw, 2.2rem); transition: transform .5s var(--ease), border-color .5s, background .5s; }
.feature:hover { transform: translateY(-6px); border-color: var(--line); background: var(--surface-2); }
.feature__icon { width: 34px; height: 34px; margin-bottom: 1.4rem; }
.feature h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.feature p { color: var(--ink-dim); margin: .8rem 0 1.4rem; font-size: .98rem; }

/* ---------- Ticks ---------- */
.ticks { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--ink); font-size: .95rem; }
.ticks li::before { content: "◆"; position: absolute; left: 0; top: .05em; color: var(--blue); font-size: .7em; }
.ticks--top { margin-top: 0; }
.ticks--inline { flex-direction: row; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.8rem; }
.ticks--inline li { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); }

/* ---------- Price cards ---------- */
.prices { align-items: stretch; }
.price { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: clamp(1.7rem, 2.6vw, 2.4rem); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s; }
.price:hover { transform: translateY(-6px); border-color: var(--line); }
.price--featured { background: linear-gradient(180deg, rgba(93,109,255,.12), rgba(93,109,255,.02)); border-color: rgba(93,109,255,.45); }
.badge { position: absolute; top: -.85rem; left: clamp(1.7rem,2.6vw,2.4rem); background: var(--blue); color: #0a0b14;
  font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: .4em .8em; border-radius: 100px; }
.price h3 { font-size: 1.3rem; font-weight: 600; }
.price__amount { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; margin: 1rem 0 .2rem; line-height: 1; }
.price__amount span { font-size: .9rem; font-weight: 400; color: var(--ink-faint); letter-spacing: 0; }
.price__amount--quote { color: var(--ink); }
.price__desc { color: var(--ink-dim); font-size: .95rem; min-height: 2.8em; }
.price__delivery { display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--blue); padding: 1.1rem 0; margin-top: .3rem; border-top: 1px solid var(--line-soft); }
.price .ticks { margin: .4rem 0 1.8rem; }
.price .btn { margin-top: auto; }
.fineprint { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 1.8rem; }

/* ---------- Process steps ---------- */
.step { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: clamp(1.5rem, 2.2vw, 2rem); transition: transform .5s var(--ease), border-color .5s; }
.step:hover { transform: translateY(-6px); border-color: var(--line); }
.step__no { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.step h4 { font-size: 1.3rem; font-weight: 600; margin: 1.1rem 0 .6rem; }
.step p { color: var(--ink-dim); font-size: .95rem; }

/* ---------- FAQ accordion ---------- */
.accordion { max-width: 880px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.acc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; transition: border-color .4s; }
.acc[open] { border-color: var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.4rem 1.6rem; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; flex: none; width: 16px; height: 16px; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; background: var(--blue); transition: transform .3s var(--ease), opacity .3s; }
.acc summary i::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.acc summary i::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.acc[open] summary i::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.acc__body { padding: 0 1.6rem 1.5rem; color: var(--ink-dim); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__meta { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 2.4rem; }
.contact__meta dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: .3rem; }
.contact__meta dd { font-size: 1.05rem; }
.contact__meta a:hover { color: var(--blue-hi); }

.contact__form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1.2rem; }
.field > span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: .6rem; }
.field input, .field textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem 1rem; color: var(--ink); font-family: var(--sans); font-size: .98rem; transition: border-color .3s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); background: var(--bg);
  border: 1px solid var(--line); border-radius: 100px; padding: .5em 1em; cursor: pointer; transition: all .3s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-hi); }
.contact__note { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- Final CTA ---------- */
.cta-wrap { padding: 0 var(--pad) clamp(4rem,10vh,7rem); max-width: var(--maxw); margin-inline: auto; }
.cta-card { position: relative; overflow: hidden; text-align: center; border-radius: 28px;
  border: 1px solid rgba(93,109,255,.3); background: radial-gradient(120% 140% at 50% 0%, rgba(93,109,255,.18), rgba(13,14,19,.6) 60%);
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--pad); }
.cta-card__diamond { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: clamp(200px,26vw,360px); height: clamp(200px,26vw,360px); opacity: .12; }
.cta-card__title { position: relative; font-weight: 600; font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: 1; letter-spacing: -.03em; margin: 1.2rem 0 2.4rem; }
.cta-card .hero__cta { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.footer { padding: clamp(3.5rem,8vh,5.5rem) var(--pad) 2rem; border-top: 1px solid var(--line-soft); max-width: var(--maxw); margin-inline: auto; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: clamp(2.5rem,6vh,4rem); }
.footer__brand p { color: var(--ink-dim); margin: 1.2rem 0; max-width: 32ch; }
.footer__email { color: var(--ink-dim); transition: color .3s; }
.footer__email:hover { color: var(--blue-hi); }
.footer__label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 1.2rem; }
.footer__col a { display: block; color: var(--ink-dim); line-height: 2.1; transition: color .3s; }
.footer__col a:hover { color: var(--blue-hi); }
.footer__base { display: flex; justify-content: space-between; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint); flex-wrap: wrap; gap: .5rem; }

/* ---------- Form: honeypot, consent, status ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .7rem; align-items: flex-start; margin: .2rem 0 1.4rem; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--blue); }
.consent span { font-size: .85rem; color: var(--ink-dim); line-height: 1.5; }
.consent a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 1rem; font-size: .9rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #6ee7a8; }
.form-status.is-err { color: #ff8a8a; }
.form-status a { color: inherit; text-decoration: underline; }

/* ---------- Footer legal links ---------- */
.footer__legal { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.footer__legal a { color: var(--ink-dim); transition: color .3s; }
.footer__legal a:hover { color: var(--blue-hi); }

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 820px; margin-inline: auto; padding: clamp(8rem, 16vh, 11rem) var(--pad) clamp(4rem, 10vh, 7rem); }
.legal__back { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: 13px;
  color: var(--ink-dim); margin-bottom: 2rem; transition: color .3s; }
.legal__back:hover { color: var(--blue-hi); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; }
.legal__updated { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-faint); margin-top: 1rem; }
.legal__lead { color: var(--ink-dim); font-size: 1.1rem; margin-top: 1.6rem; max-width: 62ch; }
.legal h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin: 2.8rem 0 .9rem;
  padding-top: 2.2rem; border-top: 1px solid var(--line-soft); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 1.6rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-dim); line-height: 1.7; }
.legal p { margin: .8rem 0; }
.legal ul { margin: .8rem 0 .8rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.legal li { padding-left: .3rem; }
.legal a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.legal__table th, .legal__table td { text-align: left; padding: .8rem 1rem; border: 1px solid var(--line-soft); vertical-align: top; }
.legal__table th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: var(--surface); }
.legal__table td { color: var(--ink-dim); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: flex; }
  .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cards-3, .cards-4, .field-row { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
