/* Base layout and theming */

:root {
  --bg-main: #050519;
  --bg-elevated: #0b0b28;
  --bg-card: #111133;
  --bg-card-soft: #14143a;
  --bg-highlight: radial-gradient(circle at top left, #4338ca, #111827 50%, #020617);
  --accent-primary: #32e5ff;
  --accent-primary-soft: rgba(50, 229, 255, 0.2);
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-green: #22c55e;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --shadow-soft: 0 18px 80px rgba(15, 23, 42, 0.9);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

html {
  overflow-x: hidden;
  background: #020617;
  min-height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #0b1220, #020617 55%, #020617 100%);
  background-color: #020617;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

main {
  padding-top: var(--header-height);
}

.section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }
}

/* Header */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.78),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  touch-action: manipulation;
}

@media (max-width: 640px) {
  .brand {
    gap: 8px;
  }
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(
    from 160deg,
    #22c55e,
    #22c55e,
    #3b82f6,
    #818cf8,
    #a855f7,
    #22c55e
  );
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

.brand-mark::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, #111827, #020617);
}

.brand-mark.small {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-soft);
}

@media (max-width: 640px) {
  .brand-tagline {
    display: none;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s ease;
  display: flex;
  align-items: center;
  min-height: 44px;
  touch-action: manipulation;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-purple));
  border-radius: 999px;
  transition: width 0.18s ease;
}

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

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 1rem;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .header-cta {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }
}

/* Buttons */

.btn,
a.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: 500;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease,
    border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation;
}

@media (max-width: 640px) {
  .btn {
    font-size: 0.9rem;
    padding: 12px 20px;
  }
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #a5b4fc);
  color: #020617;
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(56, 189, 248, 0.6);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: rgba(148, 163, 184, 1);
  background: rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Typography helpers */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.03em;
}

section h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 640px) {
  section h2 {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
  }
}

