﻿/* ==========================================================================
   GaurdWallet landing — single stylesheet, no framework.
   Tokens mirror packages/ui/src/theme.ts (--gw-* custom properties).
   ========================================================================== */

/* ---- Self-hosted fonts (no CDN) ---------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --gw-bg: #0c0a08;
  --gw-surface: #171310;
  --gw-surface-2: #242018;
  --gw-border: #2e2820;
  --gw-border-strong: #423a2d;
  --gw-accent: #c4943a;
  --gw-accent-hover: #d9ae55;
  --gw-accent-active: #a97e2f;
  --gw-accent-muted: rgba(196, 148, 58, 0.14);
  --gw-on-accent: #14100a;
  --gw-text: #ddd8ce;
  --gw-text-2: #9a9188;
  --gw-text-3: #8a8178;
  --gw-success: #63b57f;
  --gw-font-ui: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gw-font-mono: 'JetBrains Mono', 'Cascadia Mono', ui-monospace, Consolas, monospace;
  --gw-radius-md: 8px;
  --gw-radius-lg: 10px;
  --gw-radius-xl: 14px;
  --gw-shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
  --gw-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --gw-glow: 0 0 0 1px rgba(196, 148, 58, 0.28), 0 4px 20px rgba(196, 148, 58, 0.22);
  --gw-focus-ring: 0 0 0 3px rgba(196, 148, 58, 0.35);
  --gw-transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --gw-header-h: 64px;
  /* Fixed dark frame for the illustration renders — intentionally not
     overridden by the light theme below, since the artwork itself has a
     dark background and needs a matching card in either theme. */
  --gw-visual-frame-bg: #171310;
  --gw-visual-frame-border: #2e2820;
  color-scheme: dark;
}

[data-theme='light'] {
  --gw-bg: #f6f2ea;
  --gw-surface: #fdfbf7;
  --gw-surface-2: #ffffff;
  --gw-border: #e3dccd;
  --gw-border-strong: #cfc5ae;
  --gw-accent: #a87c2b;
  --gw-accent-hover: #c4943a;
  --gw-accent-active: #8f6a25;
  --gw-accent-muted: rgba(168, 124, 43, 0.12);
  --gw-on-accent: #fffdf8;
  --gw-text: #2a251c;
  --gw-text-2: #6d6557;
  --gw-text-3: #746c5c;
  --gw-success: #3d8f63;
  --gw-shadow-md: 0 6px 16px rgba(90, 75, 45, 0.14);
  --gw-shadow-lg: 0 16px 40px rgba(90, 75, 45, 0.18);
  --gw-glow: 0 0 0 1px rgba(168, 124, 43, 0.25), 0 4px 20px rgba(168, 124, 43, 0.18);
  color-scheme: light;
}

/* System preference applies until the visitor picks a theme explicitly. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --gw-bg: #f6f2ea;
    --gw-surface: #fdfbf7;
    --gw-surface-2: #ffffff;
    --gw-border: #e3dccd;
    --gw-border-strong: #cfc5ae;
    --gw-accent: #a87c2b;
    --gw-accent-hover: #c4943a;
    --gw-accent-active: #8f6a25;
    --gw-accent-muted: rgba(168, 124, 43, 0.12);
    --gw-on-accent: #fffdf8;
    --gw-text: #2a251c;
    --gw-text-2: #6d6557;
    --gw-text-3: #746c5c;
    --gw-success: #3d8f63;
    --gw-shadow-md: 0 6px 16px rgba(90, 75, 45, 0.14);
    --gw-shadow-lg: 0 16px 40px rgba(90, 75, 45, 0.18);
    --gw-glow: 0 0 0 1px rgba(168, 124, 43, 0.25), 0 4px 20px rgba(168, 124, 43, 0.18);
    color-scheme: light;
  }
}

/* ---- Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--gw-header-h) + 16px);
}

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

body {
  margin: 0;
  background: var(--gw-bg);
  color: var(--gw-text);
  font-family: var(--gw-font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gw-accent);
  text-decoration: none;
  transition: color var(--gw-transition);
}

a:hover {
  color: var(--gw-accent-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--gw-focus-ring);
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--gw-font-mono);
  font-size: 0.88em;
  background: var(--gw-accent-muted);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

/* ---- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1300;
  background: var(--gw-accent);
  color: var(--gw-on-accent);
  padding: 0.6rem 1.1rem;
  border-radius: var(--gw-radius-md);
  font-weight: 600;
  transition: top var(--gw-transition);
}

.skip-link:focus-visible {
  top: 1rem;
  color: var(--gw-on-accent);
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--gw-header-h);
  border-bottom: 1px solid var(--gw-border);
  background: var(--gw-bg);
  background: color-mix(in srgb, var(--gw-bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gw-text);
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--gw-text);
}

.brand .brand-gold {
  color: var(--gw-accent);
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--gw-text-2);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--gw-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.site-nav + .header-actions {
  margin-left: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-md);
  background: transparent;
  color: var(--gw-text-2);
  cursor: pointer;
  transition: color var(--gw-transition), border-color var(--gw-transition);
}

.icon-btn:hover {
  color: var(--gw-text);
  border-color: var(--gw-border-strong);
}

/* Theme toggle shows the icon of the theme it switches TO. */
.theme-toggle .icon-sun {
  display: none;
}

