/* Dark Pool — institutional finance visual system
   Typography: Source Serif 4 (display, bank-grade) + Source Sans 3 (body/UI) */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&display=swap');

:root {
  /* Core ink */
  --dp-void: #06080f;
  --dp-ink: #0b1018;
  --dp-panel: #111827;
  --dp-elevated: #182033;
  --dp-border: rgba(255, 255, 255, 0.08);

  /* Accents */
  --dp-violet: #7b6cff;
  --dp-violet-bright: #9d8fff;
  --dp-blue: #4f7dff;
  --dp-signal: #2ee4c5;
  --dp-signal-dim: #1aa88f;

  /* Surfaces */
  --dp-paper: #f3f5fa;
  --dp-paper-muted: #e8ecf4;
  --dp-text-muted: #94a0b8;

  /* Map into landing token names */
  --color-blue: #4f7dff;
  --color-blue-50: #eef2ff;
  --color-blue-200: #b8c7ff;
  --color-blue-400: #7b6cff;
  --color-blue-600: #4f5fd4;
  --color-blue-800: #2a2f6b;
  --color-blue-950: #12152e;

  --color-green: var(--dp-ink);
  --color-green-50: #eef2f8;
  --color-green-200: #8b95a8;
  --color-green-600: var(--dp-violet);
  --color-green-700: #4f5fd4;
  --color-green-800: #182033;
  --color-green-950: var(--dp-void);

  --color-burgundy: #0f1420;
  --color-burgundy-600: var(--dp-violet);
  --color-burgundy-800: #182033;
  --color-burgundy-950: var(--dp-void);

  --color-yellow: #e8f4ff;
  --color-yellow-50: #f4f8ff;
  --color-yellow-200: #dce8fb;
  --color-yellow-300: #c5d8f0;

  --color-off-white: var(--dp-paper);
  --color-taupe: var(--dp-text-muted);
  --color-brown-100: #dce2ee;
  --color-brown-600: #6b768c;

  --font-fit: 'Source Serif 4', 'Georgia', 'Times New Roman', serif;
  --font-classic: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-classic);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--dp-void);
  color: var(--dp-paper);
}

.font-fit,
.font-fit * {
  font-family: var(--font-fit) !important;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.font-classic {
  font-family: var(--font-classic) !important;
}

/* Subtle film grain — behind content, not on top */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.02;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9) 0 0.6px, transparent 0.7px),
    radial-gradient(circle at 80% 60%, rgba(0, 0, 0, 0.8) 0 0.6px, transparent 0.7px);
  background-size: 3px 3px, 4px 4px;
}

/* Announcement bar — flat, high-contrast (no gradient) */
#announcement-banner,
.bg-yellow,
.bg-yellow-200 {
  background: #e8f4ff !important;
  border-bottom: 1px solid #c5d8f0;
  color: #0b1320 !important;
  backdrop-filter: none;
}

#announcement-banner p,
.bg-yellow p,
.bg-yellow-200 p {
  color: #0b1320 !important;
}

#announcement-banner a {
  color: #2f5fd4 !important;
  text-underline-offset: 3px;
  font-weight: 600;
}

#announcement-banner a:hover {
  color: #1a3f9e !important;
}

/* Hero — no overlay gradients; let the skyline read clearly */
section.relative.flex.h-\[calc\(100dvh-var\(--banner-height\)\)\] {
  background: #0b1018;
}

section.relative.flex.h-\[calc\(100dvh-var\(--banner-height\)\)\] > .absolute.inset-0::after {
  display: none;
}

section.relative.flex.h-\[calc\(100dvh-var\(--banner-height\)\)\] img,
section.relative.flex.h-\[calc\(100dvh-var\(--banner-height\)\)\] video {
  filter: brightness(0.82) saturate(1.05) contrast(1.02) !important;
}

/* Hero copy — text on video, no bottom bar */
section.relative.flex.h-\[calc\(100dvh-var\(--banner-height\)\)\] .hero-copy h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  letter-spacing: -0.02em;
}

section.relative.flex.h-\[calc\(100dvh-var\(--banner-height\)\)\] .hero-copy p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Nav — readable over hero without tint gradients */
header,
nav {
  backdrop-filter: none;
  background: transparent;
}

/* Pill-shaped buttons */
button,
input[type='submit'],
#download-dialog-form button {
  border-radius: 9999px !important;
}

