/* ASCENDOJO LANDING — glass/glow visual system for the logged-out marketing
   page. Section-specific composition (hero, stats, features, statement,
   the showcase grid's own layout) lives here and is only ever invoked from
   js/views/landing.js. The reusable primitives it was built on (.glow,
   img.is-missing, the Dojo card art system) have moved to app.css since
   hub.js and the Trading Dojo interface now use them too — see app.css. */

/* ── Reveal primitive: hidden until GSAP ScrollTrigger reveals it.
   The CSS default (not JS-set) matters — it prevents a flash of fully
   visible content before the module script runs. ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
/* Fan-out groups: children start invisible too (GSAP sets their exact
   overlapped-stack starting transform at animation time), so nothing
   flashes fully visible before the module script runs. */
[data-fan] > * {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-fan] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* .glow primitives and img.is-missing moved to app.css — they're shared
   with hub.js's Dojo cards and the Trading Dojo interface now, not
   landing-exclusive. Both files are always loaded together (see
   index.html <head>), so nothing here changes functionally. */

/* ══════════════════ HERO ══════════════════ */
.hero-v2 {
  position: relative;
  min-height: min(86vh, 840px);
  overflow: hidden;
  isolation: isolate;
}
/* Text content stays inside the normal max-width container; the visual
   layer (below) is a sibling so it can bleed the full viewport width
   without fighting .wrap's max-width. */
.hero-v2__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 9vw, 110px);
  text-align: center;
}
.hero-v2__rays {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 1600px;
  height: 1600px;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.05) 0deg 1deg,
    transparent 1deg 9deg
  );
  mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-v2__kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--shell-ink-dim);
  text-transform: uppercase;
}
.hero-v2__kicker-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green-glow);
  flex-shrink: 0;
}
.hero-v2__kicker-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-green);
  animation: radarPing 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2__kicker-dot::after {
    animation: none;
    display: none;
  }
}
.hero-v2__title {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
}
.hero-v2__title span {
  display: block;
}
.hero-v2__title .word {
  display: inline-block;
  will-change: transform, filter, opacity;
}
.hero-v2__title .line-1 {
  color: var(--shell-ink);
}
.hero-v2__title .line-2 {
  color: var(--shell-ink-muted);
  font-weight: 500;
}
.hero-v2__sub {
  position: relative;
  z-index: 1;
  margin: 26px auto 0;
  max-width: 56ch;
  color: var(--shell-ink-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  font-weight: 320;
}
.hero-v2__actions {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.hero-v2__actions .btn-primary {
  padding: 17px 34px;
  font-size: 13px;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow 0.5s var(--ease-ascend), transform 0.5s var(--ease-ascend);
}
.hero-v2__actions .btn-primary:hover {
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.22);
}

/* Full-bleed landscape banner behind the entire hero (kicker through CTA),
   not a framed card beneath the copy — its own light beams share the same
   origin as the CSS ray layer so the two read as one source. Sits at the
   very top of .hero-v2 (a sibling of .hero-v2__inner, not a descendant of
   .wrap) so width:100% is the true viewport width, not the 1180px content
   column. */
.hero-v2__visual {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  /* Deliberately taller than the hero itself (percentage of the hero's own
     height, so the ratio holds across every viewport) — the extra height
     is pure fade buffer: object-fit:cover crops the ~16:9 source to fill,
     and the mask below reaches full transparency well before this box's
     bottom, which is itself past the hero's own overflow:hidden edge. */
  height: 116%;
  pointer-events: none;
  perspective: 1000px;
  will-change: transform;
  /* Soft edge-to-edge fade left/right — full-bleed, not a hard rectangle. */
  mask-image: linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 9%,
    black 91%,
    transparent 100%
  );
}
.hero-v2__visual-glow {
  width: 70%;
  height: 45%;
  top: 6%;
  left: 15%;
}
.hero-v2__visual-glow-deep {
  width: 100%;
  height: 70%;
  top: -5%;
  left: 0%;
  filter: blur(110px);
  opacity: 0.45;
}
.hero-v2__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
  /* Stays solid through the headline/subtext/CTA depth, then the entire
     lower band dissolves fully to black well before the container's own
     height ends — no rectangular photo edge, no hard seam into the next
     section. */
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 82%);
}

