:root {
  --black: #040506;
  --white: #FFFFFF;
  --grey: #A1A1A1;
  --green: #14FF85;
  --red: #ea3943;
  --dark-grey: #1A1C20;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--grey);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }

.accent { color: var(--green); }
code {
  font-family: 'Space Grotesk', monospace; font-size: 0.92em;
  color: var(--green); background: rgba(20,255,133,0.08);
  padding: 1px 6px; border-radius: 5px;
}

/* film grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto;
  padding: 22px 32px;
  background: rgba(4, 5, 6, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  color: var(--white); font-size: 19px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(20, 255, 133, 0.5);
}
.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--grey); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* LANG SWITCH */
.lang-switch {
  display: inline-flex; align-items: center;
  background: var(--dark-grey); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px;
}
.lang-btn {
  appearance: none; cursor: pointer;
  background: transparent; border: none;
  color: var(--grey); font: 600 13px/1 "Space Grotesk", sans-serif;
  letter-spacing: 0.04em; padding: 7px 12px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.is-active { background: var(--green); color: var(--black); }

/* LOGIN MODAL */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,3,4,0.78); backdrop-filter: blur(6px); }
.modal-card {
  position: relative; z-index: 1; width: 90%; max-width: 420px;
  background: #0c0d10; border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 30px; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.modal-x {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--grey); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px;
}
.modal-x:hover { color: var(--white); }
.modal-card h3 { font-family: 'Space Grotesk', sans-serif; color: var(--white); font-size: 24px; margin-bottom: 8px; }
.modal-lede { color: var(--grey); font-size: 15px; margin-bottom: 20px; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form input {
  background: var(--black); border: 1px solid var(--line); border-radius: 9px;
  color: var(--white); padding: 13px 15px; font-size: 16px; font-family: 'Inter', sans-serif;
}
.login-form input:focus { outline: none; border-color: rgba(20,255,133,0.5); }
.login-form .btn { width: 100%; padding: 14px; }
.login-msg { min-height: 20px; font-size: 14px; margin-top: 12px; }
.login-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--grey); }
.login-alt a { color: var(--green); }
.login-alt a:hover { text-decoration: underline; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
  font-size: 15px; padding: 13px 24px; border-radius: 10px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn-solid { background: var(--green); color: var(--black); font-weight: 700; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 0 28px rgba(20,255,133,0.35); }
.btn-ghost { background: var(--dark-grey); color: var(--white); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(20,255,133,0.5); }
.btn-text { color: var(--white); padding: 13px 4px; }
.btn-text:hover { color: var(--green); }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px;
  align-items: center; padding: 110px 32px 130px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 12.5px;
  color: var(--green); font-weight: 500; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(48px, 6.6vw, 92px); margin-bottom: 26px; }
.lede { font-size: 19px; max-width: 480px; margin-bottom: 38px; }
.lede strong { color: var(--white); font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 52px; }
.hero-stats strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  color: var(--white); font-size: 30px; font-weight: 700;
}
.hero-stats span { font-size: 13.5px; color: var(--grey); }

/* LOGOS */
.logos {
  max-width: var(--max); margin: 0 auto; padding: 0 32px 70px;
  display: flex; align-items: center; gap: 40px;
  border-bottom: 1px solid var(--line);
}
.logos > span { font-size: 13px; color: var(--grey); white-space: nowrap; }
.logo-row { display: flex; gap: 48px; flex-wrap: wrap; }
.logo-row em {
  font-family: 'Space Grotesk', sans-serif; font-style: normal;
  font-weight: 500; font-size: 19px; color: rgba(255,255,255,0.32);
}

/* GENERIC SECTION */
.section { max-width: var(--max); margin: 0 auto; padding: 120px 32px; }
.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 22px; }
.section-lede { font-size: 18px; }

/* PAIRS TABLE */
.market-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.market-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 16px;
  align-items: center; padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px; color: var(--white);
  transition: background 0.2s;
}
.market-row:last-child { border-bottom: none; }
.market-row:not(.market-row--head):hover { background: var(--dark-grey); }
.market-row--head {
  background: rgba(255,255,255,0.02);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12px; color: var(--grey);
}
.asset { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.asset i {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--dark-grey); border: 1px solid var(--line);
}
.pos { color: var(--green); }
.neg { color: var(--red); }
.mut { color: var(--grey); }
.table-note { font-size: 13px; color: var(--grey); margin-top: 14px; text-align: right; }
.pairs-source { margin-top: 6px; }
.pairs-source a { color: var(--green); font-weight: 600; }
.pairs-source a:hover { text-decoration: underline; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  background: var(--dark-grey); border: 1px solid var(--line);
  border-radius: 16px; padding: 38px 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: rgba(20,255,133,0.4); transform: translateY(-4px); }
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 14px; color: var(--green); letter-spacing: 0.1em;
}
.step h3 { font-size: 22px; margin: 20px 0 12px; }
.step p { font-size: 15.5px; }

