/* ============ TOKENS ============ */
:root {
  --font-display: 'General Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', system-ui, sans-serif;

  --bg: #F7F9FC;
  --bg-tint: #EEF4F9;
  --surface: #FFFFFF;
  --border: #DCE4EC;
  --text: #15232F;
  --text-muted: #556675;
  --text-soft: #7A8A99;

  --blue: #3BAFE0;
  --blue-deep: #1E7FB5;
  --blue-soft: #E3F3FB;
  --orange: #F6822D;
  --orange-deep: #D96A17;
  --orange-soft: #FDEEDF;

  --text-xs: 0.8125rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --text-2xl: clamp(2.4rem, 1.6rem + 3.2vw, 4rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(21,35,47,.04), 0 12px 32px -12px rgba(21,35,47,.12);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; color: var(--text); }
p { margin: 0 0 var(--space-4); }
sup { font-size: .5em; vertical-align: super; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { scroll-margin-top: 72px; padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section--tint { background: var(--bg-tint); }
.section__title { font-size: var(--text-xl); font-weight: 600; max-width: 24ch; }
.section__head { margin-bottom: var(--space-12); }
.section__head .section__title { max-width: none; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: var(--space-3);
}
.accent { color: var(--orange); }
.prose p { color: var(--text-muted); }
.prose p:last-child { margin-bottom: 0; }
.grid-2 { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-body);
  font-size: var(--text-sm); font-weight: 700; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn--sm { padding: .6rem 1.15rem; }
.btn--full { width: 100%; padding: 1rem; }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(246,130,45,.6); }
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--blue-deep); border-color: var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,252,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: var(--space-8); height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand__icon { width: 36px; height: auto; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1; }
.brand__you { color: var(--blue); }
.brand__chain { color: var(--orange); }
.nav__links { display: none; gap: var(--space-6); }
.nav__links a { font-size: var(--text-sm); font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__inner .btn { display: none; }
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; padding: 0 10px;
}
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, 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); }
.nav__mobile { display: none; flex-direction: column; gap: var(--space-2); padding: var(--space-4) 1.25rem var(--space-6); border-top: 1px solid var(--border); background: var(--bg); }
.nav__mobile.is-open { display: flex; }
.nav__mobile a:not(.btn) { padding: .6rem 0; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.nav__mobile .btn { margin-top: var(--space-3); }
@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__inner .btn { display: inline-flex; }
  .nav__toggle, .nav__mobile { display: none !important; }
}

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; padding-top: clamp(var(--space-12), 8vw, 6rem); padding-bottom: var(--space-16); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(59,175,224,.14), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(246,130,45,.10), transparent 70%);
}
.hero__inner { position: relative; display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 880px) { .hero__inner { grid-template-columns: 7fr 5fr; } }
.hero__title { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.03em; max-width: 14ch; margin-bottom: var(--space-6); }
.hero__lead { font-size: var(--text-lg); color: var(--text-muted); max-width: 54ch; margin-bottom: var(--space-8); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__visual {
  position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto;
  display: grid; place-items: center;
}
.hero__visual .network { position: absolute; inset: 0; width: 100%; height: 100%; }
.network__mark {
  position: relative; z-index: 2; width: 23%; height: auto;
  filter: drop-shadow(0 6px 10px rgba(30,127,181,.18));
}
.orb { position: absolute; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.orb--blue { width: 55%; height: 55%; left: -8%; top: 4%; background: rgba(59,175,224,.20); }
.orb--orange { width: 42%; height: 42%; right: -4%; bottom: 2%; background: rgba(246,130,45,.15); }
.orbit { transform-origin: 300px 300px; }
.orbit--outer { animation: spin 48s linear infinite; }
.orbit--mid { animation: spin 30s linear infinite reverse; }
.orbit--inner { animation: spin 22s linear infinite; }
.nodes circle { animation: pulse 4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.nodes circle:nth-child(2) { animation-delay: .7s; } .nodes circle:nth-child(3) { animation-delay: 1.4s; }
.nodes circle:nth-child(4) { animation-delay: 2.1s; } .nodes circle:nth-child(5) { animation-delay: 2.8s; }
.nodes circle:nth-child(6) { animation-delay: 3.5s; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.stats {
  position: relative; list-style: none; margin: var(--space-16) 0 0; padding: var(--space-6) 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6);
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { display: flex; flex-direction: column; gap: .2rem; }
.stats__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.02em; color: var(--blue-deep); line-height: 1.1; }
.stats__label { font-size: var(--text-xs); color: var(--text-soft); font-weight: 500; }

/* ============ CARDS ============ */
.cards { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-8) var(--space-6); box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(21,35,47,.04), 0 20px 40px -16px rgba(21,35,47,.18); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-deep);
  display: grid; place-items: center; margin-bottom: var(--space-6);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { color: var(--text-muted); font-size: var(--text-sm); margin: 0; line-height: 1.65; }

/* ============ MISSION ============ */
.mission { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 880px) { .mission { grid-template-columns: 6fr 6fr; gap: var(--space-16); } }
.mission__quote blockquote { margin: 0; padding-left: var(--space-6); border-left: 4px solid var(--orange); }
.mission__quote blockquote p { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--text); margin: 0; }

/* ============ BOARD ============ */
.board { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .board { grid-template-columns: repeat(3, 1fr); } }
.member {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-8) var(--space-6); text-align: center; box-shadow: var(--shadow);
}
.member__avatar {
  width: 112px; height: 112px; margin: 0 auto var(--space-6); border-radius: 50%; padding: 5px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 24px -10px rgba(30,127,181,.5);
}
.member__avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%;
  image-rendering: pixelated; image-rendering: crisp-edges; border: 3px solid var(--surface);
}
.member h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-1); }
.member__role { margin: 0; color: var(--orange-deep); font-weight: 600; font-size: var(--text-sm); }

