:root {
  --topaz-ink: #0b1220;
  --topaz-obsidian: #111827;
  --topaz-deep: #0b3b49;
  --topaz-teal: #0ea5a6;
  --topaz-aqua: #67e8f9;
  --topaz-gold: #d4af37;
  --topaz-rose: #e7c3b2;
  --topaz-mist: #f6f7fb;
  --topaz-line: rgba(212, 175, 55, 0.35);

  --bg: radial-gradient(80rem 40rem at 110% -10%, rgba(14, 165, 166, 0.13), transparent 60%),
        radial-gradient(60rem 34rem at -10% 0%, rgba(212, 175, 55, 0.1), transparent 55%),
        linear-gradient(180deg, #0b1220 0%, #111827 100%);
  --text: var(--topaz-mist);
  --text-muted: rgba(246, 247, 251, 0.75);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(103, 232, 249, 0.22);
  --ring: 0 0 0 3px rgba(103, 232, 249, 0.35);
  --radius-s: 0.5rem;
  --radius-m: 0.9rem;
  --radius-l: 1.3rem;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --container: min(92vw, 72rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 0.35rem;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -120%;
  z-index: 1000;
  background: var(--topaz-mist);
  color: var(--topaz-ink);
  padding: 0.6rem 0.85rem;
  border-radius: 0.35rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.announcement {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--topaz-line);
  background: rgba(17, 24, 39, 0.9);
}

.announcement .container {
  padding: 0.45rem 0;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.75);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-word {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.menu-toggle {
  border: 1px solid var(--topaz-line);
  background: rgba(11, 59, 73, 0.38);
  color: var(--topaz-mist);
  border-radius: 999px;
  font: inherit;
  padding: 0.45rem 0.85rem;
  min-height: 2.5rem;
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  background: rgba(11, 18, 32, 0.96);
  border-bottom: 1px solid var(--topaz-line);
  display: none;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.55rem 1rem 1rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.35rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--topaz-aqua);
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.hero {
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -25% -20% auto;
  height: 34rem;
  background: conic-gradient(from 220deg, rgba(103, 232, 249, 0.14), rgba(14, 165, 166, 0.08), rgba(212, 175, 55, 0.1), rgba(103, 232, 249, 0.14));
  filter: blur(70px);
  animation: drift 16s linear infinite;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--topaz-gold);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5.6vw, 3.9rem);
  max-width: 17ch;
}

h2 {
  font-size: clamp(1.65rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.5rem;
}

.lead {
  margin: 1rem 0 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

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

.btn-primary {
  background: linear-gradient(120deg, var(--topaz-teal), var(--topaz-aqua) 52%, #d8f6ff 62%, var(--topaz-teal) 76%);
  background-size: 230% 100%;
  color: var(--topaz-ink);
  box-shadow: 0 8px 24px rgba(103, 232, 249, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -35%;
  width: 25%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(20deg);
  transition: left 0.7s ease;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  left: 115%;
}

.btn-secondary {
  background: rgba(11, 59, 73, 0.25);
  border-color: var(--topaz-line);
  color: var(--topaz-mist);
}

.btn-secondary:hover {
  border-color: var(--topaz-aqua);
}

.proof-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.35rem 0 0;
  padding: 0;
}

.proof-points li {
  border: 1px solid rgba(14, 165, 166, 0.35);
  background: rgba(17, 24, 39, 0.65);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.9rem;
}

.panel-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-showcase {
  min-height: 17rem;
}

.showcase-card {
  padding: 1.3rem;
}

.showcase-head {
  font-size: 0.95rem;
  color: var(--topaz-rose);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.showcase-lines {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.showcase-lines span {
  display: block;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.35), rgba(212, 175, 55, 0.18));
}

.showcase-chip {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 0.9rem;
}

.section-title {
  margin-bottom: 1.45rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  padding: 1.2rem;
}

.feature-card p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
}

.feature-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  color: var(--topaz-aqua);
}

.split-layout {
  display: grid;
  gap: 1.35rem;
  align-items: center;
}

.split-copy p {
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.workspace-mock {
  padding: 1rem;
}

.mock-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.mock-pane {
  margin: 0;
  padding: 0.75rem;
  border-radius: var(--radius-m);
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(11, 18, 32, 0.62);
}

.mock-pane h3 {
  font-size: 1.22rem;
}

.mock-pane p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.flow {
  position: absolute;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--topaz-gold);
  pointer-events: none;
}

.flow-a {
  top: 33%;
  left: 43%;
}

.flow-b {
  bottom: 33%;
  left: 43%;
}

.quality-grid {
  display: grid;
  gap: 1rem;
}

.quality-grid > .panel-glass {
  padding: 1.1rem;
}

.quality-grid p {
  color: var(--text-muted);
}

.structured-box {
  border: 1px solid var(--topaz-line);
  border-radius: var(--radius-m);
  background: rgba(11, 18, 32, 0.8);
  padding: 1rem;
}

.structured-box pre {
  margin: 0;
  overflow: auto;
}

.structured-box code {
  font-size: 0.93rem;
  color: #d6f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.provenance-wrap p {
  color: var(--text-muted);
}

.provenance-pill {
  display: inline-block;
  margin-top: 0.7rem;
  border: 1px solid rgba(103, 232, 249, 0.32);
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  color: var(--topaz-aqua);
  font-size: 0.87rem;
  letter-spacing: 0.02em;
}

.section-head p {
  color: var(--text-muted);
  max-width: 65ch;
}

.markets-grid {
  margin-top: 1rem;
  padding: 1rem;
}

.candles,
.volume {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.45rem;
}

.candles {
  height: 7rem;
  align-items: end;
  margin-bottom: 0.65rem;
}

.candle {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 0.25rem;
  position: relative;
}

.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -0.7rem;
  bottom: -0.7rem;
  width: 1px;
  background: rgba(246, 247, 251, 0.36);
}

.candle.up {
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.95), rgba(14, 165, 166, 0.8));
}

