/* ─── Design tokens ─── */
:root {
  --black: #000000;
  --graphite: #0a0a0b;
  --graphite-2: #111113;
  --graphite-3: #1a1a1e;
  --silver: #8a8a94;
  --silver-dim: #5c5c66;
  --white: #f4f4f6;
  --white-soft: rgba(244, 244, 246, 0.72);
  --accent: #c8c8d0;
  --glow: rgba(200, 200, 210, 0.15);
  --glow-strong: rgba(220, 220, 230, 0.28);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Ambient lighting ─── */
.ambient-light {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.35;
  animation: ambientDrift 28s var(--ease-smooth) infinite alternate;
}

.ambient-light--a {
  width: 55vw;
  height: 55vw;
  top: -20%;
  left: -15%;
  background: radial-gradient(circle, rgba(60, 60, 70, 0.25) 0%, transparent 70%);
}

.ambient-light--b {
  width: 45vw;
  height: 45vw;
  bottom: -25%;
  right: -10%;
  background: radial-gradient(circle, rgba(40, 40, 48, 0.2) 0%, transparent 70%);
  animation-delay: -14s;
  animation-direction: alternate-reverse;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, 6%) scale(1.08); }
}

/* ─── Cursor glow ─── */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(180, 180, 190, 0.04) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease-smooth);
  opacity: 0;
}

body.is-interactive .cursor-glow {
  opacity: 1;
}

/* ─── Canvas background ─── */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Floating USDT logos ─── */
.logo-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-logo {
  position: absolute;
  color: #2e2e34;
  opacity: 0;
  filter: blur(0.5px);
  animation: logoFloat var(--dur, 40s) var(--ease-smooth) infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}

.float-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(var(--rot, 0deg)) scale(1);
    opacity: var(--o-min, 0.06);
  }
  25% {
    transform: translate(18px, -22px) rotate(calc(var(--rot, 0deg) + 5deg)) scale(1.03);
    opacity: var(--o-max, 0.12);
  }
  50% {
    transform: translate(-14px, 18px) rotate(calc(var(--rot, 0deg) - 4deg)) scale(0.97);
    opacity: var(--o-min, 0.06);
  }
  75% {
    transform: translate(10px, 12px) rotate(calc(var(--rot, 0deg) + 2deg)) scale(1.01);
    opacity: calc((var(--o-min, 0.06) + var(--o-max, 0.12)) / 2);
  }
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  z-index: 2;
  transition: opacity 0.35s var(--ease-smooth);
}

.brand:hover {
  opacity: 0.85;
}

.header-nav {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}

.header-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  padding: 0.15rem 0;
  border: none;
  background: none;
  box-shadow: none;
  pointer-events: auto;
  position: relative;
  transition: color 0.35s var(--ease-smooth);
}

.header-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 220, 230, 0.5), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 0.35s var(--ease-smooth),
    transform 0.45s var(--ease-out-expo);
}

.header-link:hover {
  color: var(--white);
}

.header-link:hover::after,
.header-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-link.is-active {
  color: var(--white);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #b4b4bc;
  filter: drop-shadow(0 0 10px rgba(200, 200, 210, 0.2));
  animation: brandLogoPulse 5s ease-in-out infinite;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes brandLogoPulse {
  0%, 100% {
    opacity: 0.75;
    filter: drop-shadow(0 0 8px rgba(200, 200, 210, 0.15));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(220, 220, 230, 0.35));
  }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white-soft);
}

.brand-accent {
  color: var(--white);
  margin-left: 0.15em;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem clamp(1.25rem, 5vw, 4rem) 4rem;
}

.hero-inner {
  width: 100%;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  font-size: clamp(2rem, 6.5vw, 3.75rem);
  letter-spacing: -0.02em;
  color: var(--white);
}

.title-line--accent {
  background: linear-gradient(
    135deg,
    var(--white) 0%,
    var(--accent) 40%,
    var(--white) 70%,
    rgba(180, 180, 190, 0.85) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 8s linear infinite;
  filter: drop-shadow(0 0 40px rgba(200, 200, 210, 0.2));
  position: relative;
}

.title-line--accent::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 200, 210, 0.35), transparent);
}