/* Primary CTAs */
button[data-download-cta='true'],
a.js-download-signup {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

button.bg-blue-400,
button[class*='bg-blue-400'] {
  background: linear-gradient(135deg, var(--dp-violet) 0%, var(--dp-blue) 55%, #3d8bff 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(123, 108, 255, 0.25),
    0 12px 32px rgba(79, 125, 255, 0.28);
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

button.bg-blue-400:hover,
button[class*='bg-blue-400']:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(157, 143, 255, 0.45),
    0 16px 40px rgba(79, 125, 255, 0.38);
}

button.bg-white,
button[class*='bg-white'][class*='text-black'] {
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%) !important;
  border: 1px solid rgba(123, 108, 255, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  color: #12152e !important;
  font-weight: 600;
}

/* Product band */
#product {
  background: linear-gradient(165deg, #0d1219 0%, #121a2a 42%, #0a0f18 100%) !important;
  position: relative;
  overflow: hidden;
  padding-bottom: 0 !important;
  margin-bottom: -3.5rem;
  z-index: 1;
}

#product::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 15, 24, 0.55) 45%,
    rgba(20, 28, 46, 0.95) 100%
  );
  pointer-events: none;
  z-index: 2;
}

#product::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 80% 20%, rgba(123, 108, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(46, 228, 197, 0.1), transparent 55%);
  pointer-events: none;
}

#product .grid > div:first-child {
  align-items: stretch;
  background: transparent !important;
}

#product .grid {
  position: relative;
  z-index: 3;
  align-items: stretch;
  gap: 0;
}

/* Product visual — full-bleed photo, no frame */
#product .product-visual {
  position: relative;
  display: block;
  width: 100%;
  height: 16rem;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

#product .product-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 0;
}

#product .product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 18, 25, 0.15) 0%,
    transparent 35%,
    rgba(13, 18, 25, 0.55) 78%,
    rgba(13, 18, 25, 0.92) 100%
  );
  pointer-events: none;
}

#product .product-visual::before {
  display: none;
}

@media (min-width: 1024px) {
  #product .mx-auto.max-w-7xl {
    padding-left: 0;
  }

  #product .product-visual {
    margin-left: calc(-1 * (1.5rem + max(0px, (100vw - 80rem) / 2)));
    width: calc(100% + 1.5rem + max(0px, (100vw - 80rem) / 2));
    height: 22rem;
  }

  #product .product-visual-img {
    height: 100%;
  }

  #product .grid > div:last-child {
    padding: 3rem 0 3rem 2.5rem !important;
  }
}

@media (max-width: 1023px) {
  #product .product-visual {
    margin-inline: -1.5rem;
    width: calc(100% + 3rem);
    height: 15rem;
  }

  #product .grid > div:last-child {
    padding-top: 1.75rem !important;
    padding-bottom: 2rem !important;
  }

  #product .product-visual::after {
    background: linear-gradient(
      180deg,
      transparent 55%,
      rgba(13, 18, 25, 0.85) 100%
    );
  }
}

#product h2,
#product p {
  position: relative;
  z-index: 1;
}

/* AUTO-STACK intro */
.bg-blue {
  background: linear-gradient(
    135deg,
    #141c2e 0%,
    #1a2540 38%,
    #111827 100%
  ) !important;
  border-top: none;
  border-bottom: 1px solid rgba(46, 228, 197, 0.12);
  position: relative;
  overflow: hidden;
  margin-top: -3.5rem;
  padding-top: 5.5rem !important;
  z-index: 0;
  border-radius: 1.25rem 1.25rem 0 0;
}

.bg-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(180deg, rgba(13, 18, 25, 0.35) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.bg-blue > .mx-auto {
  position: relative;
  z-index: 1;
}

.bg-blue::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 0%, rgba(79, 125, 255, 0.2), transparent 45%);
  pointer-events: none;
}

.bg-blue .text-brown-100 {
  color: rgba(220, 226, 238, 0.78) !important;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: inherit;
  font-weight: 400;
}

.bg-blue > .mx-auto > p.text-brown-100:first-child {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(184, 199, 255, 0.85) !important;
}