[data-theme='light'] .theme-toggle .icon-moon {
  display: none;
}

[data-theme='light'] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* Mobile nav drawer */
.nav-drawer {
  position: fixed;
  inset: var(--gw-header-h) 0 auto 0;
  z-index: 990;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem 1.4rem;
  background: var(--gw-bg);
  border-bottom: 1px solid var(--gw-border);
  box-shadow: var(--gw-shadow-lg);
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  color: var(--gw-text);
  padding: 0.65rem 0.4rem;
  border-radius: var(--gw-radius-md);
  font-size: 1.05rem;
}

.nav-drawer a:hover {
  background: var(--gw-accent-muted);
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }
  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--gw-radius-lg);
  border: 1px solid transparent;
  font-family: var(--gw-font-ui);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--gw-transition), color var(--gw-transition),
    border-color var(--gw-transition), box-shadow var(--gw-transition);
}

.btn-primary {
  background: var(--gw-accent);
  color: var(--gw-on-accent);
  box-shadow: var(--gw-glow);
}

.btn-primary:hover {
  background: var(--gw-accent-hover);
  color: var(--gw-on-accent);
}

.btn-secondary {
  border-color: var(--gw-border-strong);
  color: var(--gw-text);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--gw-accent);
  color: var(--gw-accent-hover);
}

/* Store buttons before the listings go live: same footprint, clearly inert. */
.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  user-select: none;
}

.btn-disabled:hover {
  background: var(--gw-accent);
}

.btn-soon {
  font-family: var(--gw-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.14rem 0.42rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.4rem, 7vw, 6rem);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 50% 30%, rgba(196, 148, 58, 0.18), transparent 70%),
    radial-gradient(30% 30% at 78% 12%, rgba(196, 148, 58, 0.10), transparent 70%),
    radial-gradient(26% 30% at 20% 20%, rgba(196, 148, 58, 0.07), transparent 70%);
  pointer-events: none;
  animation: hero-breathe 9s ease-in-out infinite;
}

@keyframes hero-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero > .container {
  position: relative;
}

.hero-logo {
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 6px 26px rgba(196, 148, 58, 0.35));
}

.hero h1 {
  max-width: 21ch;
  margin-inline: auto;
}

.hero h1 .accent {
  color: var(--gw-accent);
}

/* Kinetic headline: soft word-by-word rise + a slow gold sheen on the accent. */
.hero-kinetic {
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-kinetic .accent {
  background: linear-gradient(100deg, #9a6f28 0%, #ffe6a3 42%, #fff3d6 50%, #ffe6a3 58%, #9a6f28 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hero-sheen 4.4s linear infinite;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-sheen {
  from { background-position: 150% 50%; }
  to { background-position: -150% 50%; }
}

/* Animated chip row of supported networks. */
.hero-chains {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.8rem auto 0;
  padding: 0;
  max-width: 46rem;
}

.hero-chains li {
  font-family: var(--gw-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gw-text-2);
  border: 1px solid var(--gw-border);
  background: color-mix(in srgb, var(--gw-accent) 6%, transparent);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  opacity: 0;
  animation: hero-chip-in 0.5s ease both;
  animation-delay: calc(0.25s + var(--i) * 0.06s);
}

.hero-chains li.hero-chains-more {
  color: var(--gw-accent);
  border-color: color-mix(in srgb, var(--gw-accent) 40%, transparent);
}

@keyframes hero-chip-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Trust highlights strip under the CTA. */
.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1rem;
  margin: 1.6rem auto 0;
  padding: 0;
  font-family: var(--gw-font-mono);
  font-size: 0.82rem;
  color: var(--gw-text-3);
}

.hero-trust li {
  position: relative;
  padding-left: 1.1rem;
}

.hero-trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gw-accent);
  box-shadow: 0 0 8px rgba(196, 148, 58, 0.6);
}

