/* =========================================================================
   Arbitrage Citizen — design system
   Theme: Cold Luxury (locked dark). Accent: jade (locked). Radius: one scale.
   ========================================================================= */

:root {
  /* ---- Color (one palette, one accent, locked) ---- */
  --bg:            #0A0C10;   /* cool near-black */
  --bg-2:          #0D1015;   /* section tint within same theme */
  --surface:       #12161D;   /* elevated */
  --surface-2:     #161B23;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.14);

  --text:          #ECEEF1;   /* platinum, off-white */
  --text-2:        #AEB6C0;   /* cool grey */
  --text-3:        #757E89;   /* muted */

  --accent:        #1F8E68;   /* jade, deepened a notch */
  --accent-soft:   #52C098;
  --accent-dim:    rgba(31, 142, 104, 0.14);
  --on-accent:     #04110B;   /* dark text on jade -> AA */

  /* ---- Radius (one scale, locked) ---- */
  --r-sm:  10px;
  --r:     16px;
  --r-lg:  22px;
  --r-pill: 999px;
  --r-btn: 2px;   /* sharp, precise edges for actions + inputs */

  /* ---- Type ---- */
  --font-display: "Zodiak", Georgia, "Times New Roman", serif;
  --font-body:    "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ambient grain + glow, fixed, never on scrolling containers */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; z-index: 2; padding-block: clamp(72px, 11vw, 144px); }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------------------------------------------------------------- type */
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-soft);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
.h-display { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
.h-section { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.06; }
.h-card    { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.measure { max-width: 62ch; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.5em; border-radius: var(--r-btn);
  font-weight: 700; font-size: 0.98rem; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
/* inline svg icons (self-contained, no icon font) */
.ico {
  width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn--primary:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 72px;
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav--solid {
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.brand { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.12rem; }
.brand__mark { width: 28px; height: 28px; flex: none; display: block; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-2); font-size: 0.95rem; font-weight: 500; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links-cta { display: none; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
  display: none; place-items: center; width: 42px; height: 42px; flex: none;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-btn); color: var(--text);
}
.nav__toggle .ico { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-grid; }
  .nav__links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 12, 16, 0.97); backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 18px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav__links-cta { display: block; color: var(--accent-soft); font-weight: 700; border-bottom: none; }
}

/* ---------------------------------------------------------------- hero (full-screen) */
.hero {
  position: relative; z-index: 2;
  min-height: 100svh; display: flex; align-items: center;
  padding-block: clamp(120px, 18vh, 200px) clamp(80px, 14vh, 160px);
  overflow: hidden;
}
/* media layer: video fills, with a fallback blue-hour gradient if the file isn't there yet */
.hero__media {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 80% at 50% 0%, #1b2735, #0A0C10 72%);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
/* scrim keeps text legible over the footage */
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.55) 0%, rgba(10,12,16,0.20) 38%, rgba(10,12,16,0.80) 100%);
}
/* fog dissolve: the bottom of the hero melts into the page background */
.hero__fog {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45vh;
  background: linear-gradient(180deg, transparent 0%, rgba(10,12,16,0.65) 55%, var(--bg) 92%);
}

.hero__inner { position: relative; z-index: 2; max-width: 900px; margin-inline: auto; text-align: center; }
.hero__eyebrow { margin-bottom: 22px; }
.hero h1 { margin: 0 auto 22px; max-width: 24ch; }
.hero__lede { margin: 0 auto 34px; color: var(--text); max-width: 50ch; }

/* email capture */
.signup { display: flex; gap: 12px; flex-wrap: wrap; max-width: 580px; }
.signup__input {
  flex: 1 1 240px; min-width: 0;
  padding: 0.95em 1.3em; border-radius: var(--r-btn);
  background: rgba(10,12,16,0.55); border: 1px solid var(--line-strong);
  color: var(--text); font: inherit; backdrop-filter: blur(8px);
  transition: border-color 0.2s var(--ease);
}
.signup__input::placeholder { color: var(--text-3); }
.signup__input:focus { outline: none; border-color: var(--accent-soft); }
.signup .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .signup { justify-content: stretch; }
  .signup__input { flex: 1 1 100%; }
  .signup .btn { flex: 1 1 100%; justify-content: center; }
  .signup__note { justify-content: center; }
}
.signup__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.85rem; color: var(--text-2); }
.signup__note .ico { color: var(--accent-soft); }
.signup.is-done .signup__input,
.signup.is-done .btn { display: none; }
.signup__ok { display: none; align-items: center; gap: 10px; color: var(--accent-soft); font-weight: 600; }
.signup.is-done + .signup__note { display: none; }
.signup.is-done .signup__ok { display: flex; }

/* scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2);
  background: rgba(10,12,16,0.4); backdrop-filter: blur(6px);
  animation: heroBob 2.2s var(--ease) infinite;
}
.hero__scroll:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
@keyframes heroBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll { animation: none; } }

/* ---------------------------------------------------------------- scope strip */
.scope { border-top: 1px solid var(--line); }
.scope__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.scope__cell { background: var(--bg); padding: 26px clamp(18px, 3vw, 34px); }
.scope__cell h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; letter-spacing: 0; }
.scope__cell p { font-size: 0.95rem; color: var(--text-2); }
@media (max-width: 720px) { .scope__row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- thesis (editorial) */
.thesis__lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.22; letter-spacing: -0.015em; max-width: 22ch; }
.thesis__lead b { font-weight: 800; color: var(--text); }
.thesis__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.thesis__aside { padding-top: 8px; }
.thesis__aside { color: var(--text-2); }
.thesis__aside p + p { margin-top: 1.1em; }
@media (max-width: 860px) { .thesis__grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------------------------------------------------------------- services bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(24px, 3vw, 36px); overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent-soft); margin-bottom: 22px;
}
.card__icon .ico { width: 26px; height: 26px; stroke-width: 1.5; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.98rem; max-width: 42ch; }
.card__tag { display: inline-block; margin-top: 18px; font-size: 0.82rem; color: var(--text-3); }

/* bento rhythm: every pillar is an image card */
.card--img { min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.card__bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.18) contrast(1.03); transition: transform 0.5s var(--ease);
}
.card--img:hover .card__bg { transform: scale(1.04); }
.card--img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,16,0.30) 0%, rgba(10,12,16,0.55) 55%, rgba(10,12,16,0.94) 100%);
}
.card--img > *:not(.card__bg) { position: relative; z-index: 2; }
.card--img .card__icon {
  background: rgba(10,12,16,0.55); border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
}
.card--lead { grid-column: span 4; min-height: 360px; }
.card--tall { grid-column: span 2; grid-row: span 1; }
.card--wide { grid-column: span 3; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .card--lead, .card--wide, .card--tall { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card--lead, .card--wide, .card--tall { grid-column: span 1; }
}

/* ---------------------------------------------------------------- process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.step { background: var(--bg); padding: clamp(26px, 3vw, 38px) clamp(20px, 2.4vw, 30px); }
.step__k { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--accent-soft); }
.step__bar { height: 2px; width: 34px; background: var(--accent); margin: 18px 0; }
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- jurisdictions */
.juris__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.jcard {
  scroll-snap-align: start; flex: 0 0 clamp(220px, 26vw, 280px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.jcard:hover { border-color: var(--accent-soft); transform: translateY(-3px); }
.jcard__flag { font-size: 1.6rem; margin-bottom: 16px; }
.jcard h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; margin-bottom: 6px; }
.jcard p { font-size: 0.88rem; color: var(--text-2); }
.jcard__route { margin-top: 16px; font-size: 0.8rem; color: var(--accent-soft); font-weight: 600; }

/* ---------------------------------------------------------------- approach (split) */
.approach__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .approach__grid { grid-template-columns: 1fr; } }
.approach__img { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 5 / 6; position: relative; }
.approach__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.45) contrast(1.04); }
.approach__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent, rgba(52,185,138,0.12), rgba(10,12,16,0.55)); }
.principles { list-style: none; padding: 0; margin-top: 30px; }
.principles li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles .ico { color: var(--accent-soft); width: 1.5rem; height: 1.5rem; flex: none; margin-top: 2px; }
.principles h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; margin-bottom: 4px; }
.principles p { color: var(--text-2); font-size: 0.95rem; }

/* ---------------------------------------------------------------- testimonial */
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote blockquote {
  font-family: var(--font-display); font-weight: 500; line-height: 1.28;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); letter-spacing: -0.015em; max-width: 20ch; margin-inline: auto;
}
.quote__by { margin-top: 30px; color: var(--text-2); font-size: 0.98rem; }
.quote__by b { color: var(--text); font-weight: 700; }

/* ---------------------------------------------------------------- final cta */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(52,185,138,0.16), var(--surface) 60%);
  border: 1px solid var(--line-strong); padding: clamp(40px, 6vw, 76px);
}
.cta__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .cta__grid { grid-template-columns: 1fr; } }
.cta h2 { margin-bottom: 16px; }
.cta__glow { position: absolute; right: -10%; top: -40%; width: 50%; height: 180%; background: radial-gradient(circle, rgba(52,185,138,0.22), transparent 60%); pointer-events: none; }

/* ---------------------------------------------------------------- footer */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--bg-2); }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__cols { display: flex; gap: clamp(40px, 8vw, 96px); flex-wrap: wrap; }
.footer__col h4 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-family: var(--font-body); font-weight: 700; }
.footer__col a { display: block; color: var(--text-2); font-size: 0.95rem; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__brand { max-width: 30ch; }
.footer__brand p { color: var(--text-2); font-size: 0.95rem; margin-top: 14px; }
.footer__legal { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-3); font-size: 0.82rem; }
.footer__legal p { max-width: 70ch; }

/* ---------------------------------------------------------------- shared section header */
.shead { margin-bottom: clamp(40px, 5vw, 64px); max-width: 52ch; }
.shead .eyebrow { display: block; margin-bottom: 18px; }
.shead p { color: var(--text-2); margin-top: 18px; font-size: 1.08rem; }

/* ---------------------------------------------------------------- reveal motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
