@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200;12..96,400;12..96,600;12..96,700;12..96,800&display=swap');

:root {
  --ink: #1B1B22;
  --paper: #FBFAF7;
  --white: #ffffff;
  --ink-03: rgba(27,27,34,0.03);
  --ink-05: rgba(27,27,34,0.05);
  --ink-08: rgba(27,27,34,0.08);
  --ink-12: rgba(27,27,34,0.12);
  --ink-20: rgba(27,27,34,0.20);
  --ink-40: rgba(27,27,34,0.40);
  --ink-55: rgba(27,27,34,0.55);
  --ink-70: rgba(27,27,34,0.70);

  --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --container: 1140px;
  --nav-h: 72px;
}

/* ================================================================
   RESET
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ================================================================
   LAYOUT
   ================================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--lg { padding: clamp(5rem, 10vw, 9rem) 0; }
.divider { border: none; height: 1px; background: var(--ink-08); margin: 0; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(251,250,247,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-08);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: inline-flex; align-items: baseline; gap: 9px;
  text-decoration: none; color: var(--ink);
}
.nav__logo svg { display: block; overflow: visible; }
.nav__logo span { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__signin {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.4375rem 1.125rem;
  border: 1px solid var(--ink-12);
  border-radius: 6px;
  text-decoration: none; font-size: 0.8125rem; font-weight: 600;
  color: var(--ink); transition: all 150ms var(--ease);
}
.nav__signin:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.nav__contact {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.4375rem 1.125rem;
  background: var(--ink); border: 1px solid var(--ink);
  border-radius: 6px;
  text-decoration: none; font-size: 0.8125rem; font-weight: 600;
  color: var(--paper); transition: opacity 150ms var(--ease);
}
.nav__contact:hover { opacity: 0.85; }

.nav__menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--ink-12); border-radius: 6px;
  cursor: pointer; color: var(--ink); transition: all 150ms var(--ease);
}
.nav__menu-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav__menu-btn svg { display: block; }

/* ---- Fullscreen Menu ---- */
.fullmenu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.fullmenu--open { opacity: 1; visibility: visible; }

.fullmenu__top {
  position: absolute; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  max-width: var(--container); margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: flex-end;
}
.fullmenu__top-inner { display: contents; }
.fullmenu__close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: var(--ink);
  transition: opacity 150ms var(--ease);
}
.fullmenu__close:hover { opacity: 0.5; }

.fullmenu__content { text-align: center; }

.fullmenu__links { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 3rem; }
.fullmenu__link {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.3;
  text-decoration: none; color: var(--ink-20);
  transition: color 200ms var(--ease);
}
.fullmenu__link:hover,
.fullmenu__link--active { color: var(--ink); }

.fullmenu__footer { }
.fullmenu__signin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.625rem 1.75rem;
  border: 1px solid var(--ink-12); border-radius: 8px;
  text-decoration: none; font-size: 0.9375rem; font-weight: 600;
  color: var(--ink); transition: all 150ms var(--ease);
}
.fullmenu__signin:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Staggered link animation */
.fullmenu--open .fullmenu__link { opacity: 0; transform: translateY(16px); animation: up 0.4s var(--ease) forwards; }
.fullmenu--open .fullmenu__link:nth-child(1) { animation-delay: 0.05s; }
.fullmenu--open .fullmenu__link:nth-child(2) { animation-delay: 0.1s; }
.fullmenu--open .fullmenu__link:nth-child(3) { animation-delay: 0.15s; }
.fullmenu--open .fullmenu__link:nth-child(4) { animation-delay: 0.2s; }
.fullmenu--open .fullmenu__link:nth-child(5) { animation-delay: 0.25s; }
.fullmenu--open .fullmenu__signin { opacity: 0; animation: up 0.4s 0.35s var(--ease) forwards; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-40);
}
.label::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--ink-20);
}

.display {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.035em;
  line-height: 0.96;
}
.display em { font-style: normal; font-weight: 200; }

.heading-1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}

.heading-2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.1;
}

.heading-3 {
  font-size: 1.125rem;
  font-weight: 700; letter-spacing: -0.015em; line-height: 1.3;
}