.hero-v2__preview {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 35%, transparent 92%);
}
.hero-v2__preview-inner {
  transform: scale(0.86);
  transform-origin: top center;
}

/* ══════════════════ SECTION SHELL ══════════════════ */
.section-head {
  text-align: center;
  max-width: 46ch;
  margin: 0 auto var(--space-section);
}
.section-head__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell-ink-faint);
  margin-bottom: 14px;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--shell-ink-dim);
}

/* ══════════════════ STATS ROW ══════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-inner-glow), var(--glass-shadow);
  padding: 32px 28px;
  transition: border-color 0.5s var(--ease-ascend), transform 0.5s var(--ease-ascend),
    box-shadow 0.5s var(--ease-ascend);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
}
/* The one number that actually converts (the price) sits a touch forward
   of its neighbors — the reference's asymmetric "middle card" emphasis,
   applied to the card that matters most here. */
@media (min-width: 901px) {
  .stat-card--emphasis {
    transform: translateY(-14px);
    box-shadow: var(--glass-inner-glow), var(--glass-shadow), 0 0 60px -20px var(--accent-orange-glow);
  }
  .stat-card--emphasis:hover {
    transform: translateY(-18px);
  }
}
.stat-card__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border-hover);
  background: var(--glass-bg-raised);
  color: var(--shell-ink-dim);
  margin-bottom: 20px;
}
.stat-card__icon svg {
  width: 17px;
  height: 17px;
}
.stat-card__body {
  color: var(--shell-ink-muted);
  font-size: 13.5px;
  line-height: 1.6;
  min-height: 3.2em;
  font-weight: 320;
}
.stat-card__value-row {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.stat-card__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--shell-ink);
  letter-spacing: -0.01em;
}
.stat-card__label {
  font-size: 15px;
  color: var(--shell-ink-muted);
  font-weight: 400;
}

/* ══════════════════ FEATURE GRID ══════════════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-inner-glow), var(--glass-shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s var(--ease-ascend), transform 0.5s var(--ease-ascend);
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-card[data-accent="orange"]:hover {
  border-color: var(--accent-orange);
}
.feature-card[data-accent="green"]:hover {
  border-color: var(--accent-green);
}
/* Media fills the top of the card edge-to-edge; the badge/chips ride on
   top of it and are allowed to spill slightly past the mask without being
   clipped, so their glow doesn't look chopped off. */
.feature-card__illustration {
  position: relative;
  height: 232px;
  flex-shrink: 0;
  perspective: 700px;
}
.feature-card__media-mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.feature-card__illustration .glow {
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
}
.feature-card__img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  mask-image: radial-gradient(ellipse 78% 82% at 50% 42%, black 45%, transparent 94%);
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 42%, black 45%, transparent 94%);
}
/* Dissolves the image into the card's own dark surface so the title can
   sit on top of it without a hard seam. */
.feature-card__media-fade {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  height: 78%;
  background: linear-gradient(to bottom, transparent 0%, rgba(9, 9, 10, 0.92) 92%);
  pointer-events: none;
}
.feature-card__badge {
  position: relative;
  z-index: 3;
  width: 46px;
  height: 46px;
  margin: 22px 0 0 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border-hover);
  background: var(--glass-bg-raised);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.feature-card[data-accent="orange"] .feature-card__badge {
  color: var(--accent-orange);
  border-color: rgba(255, 107, 0, 0.4);
}
.feature-card[data-accent="green"] .feature-card__badge {
  color: var(--accent-green);
  border-color: rgba(52, 211, 153, 0.4);
}
.feature-card__badge svg {
  width: 20px;
  height: 20px;
}
/* Small floating glass chips overlapping the illustration, like the
   reference's tag pills peeking around its lightbulb/folder art. Purely
   decorative — same icon set, no new copy. */
