/* ==========================================================================
   Hyperliquid Switzerland — styles
   Design language: deep pine-green + mint, Playfair Display serif display,
   Inter body, white pill nav, light gradient feature section, dark stack.
   ========================================================================== */

:root {
  --pine-950: #041715;
  --pine-900: #06201f;
  --pine-800: #0a2e29;
  --pine-700: #0e3a33;
  --mint-500: #2dd4bf;
  --mint-400: #5eead4;
  --mint-300: #7ff0da;
  --mint-200: #a5f3e3;
  --mint-100: #d9fbf2;
  --ink: #f2fbf8;
  --ink-dim: rgba(233, 255, 248, 0.66);
  --ink-faint: rgba(233, 255, 248, 0.45);
  --line-light: rgba(255, 255, 255, 0.12);
  --paper-ink: #12312b;
  --paper-dim: rgba(18, 49, 43, 0.66);
  --paper-faint: rgba(18, 49, 43, 0.45);
  --paper-line: rgba(18, 49, 43, 0.14);
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--pine-900);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  background: var(--mint-200);
  color: #062a24;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Navigation — white pill, fixed
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(760px, 100%);
  min-height: 48px;
  padding: 8px 10px 8px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(3, 24, 21, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0c2b26;
  white-space: nowrap;
}

.brand-mark { color: #0d2b26; display: inline-flex; }
.brand-mark svg path { fill: #0d2b26; }
.brand-mark-light, .brand-mark-light svg path { color: var(--mint-300); fill: var(--mint-300); }

.brand-word {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #0c2b26;
}
.brand-word em { font-style: italic; }
.brand-word-light { color: var(--ink); }

.brand-ch {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f8f7c;
  background: var(--mint-100);
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
}
.brand-ch-light { color: var(--mint-300); background: rgba(94, 234, 212, 0.12); border-color: rgba(94, 234, 212, 0.3); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
}
.nav-menu a { text-decoration: none; color: #24443e; font-weight: 500; }
.nav-menu a:hover { color: #0f8f7c; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: #0c2b26;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-mint {
  background: var(--mint-200);
  color: #05302a;
  box-shadow: 0 4px 18px rgba(94, 234, 212, 0.25);
}
.btn-mint:hover { background: var(--mint-100); box-shadow: 0 6px 24px rgba(94, 234, 212, 0.4); }

.btn-ghost {
  border: 1px solid rgba(233, 255, 248, 0.35);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--mint-400); color: var(--mint-300); }

/* ==========================================================================
   Hero — dark pine with soft mint blobs
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 82% -12%, rgba(14, 58, 51, 0.95), transparent 62%),
    radial-gradient(900px 620px at 12% 108%, rgba(45, 212, 191, 0.34), transparent 60%),
    radial-gradient(1400px 900px at 50% 38%, var(--pine-800), var(--pine-900) 72%);
  padding: calc(var(--nav-h) + 40px) 24px 60px;
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.85; }
.blob-1 { width: 640px; height: 640px; left: -140px; top: 20%; background: radial-gradient(circle at 35% 35%, #0f4a40, transparent 68%); }
.blob-2 { width: 520px; height: 520px; right: -100px; top: -120px; background: radial-gradient(circle at 60% 40%, #0d423a, transparent 66%); }
.blob-3 { width: 700px; height: 700px; left: -180px; bottom: -220px; background: radial-gradient(circle at 45% 45%, rgba(45, 212, 191, 0.55), transparent 65%); }
.blob-4 { width: 420px; height: 420px; right: 16%; bottom: -140px; background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.3), transparent 65%); }

.hero-core {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.hero-mark {
  display: inline-block;
  color: var(--mint-300);
  margin-bottom: 26px;
  filter: drop-shadow(0 0 24px rgba(94, 234, 212, 0.55));
}
.hero-mark svg path { fill: var(--mint-300); }

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 76px);
  line-height: 1.04;
  margin: 0 0 26px;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.hero-sub {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 430px;
  margin: 0 auto 34px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   App / features section — light gradient
   ========================================================================== */
.app-section {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf7 42%, #d8f3ea 100%);
  color: var(--paper-ink);
  padding: 96px 24px 120px;
}

.section-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
  text-align: center;
  margin: 0 auto 64px;
  max-width: 820px;
  color: var(--paper-ink);
}

.spaced-mint {
  color: #149b86;
  letter-spacing: 0.16em;
  font-size: 0.92em;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.feature-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex: none;
  width: 46px;
  height: 46px;
  color: #2fb3a0;
  display: inline-flex;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  margin: 0 0 8px;
  color: var(--paper-ink);
  line-height: 1.25;
}

.feature-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--paper-dim);
  max-width: 220px;
}

.app-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #06231f;
  box-shadow:
    0 30px 70px -18px rgba(8, 46, 40, 0.45),
    0 0 0 1px rgba(8, 46, 40, 0.08);
}
.app-shot img { display: block; width: 100%; }

/* ==========================================================================
   Stack section — dark, isometric visual, notes, stats
   ========================================================================== */