.section-lead {
  margin: 16px auto 36px;
  max-width: 640px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .section-lead {
    font-size: 0.9rem;
    margin: 12px auto 28px;
    padding: 0 8px;
  }
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Hero */

.hero {
  padding-top: 120px;
  padding-bottom: 120px;
  background-image: radial-gradient(circle at top left, #1d1b4b, transparent 55%),
    radial-gradient(circle at top right, #075985, transparent 55%);
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }
}

.hero-subline {
  display: block;
  color: var(--accent-primary);
}

.hero-lead {
  margin-top: 22px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

.hero-meta {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-soft);
  max-width: 460px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.screen-mock {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, #1f2937, #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  max-width: 100%;
  overflow: hidden;
}


@media (max-width: 640px) {
  .screen-mock {
    padding: 14px 14px 16px;
    border-radius: 20px;
  }

  .primary-screen:has(.hero-image) {
    padding: 0;
  }

  .primary-screen .hero-image {
    border-radius: 20px;
  }
}

.primary-screen {
  position: relative;
  z-index: 2;
}

.primary-screen:has(.hero-image) {
  padding: 0;
}

.primary-screen .hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  object-fit: contain;
}

.secondary-screen {
  position: absolute;
  right: -40px;
  bottom: -32px;
  max-width: 260px;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-visual {
    order: -1;
    min-height: 280px;
  }

  .secondary-screen {
    position: absolute;
    right: 12px;
    bottom: -24px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    gap: 24px;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-meta {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .secondary-screen {
    display: none;
  }
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.screen-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 500;
}

.pill-green {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.pill-blue {
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.pill-purple {
  background: rgba(168, 85, 247, 0.16);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.6);
}

.pill-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-muted);
}

.screen-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
}

@media (max-width: 640px) {
  .screen-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

.screen-body.compact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chart {
  position: relative;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #1f2937, #020617);
  overflow: hidden;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.bar {
  flex: 1;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(to top, #0f172a, var(--accent-purple));
}

.bar-1 {
  height: 28%;
}
.bar-2 {
  height: 68%;
}
.bar-3 {
  height: 40%;
}
.bar-4 {
  height: 85%;
}
.bar-5 {
  height: 55%;
}

.screen-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-soft);
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-chart {
  border-radius: 16px;
  height: 80px;
  background: linear-gradient(135deg, #111827, #020617);
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.5);
}

.screen-note {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Level Reaction Bias section */

.feature-split {
  background: radial-gradient(circle at top left, #020617, #020617),
    radial-gradient(circle at bottom right, #111827, #020617 70%);
}

.feature-split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

@media (max-width: 968px) {
  .feature-split-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .feature-copy {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .feature-copy h2 {
    text-align: center;
  }

  .feature-copy .section-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.feature-visual {
  position: relative;
}

.bias-slider {
  position: relative;
  min-height: 364px;
}

.bias-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bias-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.chart-screen {
  position: relative;
  overflow: hidden; /* Hide content that extends beyond boundaries */
  min-height: 100%;
}

.bias-slide .screen-mock {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.chart-header-tight {
  align-items: center;
}

.chart-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  color: #e5f2ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.chart-tag {
  font-size: 0.72rem;
  color: var(--text-soft);
}

.chart-line {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  object-fit: contain;
  display: block;
}

.level {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148, 163, 184, 0.8),
    transparent
  );
}

.level-top {
  top: 28%;
}

.level-bottom {
  bottom: 18%;
}

.price-path {
  position: absolute;
  inset: 18px;
  border-radius: 999px;
  border-left: 2px solid var(--accent-primary);
  border-top: 2px solid var(--accent-primary);
  border-right: 2px solid var(--accent-purple);
}

.floating-card-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px; /* Move lower, extending below the visible area */
  height: 40%;
  pointer-events: none;
  display: flex;
  gap: 16px;
  align-items: stretch; /* Stretch to match heights */
  padding: 0 16px;
}

.floating-card {
  position: relative;
  flex: 1 1 0; /* Equal flex basis for same width */
  min-width: 0;
  max-width: calc(50% - 8px);
  padding: 10px 12px; /* Reduced padding */
  border-radius: 18px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  font-size: 0.75rem; /* Reduced font size */
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.floating-card-container .level-status-container {
  position: relative;
  flex: 1 1 0; /* Equal flex basis for same width */
  min-width: 0;
  max-width: calc(50% - 8px);
  width: 100%; /* Fill container width */
  top: 0; /* Align top with floating-card */
  left: auto;
  transform: scale(1); /* Full scale to fit container */
  transform-origin: top left; /* Scale from top-left to maintain alignment */
  pointer-events: auto;
}

/* Spread Data Card */
.spread-data-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 8px);
  padding: 10px 12px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 0.75rem;
  pointer-events: auto;
}

.spread-data-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.spread-info-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.3);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  font-style: italic;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.5);
}

.spread-asset-info {
  flex: 1;
}

.spread-asset {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.spread-yield {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.spread-yield-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #22c55e;
}

.spread-yield-label {
  font-size: 0.6rem;
  color: var(--text-soft);
}

.spread-exchanges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.spread-exchange {
  font-size: 0.65rem;
  color: rgba(251, 191, 36, 0.9);
  font-weight: 600;
  text-align: center;
}

.spread-data-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 50px;
}

.spread-data-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 6px;
  align-items: center;
  min-height: 18px;
}

.spread-data-label {
  font-size: 0.65rem;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
}

.spread-data-value {
  font-size: 0.7rem;
  color: var(--text-main);
  text-align: center;
  font-weight: 500;
}

.spread-data-value.positive {
  color: #22c55e;
}

.spread-data-value.negative {
  color: #ef4444;
}

.floating-card h3 {
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.floating-card p {
  color: var(--text-soft);
  margin-bottom: 6px;
  font-size: 0.7rem;
  line-height: 1.4;
}

.floating-card ul {
  color: var(--text-muted);
  padding-left: 1rem;
  font-size: 0.7rem;
}

.bias-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.bias-dot {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
  padding: 6px 12px;
  font-size: 0.72rem;
  color: var(--text-soft);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.12s ease;
}

.bias-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
}

.bias-dot.is-active {
  border-color: rgba(56, 189, 248, 0.8);
  color: var(--text-main);
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.bias-dot.is-active::before {
  background: var(--accent-primary);
}

.bias-level-reaction {
  background: radial-gradient(circle at top left, #1d1b4b, #020617);
}

.bias-spreads {
  background: radial-gradient(circle at top left, #052e16, #020617);
}

.bias-spreads .floating-card-container {
  bottom: 10px;
}

.bias-fvg {
  background: radial-gradient(circle at top left, #172554, #020617);
}

.bias-fvg .floating-card-container {
  bottom: -30px;
}

.bias-fvg .floating-card {
  max-width: 70%;
}

.bias-detect-levels {
  background: radial-gradient(circle at top left, #312e81, #020617);
}

.bias-detect-levels .floating-card-container {
  bottom: -43px;
}

.bias-detect-levels .floating-card {
  max-width: 70%;
}

.bias-spreads-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 14px;
  margin-top: 4px;
}

.spread-column h3 {
  font-size: 0.86rem;
  margin: 4px 0 8px;
}

.spread-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spread-column li {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  padding: 6px 8px;
  border-radius: 10px;
}

.spread-column .label {
  color: var(--text-muted);
}

.spread-column .value-tight {
  color: #bbf7d0;
}

.spread-column .value-wide {
  color: #fecaca;
}

.spread-heat .hint {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.heat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.heat-bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #ef4444);
}

.heat-bar-cool {
  background: linear-gradient(to right, #22c55e, #4ade80);
}

.heat-bar-mid {
  background: linear-gradient(to right, #22c55e, #f97316);
}

.heat-bar-hot {
  background: linear-gradient(to right, #f97316, #ef4444);
}

.bias-fvg-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 16px;
}

.bias-fvg-chart {
  position: relative;
  border-radius: 16px;
  padding: 12px;
  background: radial-gradient(circle at top left, #020617, #020617);
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.6);
}

.fvg-band {
  position: absolute;
  left: 16px;
  right: 16px;
  height: 16px;
  border-radius: 8px;
  opacity: 0.7;
}

.fvg-band-bull {
  top: 28%;
  background: linear-gradient(to right, rgba(22, 163, 74, 0.2), #22c55e);
}

.fvg-band-bear {
  bottom: 24%;
  background: linear-gradient(to right, rgba(239, 68, 68, 0.2), #ef4444);
}

.fvg-candles {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background: radial-gradient(circle at bottom, #020617, #020617);
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.4);
}

.bias-fvg-panel {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(129, 140, 248, 0.8);
  font-size: 0.8rem;
}

.bias-fvg-panel h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.bias-fvg-panel ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.bias-detect-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 16px;
}

.bias-detect-ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ladder-level {
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.ladder-level .label {
  color: var(--text-soft);
}

.ladder-major {
  border-color: rgba(94, 234, 212, 0.9);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.5);
}

.ladder-scout {
  border-style: dashed;
  border-color: rgba(129, 140, 248, 0.8);
}

.bias-detect-panel {
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(129, 140, 248, 0.7);
  font-size: 0.8rem;
}

.bias-detect-panel p {
  color: var(--text-soft);
  margin-bottom: 8px;
}

.bias-detect-panel ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.feature-copy {
  max-width: 480px;
  margin-left: auto;
}

.feature-copy h2 {
  text-align: left;
  margin-bottom: 12px;
}

.feature-copy .section-lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.feature-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.feature-item h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.86rem;
  color: var(--text-soft);
}

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

  .floating-card {
    position: static;
    margin-top: 16px;
    width: 100%;
  }

  .chart-screen {
    margin-bottom: 20px;
  }

  .bias-slider {
    min-height: 338px;
  }

  .bias-fvg-body,
  .bias-detect-layout,
  .bias-spreads-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bias-dots {
    gap: 6px;
  }
}

/* How traders section */

.how-traders {
  background: radial-gradient(circle at top, #0f172a, #020617);
}

.how-traders h2 {
  text-align: center;
}

.steps-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #020617, #020617);
  padding: 20px 18px 20px;
}

.step h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.step ul {
  font-size: 0.8rem;
  color: var(--text-soft);
}

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

@media (max-width: 640px) {
  .steps-grid {
    gap: 16px;
  }
}

/* Discipline section */

.discipline {
  background: radial-gradient(circle at top left, #111827, #020617);
}

.discipline-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.discipline-card {
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.discipline-card-good {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), #020617);
  border-color: rgba(56, 189, 248, 0.7);
}

.discipline-card h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.discipline-card ul {
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .discipline-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .discipline-columns {
    gap: 16px;
  }
}

/* For traders section */

.for-traders {
  background: #05051a;
}

.pill-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.pill-column {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #020617, #020617);
  padding: 20px 20px 18px;
}

.pill-column h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.pill-column ul {
  font-size: 0.86rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .pill-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .pill-layout {
    gap: 16px;
  }
}

/* Platform section */

.platform {
  background: radial-gradient(circle at top, #020617, #020617);
}

.platform-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform-card {
  border-radius: 20px;
  background: radial-gradient(circle at top left, #020617, #020617);
  border: 1px solid rgba(30, 64, 175, 0.8);
  padding: 18px 16px 18px;
}

.platform-card h3 {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.platform-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .platform-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Pricing */

.pricing {
  background: radial-gradient(circle at top, #020617, #020617);
}

.pricing-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pricing-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, #020617, #020617);
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 12px 0 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-card .price .price-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-card .price .price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
}

.pricing-card .btn {
  align-self: stretch;
  width: 100%;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  flex: 1;
}

.pricing-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.pricing-card ul li:last-child {
  margin-bottom: 0;
}

.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 4px;
  color: #a855f7;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card-featured ul li::before {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(34, 211, 238, 0.15));
  border-color: rgba(94, 234, 212, 0.5);
  color: #5eead4;
}

.pricing-card-featured {
  background: radial-gradient(circle at top left, #1d1b4b, #020617);
  border-color: rgba(94, 234, 212, 0.8);
  box-shadow: 0 24px 80px rgba(34, 211, 238, 0.35);
  transform: scale(1.02);
}

.pricing-card-featured:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 28px 90px rgba(34, 211, 238, 0.4);
}

.pricing-card .badge {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(45, 212, 191, 0.7);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.billing-toggle {
  position: relative;
  display: flex;
  gap: 0;
  margin: 8px 0 16px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.billing-option {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.billing-option:hover:not(.active) {
  color: var(--text-main);
}

.billing-option.active {
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(124, 58, 237, 0.3));
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.4);
}
  color: #a7f3d0;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    gap: 16px;
  }

  .pricing-card {
    padding: 24px 20px 22px;
  }

  .pricing-card h3 {
    font-size: 1.2rem;
  }

  .pricing-card .price {
    font-size: 1.9rem;
    margin: 10px 0 14px;
  }

  .pricing-card ul li {
    margin-bottom: 12px;
    font-size: 0.85rem;
  }
}

/* Global Billing Toggle */
.global-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
  user-select: none;
  color: rgba(148, 163, 184, 0.6);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  transition: 0.3s ease;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: #6366f1;
  border-radius: 50%;
  transition: 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #1e293b;
  border-color: rgba(99, 102, 241, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
  background-color: #6366f1;
}

/* Update label colors based on toggle state using classes */
.global-billing-toggle.monthly .toggle-label[data-period="monthly"] {
  color: #6366f1;
}

.global-billing-toggle.monthly .toggle-label[data-period="yearly"] {
  color: rgba(148, 163, 184, 0.6);
}

.global-billing-toggle.yearly .toggle-label[data-period="monthly"] {
  color: rgba(148, 163, 184, 0.6);
}

.global-billing-toggle.yearly .toggle-label[data-period="yearly"] {
  color: #6366f1;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: #020617;
  padding: 20px 0 22px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

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

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

.footer-nav a {
  color: var(--text-soft);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
}

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

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.75rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}