.feature-card__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--glass-bg-raised);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
  color: var(--shell-ink-faint);
}
.feature-card__chip svg {
  width: 15px;
  height: 15px;
}
.feature-card__chip--a {
  top: 24px;
  right: 24px;
  transform: rotate(-8deg);
}
.feature-card__chip--b {
  bottom: 30%;
  left: 8%;
  transform: rotate(6deg);
}
@media (max-width: 480px) {
  .feature-card__chip {
    display: none;
  }
}
/* Pulled up over the image's lower, faded edge — the title sits partly on
   the artwork instead of cleanly below it. */
.feature-card__content {
  position: relative;
  z-index: 3;
  margin-top: -54px;
  padding: 0 32px 32px;
}
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--shell-ink);
  letter-spacing: -0.005em;
}
.feature-card__body {
  margin-top: 10px;
  color: var(--shell-ink-muted);
  font-size: 13.5px;
  line-height: 1.65;
  font-weight: 320;
}

/* ══════════════════ STATEMENT ══════════════════ */
.statement {
  position: relative;
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 0;
  min-height: clamp(520px, 68vh, 740px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.statement__gate {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.statement__gate .glow {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}
.statement__img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  opacity: 0.8;
  mask-image: radial-gradient(ellipse 58% 68% at 50% 42%, black 40%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 58% 68% at 50% 42%, black 40%, transparent 92%);
}
.statement__kicker {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell-ink-faint);
  margin-bottom: 20px;
}
.statement__title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--shell-ink-dim);
  max-width: 20ch;
  margin: 0 auto;
}
.statement__title span {
  display: block;
}
.statement__title span:first-child {
  color: var(--shell-ink);
}
.statement__icons {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.statement__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--shell-ink-faint);
}
.statement__icon svg {
  width: 20px;
  height: 20px;
}

/* ══════════════════ DOJO SHOWCASE (closing) ══════════════════ */
.dojo-showcase-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.dojo-showcase-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -14%;
  left: 6%;
  width: 88%;
  height: 130%;
  background: radial-gradient(ellipse 60% 55% at 50% 35%, var(--accent-orange-glow) 0%, transparent 72%);
  opacity: 0.3;
  pointer-events: none;
}
/* Forced to one column-span each — the shared .dojo-tile rule assumes a
   6-column grid (span 6), which would break this dedicated 3-column
   showcase. .dojo-tile--showcase's own padding/overflow reset now lives
   in app.css (shared with hub.js's grid); only the grid-column override
   is specific to this 3-column layout. */
.dojo-showcase-grid .dojo-tile--showcase {
  grid-column: auto;
}
/* Cascading "stepping down" arrangement, on margin rather than transform:
   the fan-out entrance (and the reduced-motion fallback) both write their
   own inline transform on these elements at rest, which would silently
   erase a transform-based offset. */
.dojo-showcase-grid .dojo-tile:nth-child(2) {
  margin-top: 26px;
}
.dojo-showcase-grid .dojo-tile:nth-child(3) {
  margin-top: 52px;
}
.dojo-showcase-grid .dojo-tile:hover {
  transform: translateY(-10px);
  box-shadow: var(--glass-inner-glow), var(--glass-shadow), 0 0 64px -14px var(--dojo-accent-soft);
}

/* The Dojo card's own art/content system (.dojo-tile__art--photo and
   everything inside it) moved to app.css — see js/views/dojoTile.js
   dojoCardHtml(), now shared with hub.js's "Your Dojos" grid. */

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .dojo-showcase-grid {
    grid-template-columns: 1fr;
  }
  .dojo-showcase-grid .dojo-tile:nth-child(2),
  .dojo-showcase-grid .dojo-tile:nth-child(3) {
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  .hero-v2__rays {
    width: 1000px;
    height: 1000px;
  }
  .hero-v2__visual {
    perspective: none;
  }
  .statement__icons {
    gap: 12px;
  }
}