.stack-section {
  background:
    radial-gradient(1000px 700px at 88% 8%, rgba(14, 58, 51, 0.9), transparent 60%),
    linear-gradient(180deg, var(--pine-900) 0%, #072a25 55%, var(--pine-900) 100%);
  padding: 90px 24px 110px;
}

.stack-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  text-align: center;
  margin: 0 0 56px;
  color: var(--ink);
}
.stack-title em { font-style: italic; }

.stack-grid {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(340px, 1fr) minmax(200px, 300px);
  gap: 30px 44px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
}

.stack-note {
  border-top: 1px solid var(--line-light);
  padding-top: 14px;
}
.stack-note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}

.stack-visual { position: relative; }
.stack-visual svg { width: 100%; height: auto; display: block; }
.stack-visual svg text { font-family: var(--sans); letter-spacing: 0.02em; }
.stack-visual.spacer { position: absolute; inset: 0; visibility: hidden; }

/* Stats bar */
.stats {
  max-width: 900px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 28px;
}
.stat + .stat { border-left: 1px solid var(--line-light); }

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #35c9b4;
}

.stat-value {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* ==========================================================================
   Switzerland section — light
   ========================================================================== */
.swiss-section {
  background: linear-gradient(180deg, #ffffff 0%, #eefbf6 45%, #d9f4eb 100%);
  color: var(--paper-ink);
  padding: 100px 24px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #149b86;
  margin: 0 0 18px;
}

.section-heading-dark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 auto 18px;
  max-width: 760px;
  line-height: 1.22;
}
.section-heading-dark strong { font-weight: 600; }

.swiss-lead {
  max-width: 640px;
  margin: 0 auto 56px;
  font-size: 15px;
  color: var(--paper-dim);
}

.swiss-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.swiss-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--paper-line);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(6px);
}

.swiss-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: #17a08b;
  background: rgba(94, 234, 212, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.swiss-icon svg { width: 26px; height: 26px; }

.swiss-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
}
.swiss-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--paper-dim);
}

/* ==========================================================================
   FAQ — dark
   ========================================================================== */
.faq-section {
  background: var(--pine-900);
  padding: 100px 24px 90px;
}

.faq-list {
  max-width: 780px;
  margin: 54px auto 0;
  border-top: 1px solid var(--line-light);
}

.faq-item { border-bottom: 1px solid var(--line-light); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--mint-300); }

.faq-chevron {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}
.faq-chevron::before,
.faq-chevron::after {
  content: "";
  position: absolute;
  background: var(--mint-400);
  transition: transform 0.25s ease;
}
.faq-chevron::before { left: 0; top: 5px; width: 12px; height: 1.6px; }
.faq-chevron::after { left: 5px; top: 0; width: 1.6px; height: 12px; }
.faq-item[open] .faq-chevron::after { transform: rotate(90deg); }

.faq-answer {
  margin: 0;
  padding: 0 4px 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 680px;
}

.faq-cta {
  text-align: center;
  margin-top: 60px;
}
.faq-cta p { color: var(--ink-dim); margin: 0 0 18px; }

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  background:
    radial-gradient(900px 600px at 20% 110%, rgba(45, 212, 191, 0.25), transparent 60%),
    var(--pine-900);
}
.notfound h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 500;
  margin: 24px 0 16px;
}
.notfound p { color: var(--ink-dim); max-width: 460px; margin: 0 auto 30px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--pine-950);
  padding: 64px 24px 40px;
  border-top: 1px solid var(--line-light);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 320px; }
.footer-brand > span { vertical-align: middle; }
.footer-tag {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #35c9b4;
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  text-decoration: none;
  font-size: 13.5px;
  color: var(--ink-dim);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--mint-300); }
.footer-col p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-dim); }

.footer-legal {
  border-top: 1px solid var(--line-light);
  padding-top: 26px;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.footer-legal p { margin: 0; }
.footer-legal-links { margin-top: 8px; }
.footer-legal-links a { color: var(--ink-dim); text-decoration: none; }
.footer-legal-links a:hover { color: var(--mint-300); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob { filter: blur(40px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .app-grid {
    grid-template-columns: 1fr 1.7fr;
  }
  .app-grid .feature-col:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 40px;
    max-width: 720px;
    justify-content: center;
  }
  .stack-grid {
    grid-template-columns: 1fr 1.4fr 1fr;
  }
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 18px 44px rgba(3, 24, 21, 0.25);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
  }
  .nav-menu .btn { margin-top: 8px; }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .app-grid .feature-col:last-child {
    flex-direction: column;
    gap: 40px;
    max-width: 420px;
    margin: 0 auto;
  }

  .stack-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .stack-visual { order: -1; max-width: 640px; margin: 0 auto; }
  .stack-visual.spacer { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-light); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-light); }

  .swiss-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-ch { display: none; }
  .hero-title { font-size: 40px; }
  .feature-text { max-width: none; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(n + 2) { border-top: 1px solid var(--line-light); }
  .stat:nth-child(3) { border-top: 1px solid var(--line-light); }
}