.bg-blue h2 {
  color: #ffffff !important;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* Token mechanic strip — sentence case, no mono pills */
.bg-blue .uppercase.tracking-wide,
.bg-blue span.uppercase,
.bg-blue span.text-white {
  font-family: var(--font-classic) !important;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  color: rgba(245, 248, 255, 0.88) !important;
  font-weight: 400;
}

/* White feature cards */
.bg-white {
  background: linear-gradient(180deg, #f7f9fd 0%, #eef2fa 100%) !important;
}

.bg-white h2 {
  color: #12182a !important;
}

.bg-white p {
  color: #4a5568 !important;
}

.bg-white .lg\:bg-brown-50,
.bg-white [class*='bg-brown-50'] {
  background: linear-gradient(165deg, #ffffff 0%, #f3f6fc 100%) !important;
  border: 1px solid rgba(123, 108, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(15, 20, 32, 0.08);
}

.bg-white .bg-black {
  background: linear-gradient(145deg, #0a0f18 0%, #151d2e 100%) !important;
  border: 1px solid rgba(123, 108, 255, 0.15);
}

.bg-white img {
  filter: saturate(1.05) contrast(1.02);
}

button.bg-black,
button[class*='bg-black'][class*='text-white'] {
  background: linear-gradient(135deg, #1a2238 0%, #2a3560 55%, #3d4f8a 100%) !important;
  border: 1px solid rgba(123, 108, 255, 0.35);
  box-shadow: 0 10px 28px rgba(79, 125, 255, 0.22);
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}

button.bg-black:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(79, 125, 255, 0.32);
}

/* Feature carousel cards */
.bg-blue-950 {
  background: linear-gradient(180deg, var(--dp-void) 0%, #0d1422 50%, #111a2b 100%) !important;
}

.testimonial-card {
  background: linear-gradient(
    155deg,
    rgba(24, 32, 51, 0.95) 0%,
    rgba(17, 24, 39, 0.98) 55%,
    rgba(30, 38, 62, 0.92) 100%
  ) !important;
  border: 1px solid rgba(123, 108, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  padding: 0 !important;
  overflow: hidden;
  justify-content: flex-start !important;
}

.testimonial-card-media {
  flex: 1 1 auto;
  min-height: 9.5rem;
  margin: 0.75rem 0.75rem 0;
  border-radius: 0.65rem;
  border: 1px solid rgba(157, 143, 255, 0.18);
  background: #0a0f18;
  position: relative;
  overflow: hidden;
}

.testimonial-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.85) contrast(1.05);
}

.testimonial-card-media::after {
  display: none;
}

.testimonial-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
  margin-top: auto;
}

.testimonial-card-copy {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 300;
  color: rgba(243, 245, 250, 0.88);
}

.testimonial-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(123, 108, 255, 0.18);
}

.testimonial-card h4 {
  font-family: var(--font-fit) !important;
  letter-spacing: -0.02em;
}

.testimonial-card p.text-sm {
  color: rgba(184, 199, 255, 0.75) !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.8125rem;
  font-family: var(--font-classic) !important;
}

/* Final predict section */
.bg-blue-950 h2 {
  color: #ffffff !important;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.bg-blue-950 .uppercase.tracking-wide {
  font-family: var(--font-classic) !important;
  color: rgba(184, 199, 255, 0.8) !important;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* Header X button */
.header-x-link {
  border-radius: 9999px;
}

/* Footer polish */
footer .footer-legal p {
  max-width: 36rem;
}

footer img[alt='DarkPool'] {
  filter: brightness(1.05);
}

/* Converter / separation band */
#separation {
  background: linear-gradient(135deg, #0f1624 0%, #141f33 100%);
  border-top: 1px solid rgba(123, 108, 255, 0.2);
  border-bottom: 1px solid rgba(46, 228, 197, 0.15);
  border-right: none;
  box-sizing: border-box;
}

#separation .grid {
  background: transparent;
}

#separation .grid > div:first-child {
  position: relative;
  min-height: 22rem;
  padding: 0;
  background: #0a0f18 !important;
  overflow: hidden;
}

#separation .grid > div:first-child img,
#separation .separation-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

#separation .grid > div:first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 15, 24, 0.1) 0%,
    transparent 40%,
    rgba(10, 15, 24, 0.35) 85%,
    rgba(10, 15, 24, 0.7) 100%
  );
  pointer-events: none;
}

@media (min-width: 1024px) {
  #separation .grid > div:first-child {
    min-height: 32rem;
  }
}

#separation .grid > div:last-child {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%);
  border-left: 1px solid rgba(123, 108, 255, 0.12);
}

/* Hero bottom bar removed */

/* Download dialog */
#download-dialog-content {
  background: linear-gradient(145deg, #0f1522 0%, #182033 100%);
}

/* Locale switcher stays hidden */
#locale-selector {
  display: none !important;
}

/* Links */
a:hover {
  color: var(--dp-signal);
}

@media (max-width: 1023px) {
  .bg-white .lg\:bg-brown-50,
  .bg-white [class*='bg-brown-50'] {
    border-radius: 0.75rem;
    margin-inline: 0.5rem;
  }
}