/* SPLIT (custody) */
.split {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px;
  align-items: center;
}
.split-copy h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 22px; }
.feature-list { list-style: none; margin: 30px 0 32px; }
.feature-list li {
  position: relative; padding-left: 30px; margin-bottom: 16px;
  color: var(--white); font-size: 16px;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px rgba(20,255,133,0.6);
}

/* PRICING CARD */
.price-card {
  max-width: 460px; margin: 0 auto;
  background: var(--dark-grey); border: 1px solid var(--line);
  border-radius: 20px; padding: 44px 40px;
  box-shadow: 0 0 70px rgba(20,255,133,0.08);
}
.price-tag { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.price-amt {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 64px; color: var(--white); letter-spacing: -0.03em;
}
.price-unit { font-size: 17px; color: var(--grey); }
.price-card .feature-list { margin: 24px 0 32px; }
.price-card .btn { width: 100%; }

/* CTA */
.cta {
  max-width: var(--max); margin: 0 auto;
  text-align: center; padding: 130px 32px;
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(40px, 6vw, 80px); margin-bottom: 24px; }
.cta p { font-size: 19px; max-width: 480px; margin: 0 auto 40px; }

/* FOOTER */
.footer {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 60px;
  padding: 70px 32px 50px; border-top: 1px solid var(--line);
}
.footer-brand p { margin-top: 14px; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); margin-bottom: 16px;
}
.footer-cols a { display: block; color: var(--grey); font-size: 14.5px; margin-bottom: 10px; transition: color 0.2s; }
.footer-cols a:hover { color: var(--green); }
.footer-legal {
  grid-column: 1 / -1; border-top: 1px solid var(--line);
  padding-top: 26px; font-size: 13px; color: var(--grey);
}

/* 3D-STYLE VISUALS — ratio scene */
.hero-visual {
  position: relative; height: 500px;
  display: flex; align-items: center; justify-content: center;
}
.grid-floor {
  position: absolute; left: 50%; bottom: 6%;
  width: 150%; height: 55%;
  transform: translateX(-50%) perspective(520px) rotateX(64deg);
  background-image:
    linear-gradient(rgba(20,255,133,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,255,133,0.16) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
  opacity: 0.7;
}
.glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,255,133,0.22) 0%, transparent 65%);
  filter: blur(30px);
}
/* two coins forming a ratio */
.coin-stack {
  position: relative; width: 200px; height: 200px;
  animation: float 7s ease-in-out infinite;
}
.coin {
  position: absolute;
  width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(150deg, #1dffa0 0%, #0fce72 48%, #07823f 100%);
  box-shadow: 0 0 50px rgba(20,255,133,0.3), inset -10px -14px 30px rgba(0,0,0,0.4), inset 8px 10px 22px rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.18);
}
.coin-a { top: 0; left: 0; }
.coin-b { bottom: 0; right: 0; filter: brightness(0.62); }
.ratio-tag {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 22px; color: var(--black);
  background: var(--green); padding: 8px 16px; border-radius: 10px;
  box-shadow: 0 0 30px rgba(20,255,133,0.6); white-space: nowrap; z-index: 3;
}
/* orbiting nodes */
.orbit {
  position: absolute; width: 360px; height: 360px;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 50%;
  animation: spin 14s linear infinite;
}
.orbit-2 { width: 460px; height: 460px; animation-duration: 22s; animation-direction: reverse; }
.node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 14px rgba(20,255,133,0.8);
}
.node-a { top: -5px; left: calc(50% - 5px); }
.node-b { bottom: -5px; left: calc(50% - 5px); background: var(--white); box-shadow: 0 0 12px rgba(255,255,255,0.6); }
@keyframes spin { to { transform: rotate(360deg); } }