/* ============ LEGAL ============ */
.prose--legal p { font-size: var(--text-sm); }
.note { padding: var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-soft) !important; font-size: var(--text-xs) !important; margin-top: var(--space-6); }

/* ============ CONTACT ============ */
.section--contact { background: var(--bg-tint); }
.contact { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; gap: var(--space-16); } }
.contact__lead { color: var(--text-muted); margin-bottom: var(--space-8); }
.details { margin: 0; display: grid; gap: var(--space-4); }
.details div { padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.details dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 700; margin-bottom: .2rem; }
.details dd { margin: 0; font-weight: 500; }

.form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(var(--space-6), 4vw, var(--space-12)); box-shadow: var(--shadow);
}
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__row--bottom { align-items: start; margin-top: var(--space-2); }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: var(--space-4); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field label span, .req { color: var(--orange-deep); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--text-sm); color: var(--text);
  padding: .8rem .95rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,175,224,.18); background: var(--surface);
}
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: #D9433A; }
.field--check label strong { color: var(--blue-deep); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--text-xs); color: var(--text-muted); margin-bottom: var(--space-4); padding-top: 1.85rem; cursor: pointer; }
@media (max-width: 639px) { .consent { padding-top: 0; } }
.consent input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--orange); flex-shrink: 0; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form__status { margin: var(--space-4) 0 0; font-size: var(--text-sm); font-weight: 500; min-height: 1.5em; }
.form__status.is-ok { color: #1E7F4F; }
.form__status.is-err { color: #B5302A; }
.form__success {
  text-align: center; padding: var(--space-8) var(--space-4);
}
.form__success .check {
  width: 64px; height: 64px; border-radius: 50%; background: #E4F5EC; color: #1E7F4F; display: grid; place-items: center; margin: 0 auto var(--space-6);
}
.form__success h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.form__success p { color: var(--text-muted); margin: 0; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding-block: var(--space-12); background: var(--bg); }
.footer__inner { display: grid; gap: var(--space-6); }
@media (min-width: 880px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: start; gap: var(--space-12); } .footer__right { padding-top: .1rem; } }
.footer__brand { display: flex; align-items: center; gap: .75rem; font-size: var(--text-sm); line-height: 1.3; }
.footer__brand span { color: var(--text-soft); font-size: var(--text-xs); }
.footer__legal {
  margin: 0; font-style: normal; font-size: var(--text-xs); color: var(--text-soft); line-height: 1.75;
  display: flex; flex-direction: column; padding-left: var(--space-4); border-left: 2px solid var(--border);
}
.footer__legal span { white-space: nowrap; }
.footer__copy { margin: 0 0 .35rem; font-size: var(--text-xs); color: var(--text-soft); }
.footer__right { text-align: left; }
@media (min-width: 880px) { .footer__right { text-align: right; } }
.footer__links { margin: 0; font-size: var(--text-xs); color: var(--text-soft); display: flex; flex-wrap: wrap; gap: .5rem; }
@media (min-width: 880px) { .footer__links { justify-content: flex-end; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike:hover { color: var(--text); }
.linklike:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

/* ============ COOKIE CONSENT ============ */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 1rem;
  animation: cookieIn .35s ease-out both;
}
.cookie[hidden] { display: none; }
@keyframes cookieIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie__inner {
  width: min(100%, 1160px); margin-inline: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(21,35,47,.05), 0 24px 60px -20px rgba(21,35,47,.35);
  padding: var(--space-6); display: grid; gap: var(--space-4);
}
.cookie__text h2 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; margin-bottom: .4rem; }
.cookie__text p { margin: 0; font-size: var(--text-xs); color: var(--text-muted); line-height: 1.6; max-width: 90ch; }
.cookie__prefs { display: grid; gap: .5rem; border-top: 1px solid var(--border); padding-top: var(--space-4); }
.cookie__prefs[hidden] { display: none; }
@media (min-width: 760px) { .cookie__prefs { grid-template-columns: 1fr 1fr; } }
.cookie__opt {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer;
}
.cookie__opt span { display: flex; flex-direction: column; gap: .1rem; font-size: var(--text-xs); }
.cookie__opt strong { font-weight: 700; color: var(--text); }
.cookie__opt small { color: var(--text-soft); font-size: .75rem; line-height: 1.4; }
.cookie__opt input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--orange); margin: 0; }
.cookie__opt--ccpa { border-color: rgba(246,130,45,.45); background: var(--orange-soft); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.cookie__actions .btn[hidden] { display: none; }
@media (max-width: 560px) { .cookie__actions .btn { flex: 1 1 100%; } }

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