@keyframes titleShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: var(--white-soft);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.75rem;
}

/* ─── Wallet form ─── */
.wallet-form {
  width: 100%;
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.wallet-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 5px;
  border-radius: 100px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 45%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 24px -4px rgba(0, 0, 0, 0.6),
    0 24px 64px -28px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  transition:
    box-shadow 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo);
  position: relative;
}

.wallet-input-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(220, 220, 230, 0.22) 45%,
    rgba(255, 255, 255, 0.02) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  pointer-events: none;
}

.wallet-input-wrap::after {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(200, 200, 210, 0.25);
  box-shadow: 0 0 12px rgba(200, 200, 210, 0.2);
  opacity: 0;
  transition: opacity 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
  pointer-events: none;
}

.wallet-input-wrap.is-focused::before,
.wallet-input-wrap:hover::before {
  opacity: 1;
}

.wallet-input-wrap.is-focused::after {
  opacity: 1;
  box-shadow: 0 0 16px rgba(220, 220, 230, 0.45);
}

.wallet-input-wrap.is-focused {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 60px -12px rgba(200, 200, 210, 0.18),
    0 28px 72px -28px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.wallet-input-wrap.is-invalid {
  background: linear-gradient(
    145deg,
    rgba(220, 80, 80, 0.12) 0%,
    rgba(180, 50, 50, 0.06) 45%,
    rgba(200, 60, 60, 0.1) 100%
  );
  box-shadow:
    0 0 0 1px rgba(220, 90, 90, 0.35),
    0 0 48px -10px rgba(200, 60, 60, 0.25),
    0 20px 50px -25px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 120, 120, 0.08);
  transform: translateY(-2px);
}

.wallet-input-wrap.is-invalid::before {
  opacity: 1;
  background: linear-gradient(
    120deg,
    rgba(220, 80, 80, 0.1) 0%,
    rgba(240, 100, 100, 0.45) 45%,
    rgba(220, 80, 80, 0.1) 100%
  );
}

.wallet-input-wrap.is-invalid::after {
  opacity: 1;
  background: rgba(240, 100, 100, 0.7);
  box-shadow: 0 0 16px rgba(220, 80, 80, 0.5);
}

.wallet-input-wrap.is-invalid .wallet-input-field {
  background: rgba(40, 12, 12, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(220, 90, 90, 0.25),
    inset 0 0 24px -6px rgba(200, 60, 60, 0.15);
}

.wallet-input-wrap.is-invalid .wallet-input-icon {
  color: rgba(240, 130, 130, 0.9);
  opacity: 1;
}

.wallet-input-wrap.is-invalid .wallet-input {
  color: #ffe8e8;
}

.wallet-input-wrap.is-invalid .wallet-input::placeholder {
  color: rgba(200, 120, 120, 0.65);
}

.wallet-input-wrap.is-invalid.is-focused {
  box-shadow:
    0 0 0 1px rgba(240, 100, 100, 0.45),
    0 0 56px -10px rgba(200, 60, 60, 0.3),
    0 28px 72px -28px rgba(0, 0, 0, 0.92),
    inset 0 1px 0 rgba(255, 140, 140, 0.1);
}

.wallet-input-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 0.5rem 0 1.15rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: background 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
}

.wallet-input-wrap.is-focused .wallet-input-field {
  background: rgba(0, 0, 0, 0.62);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 30px -10px rgba(200, 200, 210, 0.06);
}

.wallet-input-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-dim);
  opacity: 0.7;
  transition: color 0.4s var(--ease-smooth), opacity 0.4s var(--ease-smooth);
}

.wallet-input-wrap.is-focused .wallet-input-icon {
  color: var(--silver);
  opacity: 1;
}

.wallet-input {
  flex: 1;
  min-width: 0;
  padding: 1.1rem 1.25rem 1.1rem 0;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--white);
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
}

.wallet-input::placeholder {
  color: rgba(92, 92, 102, 0.85);
  font-weight: 300;
  transition: color 0.35s var(--ease-smooth);
}