.split-visual {
  position: relative; height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.shield {
  width: 200px; height: 230px;
  background: linear-gradient(155deg, var(--dark-grey), #0c0d10);
  border: 1px solid rgba(20,255,133,0.3);
  border-radius: 24px 24px 80px 80px / 24px 24px 120px 120px;
  box-shadow: 0 0 70px rgba(20,255,133,0.18), inset 0 0 40px rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: float 8s ease-in-out infinite;
}
.shield::before {
  content: ""; width: 54px; height: 54px;
  border: 2.5px solid var(--green); border-radius: 50%;
  box-shadow: 0 0 18px rgba(20,255,133,0.6);
}
.shield::after {
  content: ""; position: absolute; width: 16px; height: 30px;
  border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(45deg); margin-top: -4px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 70px 24px 90px; }
  .hero-visual { height: 360px; order: -1; }
  .orbit { width: 280px; height: 280px; }
  .orbit-2 { width: 360px; height: 360px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-visual { order: -1; height: 320px; }
  .steps { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 80px 24px; }
}
@media (max-width: 600px) {
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .logos { flex-direction: column; align-items: flex-start; gap: 22px; }
  .market-row { grid-template-columns: 1.4fr 1fr; row-gap: 6px; font-size: 14px; }
  .market-row span:nth-child(3), .market-row span:nth-child(4) { display: none; }
  .market-row--head span:nth-child(3), .market-row--head span:nth-child(4) { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---- legal / content pages (privacy, terms) ---- */
.legal {
  max-width: 820px; margin: 0 auto; padding: 64px 24px 96px;
}
.legal .eyebrow { margin-bottom: 14px; }
.legal h1 {
  font-family: 'Space Grotesk', sans-serif; color: var(--white);
  font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px;
}
.legal .updated { color: var(--grey); font-size: 14px; margin-bottom: 40px; }
.legal h2 {
  font-family: 'Space Grotesk', sans-serif; color: var(--white);
  font-size: 22px; margin: 38px 0 12px; letter-spacing: -0.01em;
}
.legal h3 { color: var(--white); font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--grey); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--green); }
.legal strong { color: var(--white); font-weight: 500; }
.legal .callout {
  border: 1px solid var(--line); border-left: 3px solid var(--green);
  background: rgba(20,255,133,0.04); border-radius: 10px;
  padding: 16px 18px; margin: 22px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
[data-lang-block] { display: none; }
[data-lang-block].is-visible { display: block; }

@media (max-width: 640px) {
  .legal { padding: 40px 18px 72px; }
  .legal h1 { font-size: 30px; }
}

/* ---- cookie consent banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; justify-content: center; padding: 18px;
}
.cookie-banner[hidden] { display: none; }
.cookie-card {
  width: 100%; max-width: 720px;
  background: #0b0d10; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 22px 24px;
}
.cookie-main h4 {
  font-family: 'Space Grotesk', sans-serif; color: var(--white);
  font-size: 17px; margin-bottom: 6px;
}
.cookie-main p { font-size: 14px; line-height: 1.6; color: var(--grey); }
.cookie-main a { color: var(--green); }
.cookie-prefs { margin: 16px 0 4px; display: grid; gap: 10px; }
.cookie-prefs[hidden] { display: none; }
.cookie-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.cookie-toggle span { display: flex; flex-direction: column; gap: 2px; }
.cookie-toggle strong { color: var(--white); font-size: 14px; font-weight: 500; }
.cookie-toggle em { color: var(--grey); font-size: 12px; font-style: normal; }
.cookie-toggle input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.cookie-toggle input[disabled] { opacity: 0.5; cursor: default; }
.cookie-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
  margin-top: 16px;
}
.cookie-actions .btn { padding: 11px 18px; font-size: 14px; }
.cookie-actions .btn-text { padding: 11px 8px; }

@media (max-width: 640px) {
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; text-align: center; }
}

/* ============ BLOG (feature 1) ============ */
.blog-index, .blog-article {
  max-width: 860px; margin: 0 auto; padding: 60px 32px 40px;
}
.blog-index { display: none; }
.blog-index.is-visible { display: block; }
.blog-index h1 { font-size: clamp(30px, 5vw, 46px); margin: 0 0 14px; }
.blog-index .lede { color: var(--grey); font-size: 18px; margin: 0 0 40px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.blog-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--dark-grey); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.blog-card:hover { border-color: rgba(20,255,133,0.4); transform: translateY(-2px); }
.blog-card-date { font-size: 12px; color: var(--green); letter-spacing: .06em; }
.blog-card h2 { font-size: 20px; margin: 10px 0 8px; line-height: 1.3; }
.blog-card p { color: var(--grey); font-size: 14px; margin: 0; line-height: 1.55; }
.blog-empty { color: var(--grey); }

/* article reuses .legal typography; these refine it */
.blog-article .eyebrow a { color: var(--green); text-decoration: none; }
.blog-article .eyebrow a:hover { text-decoration: underline; }
.blog-article .updated { color: var(--grey); font-size: 14px; margin: 0 0 28px; }
.blog-article h2 { margin-top: 34px; }
.blog-article h3 { margin-top: 26px; }
.blog-article blockquote {
  border-left: 3px solid var(--green); margin: 22px 0; padding: 6px 0 6px 18px;
  color: var(--grey);
}
.blog-article code {
  background: var(--dark-grey); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 6px; font-size: 0.92em;
}

/* Blog article CTA block */
.blog-cta-section {
  max-width: 760px; margin: 60px auto 40px; padding: 0 24px;
}
.blog-cta-card {
  background: linear-gradient(135deg, rgba(20,255,133,.06) 0%, rgba(0,212,255,.04) 100%);
  border: 1px solid rgba(20,255,133,.25);
  border-radius: 16px; padding: 40px 44px; text-align: center;
}
.blog-cta-card h2 { font-size: clamp(22px, 4vw, 30px); margin: 8px 0 16px; }
.blog-cta-card p { color: var(--grey); font-size: 16px; max-width: 520px; margin: 0 auto 28px; line-height: 1.6; }
.blog-cta-card .eyebrow { margin-bottom: 4px; }
.blog-cta-card[data-lang-block] { display: none; }
.blog-cta-card[data-lang-block].is-visible { display: block; }