.hero-chains li {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.hero-chains li:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--gw-accent) 55%, transparent);
  background: color-mix(in srgb, var(--gw-accent) 12%, transparent);
}

/* Animated app mockup */
.hero-mock {
  position: relative;
  width: min(92vw, 420px);
  margin: 3rem auto 0;
  animation: hero-mock-float 6s ease-in-out infinite;
}

.hero-mock-glow {
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(50% 50% at 50% 40%, rgba(196, 148, 58, 0.28), transparent 70%);
  filter: blur(14px);
  z-index: 0;
  animation: hero-breathe 7s ease-in-out infinite;
}

.hero-mock-win {
  position: relative;
  z-index: 1;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--gw-accent) 28%, var(--gw-border));
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--gw-surface-2, #171310) 88%, #000);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(196, 148, 58, 0.06);
}

.hero-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gw-border);
  background: color-mix(in srgb, var(--gw-accent) 5%, transparent);
}
.hero-mock-bar > span {
  width: 9px; height: 9px; border-radius: 50%;
  background: color-mix(in srgb, var(--gw-accent) 45%, transparent);
}
.hero-mock-url {
  margin-left: 10px;
  font-family: var(--gw-font-mono);
  font-size: 0.72rem;
  color: var(--gw-text-3);
}

.hero-mock-body { padding: 16px 16px 18px; }

.hero-mock-total {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 14px; margin-bottom: 10px;
  border-bottom: 1px solid var(--gw-border);
}
.hero-mock-label {
  font-family: var(--gw-font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gw-text-3);
}
.hero-mock-value {
  font-size: 1.6rem; font-weight: 700; color: var(--gw-text);
  font-variant-numeric: tabular-nums;
}

.hero-mock-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  opacity: 0;
  animation: hero-mock-rowin 0.5s ease both;
}
.hero-mock-row:nth-child(2) { animation-delay: 0.5s; }
.hero-mock-row:nth-child(3) { animation-delay: 0.65s; }
.hero-mock-row:nth-child(4) { animation-delay: 0.8s; }
.hero-mock-row:nth-child(5) { animation-delay: 0.95s; }
.hero-mock-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--c) 85%, #000);
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent);
  flex-shrink: 0;
}
.hero-mock-name { color: var(--gw-text-2); font-size: 0.92rem; }
.hero-mock-amt {
  margin-left: auto; font-family: var(--gw-font-mono);
  font-size: 0.85rem; color: var(--gw-text); font-variant-numeric: tabular-nums;
}

