/* CryptoXFlow landing page. Same Aurora tokens as the app (frontend/src/styles.css). */
:root {
  color-scheme: dark;
  --bg: #070b1a;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  --glass-flat: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef1f8;
  --text-2: #a9b1c6;
  --text-3: #7c86a0;
  --accent-1: #8b5cf6;
  --accent-2: #22d3ee;
  --accent: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --on-accent: #070b1a;
  --bullish: #1dab8f;
  --bearish: #fc4447;
  --choppy: #55607a;
  --radius: 20px;
  --width: 1180px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  position: relative;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

/* Soft blurred colour behind the page, clipped so it never widens the page. */
.glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  pointer-events: none;
}

.glow span:nth-child(1) {
  top: -260px;
  left: -160px;
  width: 760px;
  height: 620px;
  background: #6d28d9;
}

.glow span:nth-child(2) {
  top: 200px;
  right: -220px;
  width: 640px;
  height: 540px;
  background: #0e7490;
}

.glow span:nth-child(3) {
  top: 1500px;
  left: 30%;
  width: 640px;
  height: 520px;
  background: #4c1d95;
  opacity: 0.28;
}

/* Header */

/* A floating glass bar: the page's glow shows around it, and it stays in view while scrolling. */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 24px 0;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--width);
  margin: 0 auto;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: rgba(13, 17, 36, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav .brand {
  justify-self: start;
}

.nav .btn {
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.5);
}

.logo svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wordmark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wordmark b,
.grad {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav nav {
  display: flex;
  gap: 4px;
}

.nav nav a,
.footer nav a {
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav nav a {
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 15px;
}

.nav nav a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav nav a:hover,
.footer nav a:hover {
  color: var(--text);
}

.btn .arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45), 0 0 40px rgba(34, 211, 238, 0.2);
}

.btn.primary:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6), 0 0 50px rgba(34, 211, 238, 0.3);
}

.btn.ghost {
  border: 1px solid var(--line-2);
  background: var(--glass-flat);
  backdrop-filter: blur(12px);
}

.btn.small {
  padding: 10px 16px;
  font-size: 14px;
}

/* Sections */

main {
  position: relative;
  z-index: 1;
}

main > section {
  max-width: calc(var(--width) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bullish);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 171, 143, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(29, 171, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 171, 143, 0);
  }
}

h2 {
  max-width: 22ch;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-lead {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--text-2);
  font-size: 18px;
}

.hero {
  padding-top: 72px !important;
  text-align: center;
}

.hero h1 {
  max-width: 18ch;
  margin: 0 auto;
  font-size: clamp(38px, 6.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero .lead {
  max-width: 60ch;
  margin: 22px auto 0;
  color: var(--text-2);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 34px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--text-2);
  list-style: none;
}

.proof b {
  color: var(--text);
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #0b1022;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot {
  margin-top: 56px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 80px rgba(139, 92, 246, 0.25);
}

.features,
.how,
.audience,
.faq {
  padding-top: 120px !important;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 56px;
  margin-top: 64px;
}

.feature.reverse .feature-text {
  order: 2;
}

.feature h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.feature p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
}

.feature ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
}

.feature li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.feature li b {
  color: var(--text);
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(20px);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
}

.card p {
  margin-top: 10px;
  color: var(--text-2);
}

.num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}

.scale {
  margin-top: 40px;
}

.scale-bar {
  display: flex;
  gap: 3px;
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
}

.scale-bar span {
  flex: 1;
}

.scale-bar .bear {
  flex: 0.75;
  background: var(--bearish);
}

.scale-bar .chop {
  flex: 0.5;
  background: var(--choppy);
}

.scale-bar .bull {
  flex: 0.75;
  background: var(--bullish);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
}

.scale-labels b {
  color: var(--text);
}

.note {
  margin-top: 20px;
  color: var(--text-3);
}

.faq details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass-flat);
  transition: border-color 0.15s;
}

.faq details:first-of-type {
  margin-top: 36px;
}

.faq details[open] {
  border-color: rgba(139, 92, 246, 0.5);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: #c4b5fd;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}

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

.faq details p {
  padding: 0 24px 22px;
  color: var(--text-2);
}

.final {
  margin-top: 120px !important;
  padding: 64px 24px !important;
  max-width: var(--width) !important;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.3), transparent 70%),
    var(--glass);
  text-align: center;
}

.final h2 {
  margin: 0 auto;
}

.final p {
  margin: 14px auto 28px;
  color: var(--text-2);
  font-size: 18px;
}

.footer {
  position: relative;
  z-index: 1;
  max-width: calc(var(--width) + 48px);
  margin: 80px auto 0;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.disclaimer {
  max-width: 80ch;
  margin-top: 24px;
  color: var(--text-3);
  font-size: 14px;
}

.copy {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse {
    animation: none;
  }

  .btn {
    transition: none;
  }
}

@media (max-width: 900px) {
  .feature,
  .feature.reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .feature.reverse .feature-text {
    order: 0;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 10px 12px 0;
  }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 8px 8px 8px 12px;
    border-radius: 16px;
  }

  .nav nav {
    display: none;
  }

  .wordmark {
    font-size: 17px;
  }

  main > section {
    padding: 0 16px;
  }

  .hero {
    padding-top: 44px !important;
  }

  .hero .lead,
  .section-lead {
    font-size: 17px;
  }

  .features,
  .how,
  .audience,
  .faq {
    padding-top: 80px !important;
  }

  .scale-labels {
    flex-direction: column;
    gap: 4px;
  }

  .final {
    margin: 80px 16px 0 !important;
    padding: 44px 20px !important;
  }

  .footer {
    padding: 32px 16px 40px;
  }
}