.heading-4 {
  font-size: 0.9375rem;
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.35;
}

.body-lg { font-size: 1.1875rem; line-height: 1.7; color: var(--ink-55); }
.body { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-55); }
.body-sm { font-size: 0.875rem; line-height: 1.65; color: var(--ink-55); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-40); }

/* ================================================================
   HERO
   ================================================================ */
.hero { padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 7rem)); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero--lg { padding-top: calc(var(--nav-h) + clamp(5rem, 10vw, 9rem)); padding-bottom: clamp(5rem, 10vw, 9rem); }
.hero__content { max-width: 700px; }
.hero__content--center { max-width: 720px; margin: 0 auto; text-align: center; }
.hero .label { margin-bottom: 1.75rem; }
.hero .display { margin-bottom: 1.75rem; }
.hero .heading-1 { margin-bottom: 1.5rem; }
.hero .body-lg { max-width: 560px; margin-bottom: 2.5rem; }
.hero__content--center .body-lg { margin-left: auto; margin-right: auto; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.75rem;
  border: none; border-radius: 8px;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: all 150ms var(--ease);
}
.btn svg { transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { opacity: 0.85; }

.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink-12); }
.btn--outline:hover { border-color: var(--ink); }

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.875rem 2.25rem; font-size: 1rem; }

.btn-group { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust { border-top: 1px solid var(--ink-08); border-bottom: 1px solid var(--ink-08); }
.trust__inner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap;
  padding: 1.75rem 0;
}
.trust__item {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-40);
  white-space: nowrap;
}
.trust__icon {
  width: 36px; height: 36px;
  border: 1px solid var(--ink-08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-40);
}

/* ================================================================
   GRID
   ================================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2-1 { grid-template-columns: 2fr 1fr; }
.grid--1-2 { grid-template-columns: 1fr 2fr; }
.grid--border { gap: 0; border: 1px solid var(--ink-08); border-radius: 12px; overflow: hidden; }
.grid--border > * { border-right: 1px solid var(--ink-08); border-bottom: 1px solid var(--ink-08); }
.grid--border.grid--3 > *:nth-child(3n) { border-right: none; }
.grid--border.grid--2 > *:nth-child(2n) { border-right: none; }
.grid--border > *:nth-last-child(-n+3):nth-child(3n+1),
.grid--border > *:nth-last-child(-n+3):nth-child(3n+1) ~ * { border-bottom: none; }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--ink-08);
  border-radius: 12px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: border-color 200ms var(--ease);
}
.card:hover { border-color: var(--ink-12); }
.card--flat { background: var(--paper); border: 1px solid var(--ink-08); }
.card--flat:hover { background: var(--white); }
.card--no-border { border: none; background: transparent; padding: 0; }
.card--no-border:hover { border: none; }

/* Feature card */
.feature { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--paper); transition: background 200ms var(--ease); }
.feature:hover { background: var(--white); }
.feature__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--ink-08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--ink);
}
.feature__title { margin-bottom: 0.5rem; }
.feature__text { font-size: 0.875rem; line-height: 1.65; color: var(--ink-55); }

/* ================================================================
   STEPS
   ================================================================ */
.steps { counter-reset: step; }
.step { counter-increment: step; padding: 2rem 1.5rem; text-align: center; position: relative; }
.step__marker {
  width: 56px; height: 56px;
  border: 1px solid var(--ink-08); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1.5rem; background: var(--paper); position: relative; z-index: 1;
}
.step__marker::before { content: counter(step); }
.step__title { margin-bottom: 0.5rem; }
.step__text { font-size: 0.8125rem; line-height: 1.65; color: var(--ink-55); max-width: 240px; margin: 0 auto; }

.steps__connector {
  position: relative;
}
.steps__connector::before {
  content: ''; position: absolute;
  top: 28px; left: 15%; right: 15%;
  height: 1px; background: var(--ink-08);
}

/* ================================================================
   SPEC LIST
   ================================================================ */