.wallet-input:focus::placeholder {
  color: rgba(92, 92, 102, 0.45);
}

.wallet-btn {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1.05rem 1.2rem;
  min-width: unset;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #0a0a0b;
  background: linear-gradient(165deg, #fafafa 0%, #e8e8ec 48%, #d0d0d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 16px -4px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.45s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo),
    background 0.45s var(--ease-smooth);
}

.wallet-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: transform 0.45s var(--ease-out-expo), opacity 0.35s var(--ease-smooth);
}

.wallet-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 65%
  );
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease-out-expo);
  pointer-events: none;
}

.wallet-btn:hover {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(165deg, #ffffff 0%, #f0f0f4 50%, #dcdce4 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 28px -6px rgba(0, 0, 0, 0.55),
    0 0 32px -8px rgba(220, 220, 230, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.12);
}

.wallet-btn:hover .wallet-btn-shine {
  transform: translateX(130%);
}

.wallet-btn:hover .wallet-btn-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.wallet-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 8px -2px rgba(0, 0, 0, 0.5);
}

.wallet-btn.is-loading {
  pointer-events: none;
  opacity: 0.88;
}

.wallet-btn.is-loading .wallet-btn-arrow {
  opacity: 0;
}

/* ─── Hero metrics ─── */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  justify-items: center;
  width: 100%;
  max-width: 620px;
  margin: 0.75rem auto 0;
  padding: 0;
}

.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  padding: 0.25rem 1.5rem;
  text-align: center;
}

.metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

.metric-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  min-height: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 0 28px rgba(200, 200, 210, 0.18);
}

.metric-symbol,
.metric-num,
.metric-unit {
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  letter-spacing: inherit;
  vertical-align: baseline;
}

.metric-suffix {
  font-size: 0.65em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(244, 244, 246, 0.75);
  margin-left: 0.05em;
  vertical-align: baseline;
}

.metric-symbol {
  opacity: 0.8;
}

.metric-label {
  display: block;
  width: 100%;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(138, 138, 148, 0.9);
  line-height: 1.35;
}

.hero-metrics.reveal.is-visible .metric {
  animation: metricIn 0.85s var(--ease-out-expo) backwards;
}

.hero-metrics.reveal.is-visible .metric:nth-child(1) { animation-delay: 0.15s; }
.hero-metrics.reveal.is-visible .metric:nth-child(2) { animation-delay: 0.28s; }
.hero-metrics.reveal.is-visible .metric:nth-child(3) { animation-delay: 0.41s; }

@keyframes metricIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Intelligence section ─── */
.intelligence {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 12vh, 10rem);
}

.intelligence::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.intelligence-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.intelligence-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 520px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
}

