/* Marketing-site styles for volatility.farm — full brand redesign.
 * All colors via --vfm-* tokens. Syne headings + DM Sans body.
 * No JS dependencies. Mobile-first. Pico + app.css loaded as base. */

/* ─────── Brand tokens ─────── */

:root {
  --vfm-bg-base: #060912;
  --vfm-bg-surface: #0a0f1e;
  --vfm-bg-card: #111827;
  --vfm-bg-card-hover: #1a2235;
  --vfm-border: #1e2d40;
  --vfm-blue: #2563eb;
  --vfm-blue-light: #3b82f6;
  --vfm-blue-dim: #1d4ed8;
  --vfm-emerald: #10b981;
  --vfm-amber: #f59e0b;
  --vfm-red: #ef4444;
  --vfm-text-primary: #ffffff;
  --vfm-text-secondary: #94a3b8;
  --vfm-text-muted: #475569;
  --vfm-font-heading: 'Syne', sans-serif;
  --vfm-font-body: 'DM Sans', sans-serif;
}

/* ─────── Reset + page shell ─────── */

body.vf-marketing {
  margin: 0;
  padding: 0;
  background: var(--vfm-bg-base);
  color: var(--vfm-text-primary);
  font-family: var(--vfm-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.vf-marketing h1,
body.vf-marketing h2,
body.vf-marketing h3 {
  font-family: var(--vfm-font-heading);
  color: var(--vfm-text-primary);
  margin: 0;
}

.vfm-container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.vfm-section {
  padding: 4rem 0;
}

.vfm-section-label {
  display: block;
  font-family: var(--vfm-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vfm-blue);
  margin-bottom: 0.75rem;
}

/* ─────── Buttons — CRITICAL: explicit color on every variant ─────── */

.vfm-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--vfm-blue);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--vfm-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
}

.vfm-btn-blue:hover {
  background: var(--vfm-blue-light);
  color: #ffffff;
}

.vfm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #e2e8f0;
  border: 1.5px solid #334155;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--vfm-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  min-height: 44px;
}

.vfm-btn-ghost:hover {
  border-color: var(--vfm-blue-light);
  color: #ffffff;
}

/* ─────── Header / nav ─────── */

.vfm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(6, 9, 18, 0.85);
  border-bottom: 1px solid var(--vfm-border);
  padding: 0.75rem 0;
}

.vfm-header .vfm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vfm-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.vfm-logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.vfm-logo__wordmark {
  font-family: var(--vfm-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.vfm-logo__wordmark-vol {
  color: #ffffff;
}

.vfm-logo__wordmark-farm {
  color: var(--vfm-blue);
}

.vfm-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vfm-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vfm-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.vfm-nav__link:hover {
  color: var(--vfm-text-primary);
}

.vfm-nav__cta {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* Hamburger menu — replicates _nav.html <details> pattern */

.vfm-nav-menu {
  display: contents;
}

.vfm-nav-menu__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--vfm-text-secondary);
  background: none;
  border: none;
  list-style: none;
  -webkit-appearance: none;
}

.vfm-nav-menu__burger::-webkit-details-marker {
  display: none;
}

@media (min-width: 768px) {
  .vfm-nav-menu .vfm-nav {
    display: flex;
  }
}

@media (max-width: 767px) {
  .vfm-nav-menu__burger {
    display: flex;
  }

  .vfm-nav-menu .vfm-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background: var(--vfm-bg-card);
    border: 1px solid var(--vfm-border);
    border-top: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    z-index: 60;
  }

  .vfm-nav-menu[open] .vfm-nav {
    display: flex;
  }

  .vfm-nav__link {
    padding: 0.5rem 0;
    width: 100%;
  }

  .vfm-nav__cta {
    margin-top: 0.25rem;
    width: 100%;
    text-align: center;
  }
}

/* ─────── Hero ─────── */

.vfm-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 0 4rem;
  background: radial-gradient(
    ellipse 80% 50% at 50% 40%,
    rgba(37, 99, 235, 0.10) 0%,
    transparent 70%
  );
}

.vfm-hero__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vfm-text-muted);
  border: 1px solid var(--vfm-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.vfm-hero__title {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .vfm-hero__title {
    white-space: nowrap;
  }
}

.vfm-hero__sub {
  font-size: 1.125rem;
  color: var(--vfm-text-secondary);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.vfm-hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.vfm-hero__trust {
  font-size: 0.8125rem;
  color: var(--vfm-text-muted);
  margin-bottom: 3rem;
}

.vfm-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.vfm-hero__stat {
  text-align: center;
}

.vfm-hero__stat + .vfm-hero__stat {
  border-left: 1px solid var(--vfm-border);
  padding-left: 2.5rem;
}

.vfm-hero__stat-value {
  display: block;
  font-family: var(--vfm-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.vfm-hero__stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--vfm-text-muted);
  margin-top: 0.15rem;
}

@media (max-width: 639px) {
  .vfm-hero__stats {
    flex-direction: column;
    gap: 1.25rem;
  }

  .vfm-hero__stat + .vfm-hero__stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--vfm-border);
    padding-top: 1.25rem;
  }
}