.hero-mock-cta {
  margin-top: 14px; text-align: center;
  padding: 11px; border-radius: 10px;
  font-weight: 600; color: #1a1408;
  background: linear-gradient(100deg, #d9ae55, #c4943a);
  box-shadow: 0 8px 24px -8px rgba(196, 148, 58, 0.7);
  animation: hero-cta-pulse 3s ease-in-out infinite;
}

@keyframes hero-mock-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes hero-mock-rowin {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes hero-cta-pulse {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(196, 148, 58, 0.5); }
  50% { box-shadow: 0 8px 30px -6px rgba(196, 148, 58, 0.95); }
}

/* ---- Real-app demo (right column) ---- */
.hero-app {
  position: relative;
  width: min(92vw, 360px);
  margin: 3rem auto 0;
  flex-shrink: 0;
  animation: hero-mock-float 6s ease-in-out infinite;
}
.hero-app-glow {
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(52% 48% at 50% 38%, rgba(196, 148, 58, 0.3), transparent 70%);
  filter: blur(16px);
  z-index: 0;
  animation: hero-breathe 7s ease-in-out infinite;
}
.hero-app-phone {
  position: relative;
  z-index: 1;
  text-align: left;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--gw-accent) 24%, var(--gw-border));
  background: #0c0a08;
  padding: 16px 15px 8px;
  box-shadow: 0 40px 90px -34px rgba(0,0,0,0.85), inset 0 0 0 4px rgba(20,16,12,0.9);
  overflow: hidden;
}
.hero-app-top {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--gw-text-2); margin-bottom: 16px;
}
.hero-app-brand { font-size: 0.95rem; color: var(--gw-text); }
.hero-app-brand b { color: var(--gw-accent); }
.hero-app-acct {
  margin-left: auto; font-family: var(--gw-font-mono); font-size: 0.72rem;
  border: 1px solid var(--gw-border); border-radius: 999px; padding: 3px 9px;
}
.hero-app-badge {
  font-family: var(--gw-font-mono); font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: #1a1408; background: var(--gw-accent);
  border-radius: 4px; padding: 2px 5px;
}
.hero-app-portfolio {
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--gw-border); border-radius: 14px;
  padding: 14px 16px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--gw-accent) 4%, transparent);
}
.hero-app-plabel {
  font-family: var(--gw-font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gw-text-3);
}
.hero-app-pvalue { font-size: 1.9rem; font-weight: 700; color: var(--gw-text); font-variant-numeric: tabular-nums; }
.hero-app-cents { color: var(--gw-text-3); font-size: 1.2rem; }
.hero-app-pchange { font-family: var(--gw-font-mono); font-size: 0.72rem; color: #4ec98a; }
.hero-app-assets-label {
  font-family: var(--gw-font-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gw-text-3); margin: 0 2px 8px;
}
.hero-app-assets { list-style: none; margin: 0; padding: 0; }
.hero-app-assets li {
  display: flex; align-items: center; gap: 11px; padding: 9px 4px;
  border-top: 1px solid var(--gw-border);
  opacity: 0; animation: hero-mock-rowin 0.5s ease both;
}
.hero-app-assets li:first-child { border-top: none; }
.hero-app-assets li:nth-child(1) { animation-delay: 0.45s; }
.hero-app-assets li:nth-child(2) { animation-delay: 0.58s; }
.hero-app-assets li:nth-child(3) { animation-delay: 0.71s; }
.hero-app-assets li:nth-child(4) { animation-delay: 0.84s; }
.hero-app-assets li:nth-child(5) { animation-delay: 0.97s; }
.hero-app-assets img { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.ha-n { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--gw-text); line-height: 1.25; }
.ha-n em { font-style: normal; font-family: var(--gw-font-mono); font-size: 0.7rem; color: var(--gw-text-3); }
.ha-v { display: flex; flex-direction: column; margin-left: auto; text-align: right; font-family: var(--gw-font-mono); font-size: 0.82rem; color: var(--gw-text); line-height: 1.25; }
.ha-v em { font-style: normal; font-size: 0.68rem; color: #4ec98a; }
.hero-app-nav {
  display: flex; justify-content: space-between; gap: 4px;
  margin: 10px -15px 0; padding: 10px 8px 6px;
  border-top: 1px solid var(--gw-border);
}
.hero-app-nav button {
  flex: 1; background: none; border: none; cursor: pointer;
  font-size: 0.6rem; color: var(--gw-text-3); font-family: var(--gw-font-mono);
  padding: 5px 2px; border-radius: 7px; transition: color 0.15s, background 0.15s;
}
.hero-app-nav button:hover { color: var(--gw-text-2); }
.hero-app-nav button.is-on {
  color: var(--gw-accent);
  background: color-mix(in srgb, var(--gw-accent) 10%, transparent);
}

/* Demo panels */
.hero-app-panel { display: none; animation: hero-panel-in 0.35s ease both; }
.hero-app-panel.is-active { display: block; }
@keyframes hero-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-app-create {
  display: block; text-align: center; text-decoration: none;
  margin-top: 14px; padding: 11px; border-radius: 10px;
  font-weight: 600; color: #1a1408;
  background: linear-gradient(100deg, #d9ae55, #c4943a);
  box-shadow: 0 8px 24px -8px rgba(196, 148, 58, 0.7);
  animation: hero-cta-pulse 3s ease-in-out infinite;
}

.hero-app-field, .hero-app-set {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--gw-border);
  font-size: 0.82rem; color: var(--gw-text-3);
}
.hero-app-field b, .hero-app-set b {
  color: var(--gw-text); font-weight: 600; font-family: var(--gw-font-mono);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-app-field b img { border-radius: 50%; }
.hero-app-field em { font-style: normal; color: var(--gw-text-3); font-size: 0.72rem; margin-left: 4px; }
.hero-app-fee {
  display: flex; gap: 6px; margin-top: 12px;
  font-family: var(--gw-font-mono); font-size: 0.72rem;
}
.hero-app-fee span {
  flex: 1; text-align: center; padding: 8px 0; border-radius: 8px;
  border: 1px solid var(--gw-border); color: var(--gw-text-3);
}
.hero-app-fee span.on {
  color: var(--gw-accent); border-color: color-mix(in srgb, var(--gw-accent) 45%, transparent);
  background: color-mix(in srgb, var(--gw-accent) 8%, transparent);
}
.hero-app-qr {
  width: 130px; height: 130px; margin: 6px auto 14px; border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, var(--gw-text) 0 6px, transparent 6px 12px),
    repeating-linear-gradient(90deg, var(--gw-text) 0 6px, transparent 6px 12px);
  background-blend-mode: multiply;
  opacity: 0.85; padding: 10px; box-sizing: border-box;
  position: relative;
}
.hero-app-qr span {
  position: absolute; inset: 40%; background: var(--gw-accent); border-radius: 3px;
}
.hero-app-addr {
  text-align: center; font-family: var(--gw-font-mono); font-size: 0.8rem;
  color: var(--gw-text); word-break: break-all;
}
.hero-app-hint {
  margin: 8px 0 0; font-size: 0.72rem; color: var(--gw-text-3); text-align: center;
}
.hero-app-hist { list-style: none; margin: 0; padding: 0; }
.hero-app-hist li {
  display: flex; justify-content: space-between; padding: 11px 0;
  border-bottom: 1px solid var(--gw-border);
  font-size: 0.85rem; font-family: var(--gw-font-mono); color: var(--gw-text);
}
.hero-app-hist .ha-in { color: #4ec98a; }
.hero-app-hist .ha-out { color: var(--gw-text-2); }

/* Two-column hero on desktop: text left, app right */
@media (min-width: 981px) {
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    text-align: left;
  }
  .hero > .container { flex: 1 1 auto; max-width: 600px; margin: 0; }
  .hero-logo { margin-left: 0; }
  .hero h1 { margin-inline: 0; }
  .hero-sub { margin-inline: 0; }
  .hero-chains, .hero-trust, .hero-cta { justify-content: flex-start; margin-left: 0; }
  .hero-app { margin: 0; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-kinetic,
  .hero-kinetic .accent,
  .hero-chains li,
  .hero-app,
  .hero-app-glow,
  .hero-app-assets li,
  .hero-app-panel,
  .hero-app-create {
    animation: none;
  }
  .hero-kinetic .accent { color: var(--gw-accent); -webkit-text-fill-color: currentColor; }
  .hero-chains li, .hero-app-assets li { opacity: 1; }
}

.hero-sub {
  max-width: 56ch;
  margin: 1.1rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gw-text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--gw-text-3);
  font-family: var(--gw-font-mono);
}

/* Decorative shield illustration behind the hero copy. The source PNG/WebP
   has a real alpha channel now (background keyed out with ffmpeg colorkey,
   not a flat near-black fill) so there is no rectangular canvas edge to
   hide — no CSS mask trick needed. Sized modestly and pushed up behind the
   logo/title only, well clear of the CTA row. Hidden below 900px, where the
   hero column is too narrow for anything beside/behind the text. */
.hero-visual {
  position: absolute;
  top: 74%;
  left: 50%;
  width: min(104vw, 1080px);
  aspect-ratio: 1024 / 683;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 45%, transparent 78%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: blur(2px) drop-shadow(0 0 60px rgba(196, 148, 58, 0.3));
}

[data-theme='light'] .hero-visual {
  opacity: 0.4;
}

@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }
}

