/* av-living-landing.css — PAGE-SPECIFIC styles for /automate/.
   Phase 1.5: sitewide chrome (nav, buttons, footer, section primitives, av-rise
   keyframe) now lives in av-components.css; structural tokens in av-tokens.css;
   colors/fonts in av-skin-*.css. This file keeps only the page composition:
   hero layout, the pulse band, the exchanges marquee, the "Money in Motion"
   canvas, and the how/advanced/frontier section layouts. */

/* ── HERO ─────────────────────────────────────────────────────────────────── */

.av-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 64px; /* nav height */
}

.av-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.av-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--av-max-w);
  margin: 0 auto;
  padding: var(--av-space-9) var(--av-space-5) var(--av-space-7);
  width: 100%;
}

.av-hero__content {
  max-width: 680px;
}

.av-hero__h1 {
  font-family: var(--av-font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--av-text);
  margin: 0 0 var(--av-space-5);

  /* Animate in on load */
  opacity: 0;
  transform: translateY(28px);
  animation: av-rise 0.75s var(--av-ease-out) 0.1s forwards;
}

.av-hero__h1-accent {
  color: var(--av-orange);
  display: inline;
}

.av-hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--av-text-muted);
  line-height: 1.65;
  margin: 0 0 var(--av-space-6);
  max-width: 520px;

  opacity: 0;
  transform: translateY(20px);
  animation: av-rise 0.7s var(--av-ease-out) 0.28s forwards;
}

.av-hero__form {
  display: flex;
  gap: var(--av-space-3);
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: var(--av-space-4);

  opacity: 0;
  transform: translateY(16px);
  animation: av-rise 0.65s var(--av-ease-out) 0.44s forwards;
}

.av-hero__email {
  flex: 1 1 240px;
  padding: 11px 16px;
  background: var(--av-surface-raise);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  color: var(--av-text);
  font-family: var(--av-font-body);
  font-size: 0.9375rem;
  line-height: 1;
  min-height: 44px;
  transition: border-color 0.18s;
}
.av-hero__email::placeholder { color: var(--av-text-muted); }
.av-hero__email:focus {
  border-color: var(--av-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(252, 114, 19, 0.18);
}

.av-btn--hero {
  padding: 11px 28px;
  flex-shrink: 0;
}

.av-hero__note {
  font-size: 0.8125rem;
  color: var(--av-text-muted);
  margin: 0;

  opacity: 0;
  animation: av-rise 0.5s var(--av-ease-out) 0.6s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .av-hero__h1,
  .av-hero__sub,
  .av-hero__form,
  .av-hero__note {
    opacity: 1;
    transform: none;
    animation: none;
  }
}


/* ── PULSE BAND ───────────────────────────────────────────────────────────── */

.av-pulse {
  margin-top: var(--av-space-8);
  background: var(--av-surface);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-5) var(--av-space-6);

  opacity: 0;
  animation: av-rise 0.6s var(--av-ease-out) 0.75s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .av-pulse { opacity: 1; animation: none; }
}

.av-pulse__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--av-space-5);
}

.av-pulse__stat {
  display: flex;
  align-items: baseline;
  gap: var(--av-space-1);
}

.av-pulse__value {
  font-family: var(--av-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--av-orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.av-pulse__unit {
  font-size: 0.9rem;
  color: var(--av-text-muted);
}

.av-pulse__label {
  font-size: 0.8rem;
  color: var(--av-text-muted);
}

.av-pulse__divider {
  width: 1px;
  height: 32px;
  background: var(--av-border);
  flex-shrink: 0;
}

.av-pulse__status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--av-space-2);
  font-size: 0.8125rem;
  color: var(--av-text-muted);
}

.av-pulse__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--av-elephant);
  flex-shrink: 0;
  transition: background 0.3s;
}

/* When live data is present, JS adds .is-live to the section */
.av-pulse.is-live .av-pulse__status-dot {
  background: var(--av-live-green);
  animation: av-pulse-dot 2s ease-in-out infinite;
}

@keyframes av-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 600px) {
  .av-pulse__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--av-space-4);
  }
  .av-pulse__divider { width: 40px; height: 1px; }
  .av-pulse__status { margin-left: 0; }
}


/* ── HOW IT WORKS ─────────────────────────────────────────────────────────── */

.av-how {
  padding: var(--av-space-10) 0;
}

.av-how__inner {
  max-width: var(--av-max-w);
  margin: 0 auto;
  padding: 0 var(--av-space-5);
}

.av-how__steps {
  display: flex;
  align-items: flex-start;
  gap: var(--av-space-3);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.av-how__step {
  flex: 1 1 220px;
  background: var(--av-surface);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-6);
  transition: border-color 0.2s, transform 0.2s;
}
.av-how__step:hover {
  border-color: var(--av-orange);
  transform: translateY(-3px);
}

.av-how__step-num {
  font-family: var(--av-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--av-orange);
  margin-bottom: var(--av-space-4);
  display: block;
}