/* ─── FAQ accordion ─── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 760px;
  margin: 0 auto;
}

.faq.reveal.is-visible .faq-item {
  animation: faqItemIn 0.8s var(--ease-out-expo) backwards;
}

.faq.reveal.is-visible .faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq.reveal.is-visible .faq-item:nth-child(2) { animation-delay: 0.12s; }
.faq.reveal.is-visible .faq-item:nth-child(3) { animation-delay: 0.19s; }
.faq.reveal.is-visible .faq-item:nth-child(4) { animation-delay: 0.26s; }

@keyframes faqItemIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  position: relative;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    border-color 0.55s var(--ease-out-expo),
    background 0.55s var(--ease-out-expo),
    box-shadow 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo);
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(220, 220, 230, 0.5), transparent);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: center top;
  transition:
    opacity 0.5s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo);
}

.faq-item.is-open {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 20px 50px -30px rgba(0, 0, 0, 0.9),
    0 0 40px -15px rgba(200, 200, 210, 0.08);
  transform: translateY(-2px);
}

.faq-item.is-open::before {
  opacity: 1;
  transform: scaleY(1);
}

.faq-heading {
  margin: 0;
}

.faq-trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.35rem 1.5rem;
  font-family: inherit;
  text-align: left;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.faq-trigger-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 0% 50%, rgba(200, 200, 210, 0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  pointer-events: none;
}

.faq-item.is-open .faq-trigger-glow,
.faq-trigger:hover .faq-trigger-glow {
  opacity: 1;
}

.faq-index {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--silver-dim);
  width: 2rem;
  transition: color 0.4s var(--ease-smooth);
}

.faq-item.is-open .faq-index {
  color: var(--silver);
}

.faq-question {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white-soft);
  line-height: 1.35;
  transition: color 0.4s var(--ease-smooth), transform 0.5s var(--ease-out-expo);
}

.faq-item.is-open .faq-question {
  color: var(--white);
}

.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.45s var(--ease-out-expo),
    background 0.45s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo);
}

.faq-item.is-open .faq-icon {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(200, 200, 210, 0.12);
  transform: rotate(90deg);
}

.faq-icon-line {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--silver);
  border-radius: 1px;
  transition:
    background 0.4s var(--ease-smooth),
    transform 0.55s var(--ease-out-expo),
    opacity 0.4s var(--ease-smooth);
}

.faq-icon-line--h {
  width: 10px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon-line--v {
  width: 1.5px;
  height: 10px;
  transform: translate(-50%, -50%) scaleY(1);
}

.faq-item.is-open .faq-icon-line--v {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.faq-item.is-open .faq-icon-line--h {
  background: var(--white);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease-out-expo);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem 4rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--white-soft);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.5s var(--ease-out-expo) 0.08s,
    transform 0.55s var(--ease-out-expo) 0.05s;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-text {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--silver-dim);
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease-out-expo),
    transform 1s var(--ease-out-expo);
}

.reveal.is-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.35s; }
.reveal--delay-4 { transition-delay: 0.5s; }

/* ─── Responsive ─── */
/* ─── Legal pages ─── */
.legal-page {
  position: relative;
  z-index: 10;
  padding: 7.5rem clamp(1.25rem, 5vw, 3rem) 4rem;
  min-height: 100vh;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  margin-bottom: 2rem;
  transition: color 0.35s var(--ease-smooth);
}

.legal-back:hover {
  color: var(--white);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--white-soft);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .site-header {
    min-height: 58px;
    padding: 0.75rem 1rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .header-nav {
    gap: 1.1rem;
  }

  .header-link {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .wallet-form {
    max-width: 100%;
    padding: 0 0.25rem;
  }

  .wallet-input-wrap {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 6px;
    gap: 0.5rem;
  }

  .wallet-input-wrap::before {
    border-radius: 20px;
  }

  .wallet-input-wrap.is-focused {
    transform: translateY(-2px);
  }

  .wallet-input-field {
    width: 100%;
    min-width: 0;
    padding: 0 0.65rem 0 0.85rem;
    gap: 0.55rem;
    border-radius: 14px;
  }

  .wallet-input-icon svg {
    width: 15px;
    height: 15px;
  }

  .wallet-input {
    width: 100%;
    min-width: 0;
    padding: 0.9rem 0.65rem 0.9rem 0;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    text-align: left;
  }

  .wallet-input::placeholder {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
  }

  .wallet-btn {
    width: auto;
    align-self: center;
    padding: 0.65rem 1.1rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    border-radius: 100px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }

  .wallet-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 24px -8px rgba(200, 200, 210, 0.15);
    transform: translateY(-1px);
  }

  .wallet-btn:active {
    transform: scale(0.98);
  }

  .wallet-btn-shine {
    display: none;
  }

  .wallet-btn-arrow svg {
    width: 12px;
    height: 12px;
  }

  .hero-metrics {
    max-width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .metric {
    padding: 0.25rem 0.5rem;
  }

  .metric-value {
    font-size: 1rem;
    min-height: 1.25rem;
  }

  .metric-label {
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    white-space: normal;
    max-width: 6.5rem;
  }

  .faq-trigger {
    padding: 1.2rem 1.15rem;
    gap: 0.75rem;
  }

  .faq-answer {
    padding: 0 1.15rem 1.25rem 1.15rem;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 0.85rem;
  }

  .title-line {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