/* ---- 404 page ------------------------------------------------------------ */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* ---- Sections ----------------------------------------------------------- */
.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section + .section {
  border-top: 1px solid var(--gw-border);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head .kicker {
  display: block;
  font-family: var(--gw-font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gw-accent);
  margin-bottom: 0.7rem;
}

.section-head p {
  color: var(--gw-text-2);
  margin-bottom: 0;
}

/* ---- Networks strip ------------------------------------------------------ */
.networks {
  padding: clamp(2.2rem, 5vw, 3.4rem) 0;
  border-top: 1px solid var(--gw-border);
}

.networks-caption {
  text-align: center;
  font-family: var(--gw-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gw-text-3);
  margin: 0 0 1.6rem;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .network-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.network-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.4rem;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  background: var(--gw-surface);
  transition: border-color var(--gw-transition), transform var(--gw-transition);
}

.network-grid li:hover {
  border-color: var(--gw-border-strong);
  transform: translateY(-2px);
}

.network-grid svg {
  color: var(--gw-accent);
}

.network-grid span {
  font-size: 0.78rem;
  color: var(--gw-text-2);
  letter-spacing: 0.02em;
}

.networks-note {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gw-text-3);
}

/* ---- Feature grid -------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 680px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.4rem;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
  transition: border-color var(--gw-transition), transform var(--gw-transition);
}

.feature-card:hover {
  border-color: var(--gw-border-strong);
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--gw-radius-lg);
  background: var(--gw-accent-muted);
  color: var(--gw-accent);
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* ---- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--gw-font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gw-accent);
  margin-bottom: 0.8rem;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* ---- Security deep-dive --------------------------------------------------- */
