/* ===== Tokens ===== */
:root {
  --ink: #313438;
  --ink-soft: #5b6066;
  --muted: #8a9097;
  --line: #e7e6e2;
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --bg-dark: #26292d;
  --accent: #3a6ea5;
  --maxw: 1140px;
  --pad: clamp(20px, 5vw, 40px);
  --r: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-synthesis: none;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
em { font-style: normal; color: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ===== Buttons ===== */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--b); color: #fff;
  padding: .85em 1.5em; border-radius: 999px;
  font-weight: 500; font-size: .98rem; letter-spacing: .01em;
  border: 1px solid var(--b);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(38,41,45,.18); background: #1f2226; }
.btn--sm { padding: .6em 1.1em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); box-shadow: none; }
.btn--light { --b: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f0ee; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; }
.brand__word { display: inline-flex; flex-direction: column; justify-content: center;
  padding-left: 12px; border-left: 1px solid var(--ink); line-height: 1; }
.brand__name { font-size: .98rem; font-weight: 600; letter-spacing: .18em; }
.brand__sub { font-size: .62rem; font-weight: 400; letter-spacing: .42em; color: var(--ink-soft); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { font-size: .95rem; color: var(--ink-soft); position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--ink); transition: width .28s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero__inner { padding-top: clamp(70px, 12vw, 130px); padding-bottom: clamp(50px, 8vw, 90px); position: relative; z-index: 2; max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600; color: var(--accent); margin-bottom: 22px; }
.hero__title { font-size: clamp(2.7rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.035em; }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 620px; margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__watermark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(46vw, 560px); opacity: .04; z-index: 1; pointer-events: none;
}

/* ===== Ticker ===== */
.ticker { background: var(--bg-dark); color: #cfd2d6; overflow: hidden; padding: 15px 0; }
.ticker__track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap;
  animation: marquee 34s linear infinite; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span { font-size: .9rem; letter-spacing: .06em; }
.ticker__track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: clamp(64px, 10vw, 118px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 14px; }

/* ===== Accordion ===== */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; gap: 20px; cursor: pointer; list-style: none;
  padding: 26px 4px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em;
  transition: color .2s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc__no { font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; min-width: 30px; }
.acc__chev { margin-left: auto; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); flex: none; }
.acc[open] .acc__chev { transform: rotate(-135deg); }
.acc__body { padding: 0 4px 30px 54px; max-width: 720px; }
.acc__body p { color: var(--ink-soft); }
.acc[open] .acc__body { animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { padding-top: 22px; border-top: 2px solid var(--ink); }
.step__no { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .12em; }
.step h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.about__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0 22px; }
.about__text p + p { margin-top: 18px; color: var(--ink-soft); }
.about__text p:first-of-type { color: var(--ink-soft); }
.about__chips { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.about__chips li { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r);
  font-size: .95rem; font-weight: 500; background: var(--bg); }

/* ===== Contact ===== */
.contact { background: var(--bg-dark); color: #fff; padding: clamp(70px, 11vw, 130px) 0; text-align: center; }
.contact__inner { max-width: 620px; }
.contact__mark { width: 56px; height: 56px; margin: 0 auto 26px; opacity: .95; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.contact p { color: #b9bdc2; margin: 18px auto 34px; max-width: 500px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__brand { font-size: .82rem; font-weight: 600; letter-spacing: .22em; }
.footer__meta { font-size: .85rem; color: var(--muted); }
.footer__link { font-size: .85rem; color: var(--ink-soft); }
.footer__link:hover { color: var(--ink); }

/* ===== Reveal on scroll (only hides when JS is present) ===== */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px var(--pad) 26px;
    transform: translateY(-120%); transition: transform .38s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,.06);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a:not(.btn) { padding: 10px 0; width: 100%; }
  .nav__links .btn { margin-top: 8px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 22px; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .acc__body { padding-left: 4px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track { animation: none; }
  * { transition-duration: .01ms !important; }
}
