/* =========================================================
   EtherFlux — Stylesheet
   Palette: BG #FFFFFF | Primary #2962FF | Accent #00A3FF
            Text #111111 | Secondary #666666
            Card #F8F9FB | Border #E5E7EB
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --primary: #2962FF;
  --accent: #00A3FF;
  --text: #111111;
  --text-secondary: #666666;
  --card: #F8F9FB;
  --border: #E5E7EB;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.06);
  --shadow-lg: 0 24px 60px rgba(41, 98, 255, 0.12);

  --container: 1160px;
  --nav-height: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 12px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(41, 98, 255, 0.25);
}
.btn--primary:hover {
  background: #1e50e0;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(41, 98, 255, 0.32);
}
.btn--secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn--large { padding: 16px 32px; font-size: 16px; }
.btn--full { width: 100%; }
.btn--nav { padding: 10px 20px; font-size: 14px; }
.btn:active { transform: translateY(0); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(17, 17, 17, 0.03);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.nav__logo-mark { display: flex; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav__mobile a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.nav__mobile .btn { margin-top: 14px; }
.nav__mobile.is-open { display: flex; }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 0; }
.section--tinted { background: var(--card); }
.section__head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section__subtitle {
  color: var(--text-secondary);
  font-size: 17px;
}

/* ---------- Fade-in scroll animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 100px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(circle, rgba(41, 98, 255, 0.14) 0%, rgba(0, 163, 255, 0.05) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__title {
  font-size: clamp(38px, 5.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.text-gradient {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero__trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 18px;
}
.tv-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid rgba(41, 98, 255, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.tv-link:hover { border-color: var(--primary); }

/* Hero visual: dashboard illustration */
.hero__visual { position: relative; }
.dashboard-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(-12px); }
}
.dashboard-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dashboard-card__dots { display: flex; gap: 6px; }
.dashboard-card__dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.dashboard-card__pair {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.dashboard-card__chart {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%);
}
#chartLine { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s var(--ease) forwards 0.3s; }
#chartArea { opacity: 0; animation: fadeArea 1.2s ease forwards 1.4s; }
#chartDot { animation: pulse 2s ease-in-out infinite 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 8; opacity: 0.6; }
}
.dashboard-card__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.badge--buy { background: rgba(41, 98, 255, 0.08); color: var(--primary); border-color: rgba(41, 98, 255, 0.2); }
.badge strong { font-weight: 700; }
.badge--info { color: var(--text); }

.floating-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  animation: floatTag 5s ease-in-out infinite;
}
.floating-tag--1 { top: 8%; right: -6%; animation-delay: 0.4s; }
.floating-tag--2 { bottom: 10%; left: -8%; animation-delay: 1.2s; }
@keyframes floatTag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Video ---------- */
.video-frame {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.video-frame__ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0b0d12;
}
.video-frame__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-checklist {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.video-checklist li {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--features {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(41, 98, 255, 0.25);
}
.card--feature h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 4px 0 8px;
  letter-spacing: -0.01em;
}
.card--feature p {
  font-size: 14.5px;
  color: var(--text-secondary);
}
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(41, 98, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Settings proof ---------- */
.settings-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.settings-proof__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-proof__list li {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}
.settings-proof__image img {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------- How it works ---------- */
.steps {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  text-align: center;
}
.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 14.5px; }
.step__arrow {
  font-size: 22px;
  color: var(--primary);
  padding: 10px 0;
  opacity: 0.7;
}

/* ---------- Gallery / lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gallery__item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.gallery__item svg,
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 400 / 260; }
.gallery__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 18, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox__content {
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.lightbox__content svg,
.lightbox__content img { width: 100%; height: auto; display: block; }
.lightbox__caption { color: #fff; font-size: 14px; }
.lightbox__close {
  position: absolute;
  top: 28px;
  right: 32px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

/* ---------- Backtesting stats ---------- */
.grid--stats {
  grid-template-columns: repeat(3, 1fr);
}
.card--stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card__stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.card--stat-wide { grid-column: span 3; }
.equity-chart { width: 100%; height: 100px; margin-top: 6px; }

.equity-proof {
  margin: 40px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}
.equity-proof img { width: 100%; height: auto; display: block; }
.equity-proof figcaption {
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

.disclaimer {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.5px;
  max-width: 640px;
  margin: 40px auto 0;
  font-style: italic;
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.pricing-card__prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin: 12px 0 6px;
}
.pricing-card__original {
  font-size: 22px;
  color: var(--text-secondary);
  text-decoration: line-through;
}
.pricing-card__launch {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.pricing-card__note {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}
.pricing-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-card__list li {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 14px;
  background: var(--card);
  border-radius: 10px;
}

/* ---------- FAQ Accordion ---------- */
.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 16.5px;
  font-weight: 600;
  text-align: left;
}
.accordion__icon { transition: transform 0.3s var(--ease); color: var(--text-secondary); flex-shrink: 0; }
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); color: var(--primary); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.accordion__panel p {
  padding: 0 4px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 620px;
}

/* ---------- Testimonials ---------- */
.grid--testimonials { grid-template-columns: repeat(3, 1fr); }
.card--testimonial { display: flex; flex-direction: column; gap: 16px; }
.stars { color: #F5A623; font-size: 15px; letter-spacing: 2px; }
.card--testimonial p { font-size: 14.5px; color: var(--text); flex: 1; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial__author strong { display: block; font-size: 14px; }
.testimonial__author span { font-size: 12.5px; color: var(--text-secondary); }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
}
.contact-card h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.contact-card p { color: var(--text-secondary); margin-bottom: 20px; }
.contact-card__email {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
  font-size: 17px;
  border-bottom: 2px solid rgba(41, 98, 255, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.contact-card__email:hover { border-color: var(--primary); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--primary); }
.footer__copy {
  font-size: 13px;
  color: var(--text-secondary);
  width: 100%;
  text-align: center;
  order: 3;
}

/* ---------- Sticky mobile buy ---------- */
.sticky-buy {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(41, 98, 255, 0.35);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid--features { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { gap: 40px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .btn--nav { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__visual { max-width: 480px; margin: 0 auto; }
  .floating-tag { display: none; }

  .grid--features { grid-template-columns: repeat(2, 1fr); }
  .grid--stats { grid-template-columns: repeat(2, 1fr); }
  .card--stat-wide { grid-column: span 2; }
  .settings-proof { grid-template-columns: 1fr; text-align: center; }
  .settings-proof__list { text-align: left; max-width: 380px; margin: 0 auto; }
  .grid--testimonials { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .video-checklist { grid-template-columns: 1fr; }

  .sticky-buy { display: block; }
  .section { padding: 90px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 0 20px; }
  .grid--features { grid-template-columns: 1fr; }
  .grid--stats { grid-template-columns: 1fr; }
  .card--stat-wide { grid-column: span 1; }
  .hero { padding: 56px 0 80px; }
  .pricing-card { padding: 40px 24px; }
  .pricing-card__launch { font-size: 42px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }
}