/* ─────── How it works — 3 step cards ─────── */

.vfm-steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

@media (min-width: 768px) {
  .vfm-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vfm-steps__card {
  position: relative;
  background: var(--vfm-bg-card);
  border: 1px solid var(--vfm-border);
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  overflow: hidden;
}

.vfm-steps__number {
  position: absolute;
  top: -0.2rem;
  right: 0.75rem;
  font-family: var(--vfm-font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--vfm-border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.vfm-steps__card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.vfm-steps__card p {
  font-size: 0.9375rem;
  color: var(--vfm-text-secondary);
  margin: 0;
  position: relative;
  line-height: 1.65;
}

/* ─────── Features — 2×2 grid ─────── */

.vfm-features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .vfm-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vfm-feature-card {
  background: var(--vfm-bg-card);
  border: 1px solid var(--vfm-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.vfm-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--vfm-blue-light);
}

.vfm-feature-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.vfm-feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.12);
  flex-shrink: 0;
}

.vfm-feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--vfm-blue);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vfm-feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.vfm-feature-card__desc {
  font-size: 0.9rem;
  color: var(--vfm-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ─────── Pricing — 4 cards ─────── */

.vfm-pricing-intro {
  color: var(--vfm-text-secondary);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.vfm-pricing {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .vfm-pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .vfm-pricing {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vfm-pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--vfm-bg-card);
  border: 1px solid var(--vfm-border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.vfm-pricing-card--popular {
  border-color: var(--vfm-blue);
  border-top: 3px solid var(--vfm-blue);
  position: relative;
}

.vfm-pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--vfm-blue);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.vfm-pricing-card__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--vfm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.vfm-pricing-card__price {
  font-family: var(--vfm-font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.vfm-pricing-card__price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--vfm-text-muted);
}

.vfm-pricing-card__cap {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--vfm-blue-light);
  margin-bottom: 1.25rem;
}

.vfm-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  flex: 1;
}

.vfm-pricing-card__features li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--vfm-text-secondary);
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.vfm-pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--vfm-emerald);
  font-weight: 600;
}

.vfm-pricing-card__cta {
  margin-top: auto;
}

.vfm-pricing-card__cta .vfm-btn-blue {
  width: 100%;
}

.vfm-pricing-card__cta .vfm-btn-ghost {
  width: 100%;
}

/* ─────── Early-access form ─────── */

.vfm-early-access {
  max-width: 560px;
  margin: 0 auto;
  background: var(--vfm-bg-card);
  border: 1px solid var(--vfm-border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}

.vfm-early-access h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.vfm-early-access__sub {
  color: var(--vfm-text-secondary);
  margin-bottom: 1.5rem;
}

.vfm-early-access__error {
  color: var(--vfm-red);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.vfm-early-access__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vfm-early-access__form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--vfm-font-body);
  font-size: 1rem;
  background: #1a2235;
  color: #ffffff;
  border: 1.5px solid var(--vfm-border);
  border-radius: 8px;
  outline: none;
  min-height: 44px;
  box-sizing: border-box;
}

.vfm-early-access__form input[type="email"]:focus {
  border-color: var(--vfm-blue);
}

.vfm-early-access__form input[type="email"]::placeholder {
  color: #475569;
}

.vfm-early-access__form .vfm-btn-blue {
  width: 100%;
  padding: 0.875rem;
}

.vfm-early-access__privacy {
  font-size: 0.8125rem;
  color: var(--vfm-text-muted);
  margin-top: 0.5rem;
}

@media (max-width: 479px) {
  .vfm-early-access {
    padding: 2rem 1.25rem;
  }
}

/* Honeypot — visually hidden, not display:none (fools smarter bots) */
.vf-marketing__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ─────── Footer ─────── */

.vfm-footer {
  border-top: 1px solid var(--vfm-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.vfm-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.vfm-footer__left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--vfm-text-muted);
}

.vfm-footer__left svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.vfm-footer__right {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
}

.vfm-footer__right a {
  color: var(--vfm-text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.vfm-footer__right a:hover {
  color: var(--vfm-text-primary);
}

@media (max-width: 639px) {
  .vfm-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ─────── Thanks page ─────── */

.vfm-thanks {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding-top: 8rem;
}

.vfm-thanks h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.vfm-thanks p {
  color: var(--vfm-text-secondary);
  margin-bottom: 1.5rem;
}

/* ─────── Skip link (accessibility) ─────── */

.vfm-skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--vfm-blue);
  color: #ffffff;
  z-index: 200;
  font-size: 0.875rem;
}

.vfm-skip-link:focus {
  top: 0;
}