.candle.down {
  background: linear-gradient(180deg, rgba(231, 195, 178, 0.9), rgba(212, 175, 55, 0.7));
}

.volume {
  height: 3.5rem;
  align-items: end;
}

.volume span {
  display: block;
  height: var(--v);
  background: rgba(212, 175, 55, 0.52);
  border-radius: 0.2rem;
}

.latency-band {
  margin-top: 0.8rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.latency-band span {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, rgba(14, 165, 166, 0.55), rgba(103, 232, 249, 0.75));
  animation: glide 5s ease-in-out infinite;
}

.ticker {
  margin-top: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-m);
  background: rgba(11, 18, 32, 0.65);
  padding: 0.7rem;
}

.ticker-label {
  margin: 0 0 0.4rem;
  color: var(--topaz-gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ticker-track {
  display: flex;
  gap: 0.65rem;
  overflow: auto;
  scrollbar-width: thin;
}

.ticker-item {
  white-space: nowrap;
  border: 1px solid rgba(103, 232, 249, 0.2);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ticker-item.is-live {
  border-color: rgba(103, 232, 249, 0.65);
  color: var(--topaz-aqua);
  transform: translateY(-1px);
}

.testimonial-grid {
  display: grid;
  gap: 1rem;
}

.testimonial {
  margin: 0;
  padding: 1.2rem;
}

.testimonial p {
  margin: 0;
  color: var(--text);
}

.testimonial cite {
  display: block;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.92rem;
}

.faq-wrap {
  max-width: 56rem;
}

.faq-item {
  border-bottom: 1px solid var(--topaz-line);
  padding: 0.7rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--topaz-line);
  padding: 1.2rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.9rem;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--topaz-aqua);
}

.divider {
  height: 1px;
  width: var(--container);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), rgba(103, 232, 249, 0.5), transparent);
  opacity: 0.75;
}

.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 24%;
  height: 340%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: rotate(18deg);
  transition: left 0.8s ease;
}

.section:hover .shimmer::after,
.section:focus-within .shimmer::after {
  left: 116%;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-3%, 2%, 0) rotate(8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes glide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(145%); }
}

@media (min-width: 48rem) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    border: 0;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0.25rem;
    font-size: 0.92rem;
  }

  .hero-grid,
  .split-layout {
    grid-template-columns: 1.2fr 1fr;
  }

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

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

  .quality-grid .structured-box {
    grid-column: 1 / -1;
  }

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 68.75rem) {
  .section {
    padding: 5.3rem 0;
  }

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

  .feature-card {
    min-height: 11.8rem;
  }

  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .quality-grid .structured-box {
    grid-column: 1 / -1;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