.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
}

@media (min-width: 900px) {
  .security-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.security-list h3 {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.security-list h3::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gw-accent);
  transform: translateY(-1px);
}

.security-list p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* Padlock illustration above the spec sheet — framed in a fixed dark card
   (see --gw-visual-frame-* tokens) so it reads as intentional artwork
   rather than a stray dark rectangle on the light theme. */
.security-visual-frame {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 1.8rem;
  padding: 0.9rem;
  border-radius: var(--gw-radius-xl);
  overflow: hidden;
  background: var(--gw-visual-frame-bg);
  border: 1px solid var(--gw-visual-frame-border);
  box-shadow: var(--gw-shadow-lg);
}

.security-visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--gw-radius-xl) - 6px);
}

.security-panel {
  background: var(--gw-surface);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
  padding: 1.6rem 1.5rem;
  font-family: var(--gw-font-mono);
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--gw-text-2);
  box-shadow: var(--gw-shadow-md);
}

.security-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.2rem;
  row-gap: 0.35rem;
}

.security-panel dt {
  color: var(--gw-text-3);
  white-space: nowrap;
}

.security-panel dd {
  margin: 0;
  color: var(--gw-text);
  overflow-wrap: anywhere;
}

.security-note {
  margin: 1.6rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gw-border-strong);
  border-left: 3px solid var(--gw-accent);
  border-radius: var(--gw-radius-md);
  color: var(--gw-text-2);
  font-size: 0.93rem;
  background: var(--gw-accent-muted);
}

/* ---- Why us ---------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 820px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-xl);
  background: var(--gw-surface);
}

.why-item svg {
  flex: none;
  color: var(--gw-success);
  margin-top: 0.2rem;
}

.why-item h3 {
  margin-bottom: 0.25rem;
}

.why-item p {
  margin: 0;
  color: var(--gw-text-2);
  font-size: 0.96rem;
}

/* ---- FAQ -------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  background: var(--gw-surface);
  transition: border-color var(--gw-transition);
}

.faq-list details[open] {
  border-color: var(--gw-border-strong);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  border-radius: var(--gw-radius-lg);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  flex: none;
  font-family: var(--gw-font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gw-accent);
  transition: transform var(--gw-transition);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list .faq-answer {
  padding: 0 1.3rem 1.15rem;
  color: var(--gw-text-2);
  font-size: 0.97rem;
}

.faq-list .faq-answer p {
  margin: 0 0 0.6em;
}

.faq-list .faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- Bottom CTA ---------------------------------------------------------- */
.cta-final {
  text-align: center;
}

.cta-final .hero-cta {
  margin-top: 1.8rem;
}

/* ---- Consent banner -------------------------------------------------------- */
/* position: fixed — occupies no space in the flow, so it can never cause CLS. */
.consent-banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  width: min(400px, calc(100vw - 2.5rem));
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--gw-surface-2);
  border: 1px solid var(--gw-border-strong);
  border-radius: var(--gw-radius-xl);
  box-shadow: var(--gw-shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.consent-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gw-text-2);
}

.consent-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
}

.consent-actions .btn {
  flex: 1;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .consent-banner {
    right: auto;
    left: 50%;
    bottom: 1rem;
    transform: translate(-50%, 12px);
  }
  .consent-banner.is-visible {
    transform: translate(-50%, 0);
  }
}

/* ---- Footer ---------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--gw-border);
  padding: 2.8rem 0 2.2rem;
  color: var(--gw-text-2);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand p {
  max-width: 34ch;
  margin: 0.8rem 0 0;
  color: var(--gw-text-3);
}

.site-footer h2 {
  font-size: 0.82rem;
  font-family: var(--gw-font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gw-text-3);
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer ul a {
  color: var(--gw-text-2);
}

.site-footer ul a:hover {
  color: var(--gw-accent-hover);
}

.footer-bottom {
  border-top: 1px solid var(--gw-border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  color: var(--gw-text-3);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}