.specs { list-style: none; }
.spec {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ink-05);
}
.spec:last-child { border-bottom: none; }
.spec__icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1px solid var(--ink-08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); margin-top: 0.125rem;
}
.spec__content { flex: 1; }
.spec__title { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.spec__text { font-size: 0.875rem; line-height: 1.6; color: var(--ink-55); }

/* ================================================================
   PROCESS BLOCKS (for platform page)
   ================================================================ */
.process { display: flex; flex-direction: column; gap: 0; }
.process__item {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--ink-08);
}
.process__item:last-child { border-bottom: none; }
.process__item:nth-child(even) .process__visual { order: -1; }
.process__label { margin-bottom: 1rem; }
.process__title { margin-bottom: 1rem; }
.process__text { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-55); margin-bottom: 1.5rem; }
.process__visual {
  background: var(--white); border: 1px solid var(--ink-08); border-radius: 12px;
  padding: 2.5rem; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.process__diagram { font-size: 0.75rem; color: var(--ink-40); }

/* ================================================================
   STAT
   ================================================================ */
.stat { text-align: center; padding: 2rem 1rem; }
.stat__value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.5rem; }
.stat__label { font-size: 0.8125rem; color: var(--ink-40); font-weight: 500; }

/* ================================================================
   PRINCIPLES
   ================================================================ */
.principle {
  padding: 2rem 0;
  border-bottom: 1px solid var(--ink-05);
  display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start;
}
.principle:last-child { border-bottom: none; }
.principle__title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; padding-top: 0.125rem; }
.principle__text { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-55); }

/* ================================================================
   CTA SECTION
   ================================================================ */
.cta-section { text-align: center; }
.cta-card {
  border: 1px solid var(--ink-08); border-radius: 16px;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem);
  position: relative; overflow: hidden;
}
.cta-card__symbol { opacity: 0.035; margin-bottom: 2rem; }
.cta-card .heading-2 { margin-bottom: 1rem; }
.cta-card .body { max-width: 480px; margin: 0 auto 2.5rem; }

/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  color: var(--ink); margin-bottom: 0.375rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--ink-08); border-radius: 8px;
  font-size: 0.9375rem; font-family: var(--font);
  background: var(--white); color: var(--ink);
  outline: none; transition: border-color 150ms var(--ease);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--ink-40);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { border-top: 1px solid var(--ink-08); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3.5rem;
}
.footer__brand { max-width: 280px; }
.footer__logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--ink);
  margin-bottom: 1rem;
}
.footer__logo svg { display: block; overflow: visible; }
.footer__logo span { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.footer__tagline { font-size: 0.875rem; line-height: 1.6; color: var(--ink-40); }

.footer__heading {
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 1rem;
}
.footer__list { list-style: none; }
.footer__list li { margin-bottom: 0.5rem; }
.footer__list a {
  font-size: 0.875rem; color: var(--ink-55);
  text-decoration: none; transition: color 150ms var(--ease);
}
.footer__list a:hover { color: var(--ink); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--ink-05);
}
.footer__copy { font-size: 0.75rem; color: var(--ink-40); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.75rem; color: var(--ink-40); text-decoration: none; }
.footer__legal a:hover { color: var(--ink); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero animations */
.hero .label { opacity: 0; transform: translateY(12px); animation: up 0.7s 0.15s var(--ease) forwards; }
.hero .display,
.hero .heading-1 { opacity: 0; transform: translateY(18px); animation: up 0.7s 0.3s var(--ease) forwards; }
.hero .body-lg { opacity: 0; transform: translateY(14px); animation: up 0.7s 0.45s var(--ease) forwards; }
.hero .btn-group { opacity: 0; transform: translateY(14px); animation: up 0.7s 0.6s var(--ease) forwards; }

@keyframes up { to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process__item { grid-template-columns: 1fr; }
  .process__item:nth-child(even) .process__visual { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .principle { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--border.grid--3 > * { border-right: none; }
  .grid--border.grid--2 > * { border-right: none; }
  .steps__connector::before { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .trust__inner { justify-content: flex-start; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .hero__content--center .body-lg { text-align: left; }
  .hero__content--center { text-align: left; }
}