.av-how__step-title {
  font-family: var(--av-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--av-text);
  margin: 0 0 var(--av-space-3);
}

.av-how__step-body {
  font-size: 0.9375rem;
  color: var(--av-text-muted);
  margin: 0;
  line-height: 1.6;
}

.av-how__step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--av-elephant);
  flex-shrink: 0;
  margin-top: 60px; /* align with card midpoint */
  list-style: none;
}
.av-how__step-arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .av-how__steps { flex-direction: column; }
  .av-how__step-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}


/* ── EXCHANGES MARQUEE ────────────────────────────────────────────────────── */

.av-exchanges {
  padding: var(--av-space-9) 0;
  overflow: hidden;
  border-top: 1px solid var(--av-border);
  border-bottom: 1px solid var(--av-border);
  background: var(--av-surface);
}

.av-exchanges__inner {
  max-width: var(--av-max-w);
  margin: 0 auto;
  padding: 0 var(--av-space-5) var(--av-space-6);
}

/* Static centered logo wall (was a scrolling marquee). Real exchange brand logos,
   normalized to a uniform monochrome silhouette — the source PNGs are mixed
   colorways, so a single tone (white-on-dark / dark-on-light) is the only treatment
   that reads for all. Centered flex-wrap reflows cleanly down to mobile. */
.av-exchanges__wrap {
  list-style: none;
  margin: var(--av-space-6) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--av-space-6) var(--av-space-7);
}
.av-exchanges__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-exchanges__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.av-exchanges__logo img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);  /* any logo → solid white silhouette */
  opacity: 0.9;
  transition: opacity 0.2s var(--av-ease-out);
}
.av-exchanges__logo:hover img { opacity: 1; }

/* HyperLiquid's asset is visually heavier than the rest — size it down to sit level. */
.av-exchanges__logo--sm img { height: 26px; max-width: 130px; }

[data-theme="light"] .av-exchanges__logo img {
  filter: brightness(0);            /* any logo → solid dark silhouette */
  opacity: 0.85;
}
[data-theme="light"] .av-exchanges__logo:hover img { opacity: 0.9; }

@media (max-width: 600px) {
  .av-exchanges__wrap { gap: var(--av-space-5) var(--av-space-6); }
  .av-exchanges__logo img { height: 32px; }
  .av-exchanges__logo--sm img { height: 22px; }
}


/* ── ADVANCED TRADERS ─────────────────────────────────────────────────────── */

.av-advanced {
  padding: var(--av-space-10) 0;
}

.av-advanced__inner {
  max-width: var(--av-max-w);
  margin: 0 auto;
  padding: 0 var(--av-space-5);
}

.av-advanced__header {
  margin-bottom: var(--av-space-8);
}

.av-advanced__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--av-space-5);
}

.av-advanced__feature {
  background: var(--av-surface);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  padding: var(--av-space-6);
  transition: border-color 0.2s;
}
.av-advanced__feature:hover { border-color: var(--av-orange); }

.av-advanced__feature-icon {
  width: 40px;
  height: 40px;
  color: var(--av-orange);
  margin-bottom: var(--av-space-4);
}
.av-advanced__feature-icon svg {
  width: 100%;
  height: 100%;
}

.av-advanced__feature-title {
  font-family: var(--av-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--av-text);
  margin: 0 0 var(--av-space-3);
}

.av-advanced__feature-body {
  font-size: 0.9375rem;
  color: var(--av-text-muted);
  margin: 0;
  line-height: 1.65;
}


/* ── FRONTIER STRIP ───────────────────────────────────────────────────────── */

.av-frontier {
  padding: var(--av-space-10) 0;
  background: var(--av-surface);
  border-top: 1px solid var(--av-border);
  border-bottom: 1px solid var(--av-border);
  position: relative;
  overflow: hidden;
}

/* Subtle angular glow in the background */
.av-frontier::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(252, 114, 19, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.av-frontier__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--av-space-5);
  text-align: center;
  position: relative;
  z-index: 1;
}

.av-frontier__badge {
  display: inline-block;
  background: rgba(252, 114, 19, 0.12);
  color: var(--av-orange);
  border: 1px solid rgba(252, 114, 19, 0.3);
  border-radius: 100px;
  padding: var(--av-space-1) var(--av-space-4);
  font-family: var(--av-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--av-space-5);
}

.av-frontier__heading {
  font-family: var(--av-font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--av-text);
  margin: 0 0 var(--av-space-5);
}

.av-frontier__heading-accent {
  color: var(--av-orange);
}

.av-frontier__body {
  font-size: 1.0625rem;
  color: var(--av-text-muted);
  line-height: 1.65;
  margin: 0 0 var(--av-space-7);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.av-frontier__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--av-space-4);
  flex-wrap: wrap;
}

.av-frontier__cta-note {
  font-size: 0.8125rem;
  color: var(--av-text-muted);
}


/* ── VALUE FIELD CANVAS (JS draws on it) ──────────────────────────────────── */
/* Canvas is absolutely positioned in hero; JS handles draw loop. */







