:root {
  --black: #04070a;
  --navy: #08131a;
  --card: #0b1820;
  --white: #f5f7fa;
  --muted: #91a0aa;
  --green: #00f5a0;
  --cyan: #00d9ff;
  --gold: #f7c948;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; }
em { color: var(--green); font-style: normal; }
.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; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 16px; background: var(--green); color: var(--black); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 12px; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { position: relative; padding: 96px 0; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  background: rgba(4, 7, 10, 0.76);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(4, 7, 10, 0.94); }
.nav-wrap { width: min(1400px, calc(100% - 40px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 20px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.brand img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(0, 245, 160, 0.22)); }
.brand > span > span { color: var(--green); }
.brand small { color: var(--cyan); font-size: 0.65em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.desktop-nav a { padding: 10px 11px; border-radius: 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; transition: color 0.2s, background 0.2s; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.language-button, .social-button, .menu-button { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.035); font-size: 12px; font-weight: 900; cursor: pointer; }
.language-button:hover, .social-button:hover { border-color: rgba(0, 245, 160, 0.4); color: var(--green); }
.menu-button { display: none; flex-direction: column; gap: 4px; }
.menu-button span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: 82px 0 0; padding: 24px; background: rgba(4, 7, 10, 0.98); }
.mobile-nav a { display: block; padding: 15px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 142px; background-image: linear-gradient(rgba(4, 7, 10, 0.7), rgba(4, 7, 10, 0.94)), url("/assets/gateway/water-gateway-bg.webp"); background-position: center; background-size: cover; }
.hero:before { content: ""; position: absolute; inset: 0; opacity: 0.2; background-image: linear-gradient(rgba(0, 217, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 217, 255, 0.08) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%); mask-image: linear-gradient(to bottom, black, transparent 85%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.13; pointer-events: none; }
.hero-orb-one { width: 420px; height: 420px; top: 10%; left: 5%; background: var(--green); }
.hero-orb-two { width: 460px; height: 460px; right: 0; bottom: 0; background: var(--cyan); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; animation: pulse 1.8s infinite; }
.eyebrow.gold { color: var(--gold); }
.hero h1 { margin-bottom: 22px; font-size: clamp(42px, 5.2vw, 76px); letter-spacing: -0.04em; }
.hero h1 em { background: linear-gradient(90deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 20px; border: 1px solid transparent; border-radius: 14px; font-size: 14px; font-weight: 850; cursor: pointer; transition: transform 0.2s, border-color 0.2s, opacity 0.2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(100deg, var(--green), var(--cyan)); color: #03100d; box-shadow: 0 10px 30px rgba(0, 245, 160, 0.14); }
.button-secondary { border-color: var(--line); background: rgba(255, 255, 255, 0.04); color: var(--white); }
.button-secondary:hover { border-color: rgba(0, 217, 255, 0.35); }
.hero-facts { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 12px; }
.mini-card { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(8, 19, 26, 0.7); }
.mini-card strong, .mini-card span { display: block; }
.mini-card strong { margin-bottom: 6px; color: var(--green); font-size: 18px; }
.mini-card span { color: var(--muted); font-size: 12px; }
.visual-card { position: relative; padding: 18px; border: 1px solid rgba(247, 201, 72, 0.22); border-radius: 32px; background: linear-gradient(145deg, rgba(11, 24, 32, 0.9), rgba(4, 7, 10, 0.96)); box-shadow: var(--shadow); }
.visual-card:before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: linear-gradient(120deg, rgba(0, 245, 160, 0.25), transparent 35%, rgba(0, 217, 255, 0.22)); filter: blur(22px); opacity: 0.45; }
.dashboard-image { width: 100%; border-radius: 22px; opacity: 0.92; }
.token-float { position: absolute; left: -48px; bottom: -42px; width: min(280px, 52%); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(4, 7, 10, 0.92); box-shadow: var(--shadow); }
.token-float img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.token-float div { padding: 13px; }
.token-float small, .token-float strong { display: block; }
.token-float small { color: var(--gold); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; }
.token-float strong { margin-top: 4px; font-size: 13px; }

.partner-strip { position: relative; z-index: 3; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #061017; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.strip-inner > div { display: grid; gap: 3px; }
.strip-inner small { color: var(--green); font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.strip-inner span { color: var(--muted); font-size: 13px; }
.strip-inner img { border-radius: 8px; }
.ticker { height: 52px; display: flex; align-items: stretch; overflow: hidden; border-bottom: 1px solid var(--line); background: #030609; }
.ticker > strong { z-index: 2; display: flex; align-items: center; padding: 0 22px; color: var(--gold); background: #081116; font-size: 12px; letter-spacing: 0.18em; }
.ticker-window { flex: 1; overflow: hidden; }
.ticker-track { width: max-content; height: 100%; display: flex; align-items: center; gap: 50px; padding-left: 30px; animation: tickerMove 28s linear infinite; }
.ticker-track span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ticker-track b { color: var(--white); }

.section-heading { max-width: 780px; margin: 0 auto 50px; text-align: center; }
.section-heading h2, .video-card h2, .token-copy > h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 58px); letter-spacing: -0.035em; }
.section-heading > p:last-child, .video-card > div > p, .token-copy > p { color: var(--muted); line-height: 1.85; }
.predictions { background: radial-gradient(circle at 50% 0, rgba(0, 217, 255, 0.08), transparent 38%); }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.module-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(11, 24, 32, 0.95), rgba(4, 7, 10, 0.98)); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22); }
.module-card > img { width: 100%; aspect-ratio: 1.7; object-fit: cover; opacity: 0.75; }
.module-copy { padding: 24px; }
.module-copy small, .partner-card small { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.module-copy h3 { margin: 10px 0 9px; font-size: 23px; }
.module-copy p { min-height: 52px; color: var(--muted); font-size: 14px; }
.module-frame { width: 100%; height: min(760px, 82vh); display: block; border: 0; background: #05090c; }
.module-card.module-loaded { grid-column: 1 / -1; }
.module-card.module-loaded > img, .module-card.module-loaded .module-copy p, .module-card.module-loaded .module-copy small { display: none; }
.module-card.module-loaded .module-copy { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; }
.module-card.module-loaded .module-copy h3 { margin: 0; font-size: 18px; }

.video-section { padding-top: 30px; }
.video-card { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 42px; align-items: center; padding: 36px; border: 1px solid rgba(0, 217, 255, 0.2); border-radius: 32px; background: radial-gradient(circle at 20% 20%, rgba(0, 245, 160, 0.1), transparent 35%), linear-gradient(135deg, #08141b, #04070a); }
.video-frame { position: relative; min-height: 300px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 22px; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.token-section { background: radial-gradient(circle at 20% 25%, rgba(247, 201, 72, 0.07), transparent 32%), radial-gradient(circle at 80% 70%, rgba(0, 245, 160, 0.08), transparent 36%); }
.token-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: start; }
.contract-box { margin: 28px 0; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255, 255, 255, 0.035); }
.contract-box small { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.contract-box code { display: block; overflow-wrap: anywhere; padding: 12px; border-radius: 11px; background: rgba(0, 0, 0, 0.32); color: var(--white); font-size: 12px; }
.contract-box button { width: 100%; margin-top: 10px; padding: 10px; border: 0; border-radius: 11px; background: linear-gradient(100deg, var(--green), var(--cyan)); color: var(--black); font-weight: 900; cursor: pointer; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.025); }
.feature-grid article > b { color: var(--green); font-size: 20px; }
.feature-grid h3 { margin: 11px 0 7px; font-size: 15px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.market-card { position: sticky; top: 110px; padding: 22px; border: 1px solid rgba(0, 245, 160, 0.2); border-radius: 28px; background: linear-gradient(150deg, rgba(11, 24, 32, 0.94), rgba(4, 7, 10, 0.98)); box-shadow: var(--shadow); }
.market-card > img { width: 100%; max-height: 280px; margin-bottom: 24px; border-radius: 19px; object-fit: cover; }
.market-card h3 { margin-bottom: 18px; font-size: 28px; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.market-grid article { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.market-grid small, .market-grid strong { display: block; }
.market-grid small { margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.market-grid strong { overflow-wrap: anywhere; font-size: 14px; }

.partners { background: radial-gradient(circle at center, rgba(0, 217, 255, 0.07), transparent 45%); }
.partner-card { display: grid; grid-template-columns: 1fr 0.85fr; gap: 54px; align-items: center; padding: 46px; overflow: hidden; border: 1px solid rgba(0, 245, 160, 0.2); border-radius: 32px; background: linear-gradient(135deg, rgba(11, 24, 32, 0.92), rgba(4, 7, 10, 0.98)); }
.partner-card h3 { margin: 12px 0 20px; font-size: clamp(32px, 4vw, 52px); }
.partner-card p { color: var(--muted); line-height: 1.85; }
.partner-banner { padding: 30px; border: 1px solid var(--line); border-radius: 23px; background: radial-gradient(circle at center, rgba(0, 245, 160, 0.1), transparent 65%); text-align: center; }
.partner-banner img { margin: 0 auto 18px; border-radius: 9px; }
.partner-banner p { margin: 0; font-size: 13px; }

.roadmap { background: linear-gradient(#04070a, #061017); }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roadmap-grid article { min-height: 220px; padding: 25px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent); transition: transform 0.2s, border-color 0.2s; }
.roadmap-grid article:hover { transform: translateY(-4px); border-color: rgba(0, 245, 160, 0.28); }
.roadmap-grid span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: 0.15em; }
.roadmap-grid h3 { margin: 28px 0 12px; font-size: 20px; }
.roadmap-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.site-footer { padding: 70px 0 26px; border-top: 1px solid var(--line); background: #030608; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
.footer-grid .brand { margin-bottom: 18px; }
.footer-grid .brand img { width: 52px; height: 52px; }
.footer-grid p { max-width: 440px; color: var(--muted); font-size: 14px; }
.footer-grid h3 { margin-bottom: 18px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-grid > div > a:not(.brand) { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; }
.footer-grid > div > a:hover { color: var(--green); }
.legal { display: flex; justify-content: space-between; gap: 30px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); color: #66747d; font-size: 11px; }
.legal span:last-child { max-width: 520px; text-align: right; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 50%; background: rgba(8, 19, 26, 0.88); color: var(--green); font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: 0.2s; }
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.noscript { position: fixed; z-index: 999; bottom: 12px; left: 12px; right: 12px; padding: 12px; border: 1px solid var(--gold); background: #16130a; color: var(--white); text-align: center; }
.reveal { opacity: 1; transform: none; }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes pulse { 50% { opacity: 0.4; transform: scale(1.5); } }
@keyframes tickerMove { to { transform: translateX(-50%); } }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .nav-wrap { justify-content: space-between; }
  .menu-button { display: inline-flex; }
  .hero-grid, .token-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 760px; margin: 25px auto 0; }
  .token-float { left: 20px; }
  .market-card { position: relative; top: auto; }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container, .nav-wrap { width: min(100% - 28px, 1180px); }
  .section { padding: 70px 0; }
  .nav-wrap { min-height: 72px; }
  .brand { font-size: 16px; }
  .brand img { width: 47px; height: 47px; }
  .social-button { display: none; }
  .mobile-nav { inset: 72px 0 0; }
  .hero { min-height: auto; padding: 125px 0 90px; }
  .hero-grid { gap: 45px; }
  .hero h1 { font-size: clamp(39px, 12vw, 58px); }
  .lead { font-size: 15px; }
  .button-row .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .token-float { position: relative; left: auto; bottom: auto; width: 90%; margin: -40px auto 0; }
  .strip-inner { flex-direction: column; text-align: center; }
  .ticker > strong { padding: 0 12px; }
  .module-grid, .video-card, .partner-card, .footer-grid { grid-template-columns: 1fr; }
  .module-card.module-loaded .module-copy { display: block; }
  .video-card, .partner-card { padding: 24px; }
  .video-card { gap: 26px; }
  .video-frame { order: -1; }
  .feature-grid, .market-grid { grid-template-columns: 1fr 1fr; }
  .partner-card { gap: 28px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-grid article { min-height: 0; }
  .footer-grid { gap: 30px; }
  .legal { flex-direction: column; }
  .legal span:last-child { text-align: left; }
}

@media (max-width: 420px) {
  .feature-grid, .market-grid { grid-template-columns: 1fr; }
  .language-button, .menu-button { min-width: 39px; height: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(4, 7, 10, 0.98); }
}
