/* Home page layout — v0715b (EN + ZH share this file) */

html[lang="zh-CN"] h1 em { font-style: normal; }

/* ================= WEB TOKENS =================
         Derived from the v0719 app canon (single warm action accent + neutral base):
         - --accent (#F6B54B amber gold) appears ONLY on primary CTAs and true hero moments.
         - --kicker (soft amber) is the ONE secondary hue on the web: section kickers,
           small glows. No per-section hue coding — blue/purple stay inside the
           app screenshots as data colors.
         - Surfaces are neutral-warm (matching the app's #16161b family), not
           blue-gray, so real app screenshots sit inside them without a
           temperature clash.
         - No external fonts: system stack renders SF on Apple devices and
           degrades safely where Google Fonts is unreachable (mainland China). */

      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
      }

      /* film grain: kills the flat-void look on large dark areas */

      .wrap {
        width: calc(100% - 40px);
        max-width: var(--max);
        margin: 0 auto;
      }

      /* ---------- entrance motion (time-based, fires once on paint) ---------- */
      @keyframes settle-in {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .reveal {
        animation: settle-in 0.8s var(--ease) both;
      }

      @media (prefers-reduced-motion: reduce) {
        .reveal {
          animation: none !important;
          opacity: 1 !important;
          transform: none !important;
        }
      }

      /* ---------- kicker: stadium bib chip ---------- */
      .kicker {
        display: inline-flex;
        align-items: center;
        padding: 7px 14px;
        color: var(--kicker);
        border: 1px solid rgba(246, 181, 75, 0.45);
        border-radius: 999px;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.16em;
        text-transform: uppercase;
      }

      /* ---------- hero ---------- */
      .hero {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.6fr);
        align-items: center;
        gap: 48px;
        padding: 72px 0 64px;
      }

      .hero-copy {
        max-width: 640px;
      }

      h1 {
        max-width: 900px;
        margin: 22px 0 0;
        font-weight: 900;
        font-size: clamp(2.5rem, 3.9vw, 4rem);
        line-height: 0.99;
        letter-spacing: -0.015em;
        text-transform: uppercase;
      }

      h1 em {
        font-style: normal;
        color: var(--accent);
      }

      .hero-sub {
        max-width: 620px;
        margin: 20px 0 0;
        color: var(--muted);
        font-size: 1.18rem;
        font-weight: 600;
      }

      .hero-lead {
        max-width: 600px;
        margin: 14px 0 0;
        color: var(--quiet);
        font-size: 1.02rem;
      }

      .hero-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 32px;
      }

      /* capability strip under the hero CTAs (Meshy-style inventory line) */
      .cap-strip {
        display: flex;
        gap: 10px 26px;
        flex-wrap: wrap;
        margin-top: 30px;
      }

      .cap-strip span {
        display: inline-flex;
        align-items: center;
        color: var(--muted);
        font-size: 0.9rem;
        font-weight: 700;
      }

      .cap-strip span::before {
        content: "";
        width: 5px;
        height: 5px;
        margin-right: 8px;
        border-radius: 50%;
        background: var(--kicker);
      }

      .cap-strip b {
        color: var(--text);
      }

      /* three-step flow strip (Meshy's input→generate→download pattern) */
      .steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        padding: 8px 0 56px;
      }

      .step {
        padding: 22px 24px;
        background: var(--card-grad);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--card-edge);
      }

      .step small {
        color: var(--kicker);
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .step strong {
        display: block;
        margin-top: 8px;
        font-size: 1.04rem;
        font-weight: 800;
      }

      .step p {
        margin: 6px 0 0;
        color: var(--quiet);
        font-size: 0.9rem;
      }

      /* greyed-out App Store placeholder with hover tip */
      .button.disabled {
        position: relative;
        opacity: 0.45;
        cursor: not-allowed;
      }

      .button.disabled:hover::after,
      .button.disabled:focus-visible::after {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        padding: 6px 11px;
        content: attr(data-tip);
        color: var(--text);
        background: var(--surface-3);
        border: 1px solid var(--line-strong);
        border-radius: 8px;
        font-size: 0.74rem;
        font-weight: 700;
        white-space: nowrap;
        transform: translateX(-50%);
        opacity: 1;
      }

      /* hero visual: one real screenshot + a floating coach quote pulled from
         the same conversation shown in the shot */
      .hero-visual {
        position: relative;
        z-index: 1;
        display: grid;
        place-items: center;
      }

      .hero-visual .shot {
        width: min(330px, 88%);
      }

      .hero-visual .float-note {
        right: -2%;
        bottom: 7%;
      }

      /* ---------- iPhone-framed screenshot ----------
         Real-proportion device, always the FULL phone (never a cropped
         body — resize, don't reshape). Frame anatomy, outside-in:
         bright hairline rim → dark titanium edge → black bezel → display.
         Glass gets a faint diagonal sheen; the phone sits on a contact
         shadow plus a wide ambient one. */
      .shot {
        position: relative;
        flex-shrink: 0;
        padding: 11px;
        background: #050506;
        border-radius: 54px;
        box-shadow:
          0 0 0 2px #46464c,
          0 0 0 2.75px rgba(255, 255, 255, 0.32),
          0 3px 8px rgba(0, 0, 0, 0.55),
          0 28px 60px -12px rgba(0, 0, 0, 0.7),
          0 70px 140px -30px rgba(0, 0, 0, 0.55);
      }

      /* side buttons: volume (left ×2) + power (right), flush with the rim */
      .shot::before {
        position: absolute;
        top: 17%;
        left: -4.5px;
        width: 2.5px;
        height: 42px;
        content: "";
        background: linear-gradient(90deg, #55555c, #2c2c31);
        border-radius: 2px 0 0 2px;
        box-shadow: 0 58px 0 #3d3d44;
      }

      .shot::after {
        position: absolute;
        top: 23%;
        right: -4.5px;
        width: 2.5px;
        height: 64px;
        content: "";
        background: linear-gradient(270deg, #55555c, #2c2c31);
        border-radius: 0 2px 2px 0;
      }

      .shot img {
        width: 100%;
        aspect-ratio: 402 / 874;
        object-fit: cover;
        object-position: top;
        border-radius: 43px;
      }

      /* glass sheen */
      .shot .fade {
        position: absolute;
        inset: 11px;
        z-index: 1;
        border-radius: 43px;
        background: linear-gradient(115deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 34%, transparent 55%);
        pointer-events: none;
      }

      /* floating chat/coach quote card */
      .float-note {
        position: absolute;
        z-index: 3;
        max-width: 244px;
        padding: 12px 14px;
        background: rgba(26, 25, 29, 0.92);
        border: 1px solid rgba(246, 181, 75, 0.32);
        border-radius: 14px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 60px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(12px);
      }

      .float-note .who {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--accent);
        font-size: 0.66rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .float-note .who::before {
        display: inline-block;
        width: 14px;
        height: 14px;
        content: "";
        background: var(--accent);
        border-radius: 50%;
      }

      .float-note p {
        margin: 7px 0 0;
        color: var(--text);
        font-size: 0.85rem;
        line-height: 1.42;
      }

      .tag-float {
        position: absolute;
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        color: var(--text);
        background: rgba(24, 23, 26, 0.94);
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 800;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
        backdrop-filter: blur(6px);
      }

      /* ---------- pillar sections ---------- */
      .pillar {
        position: relative;
        padding: 100px 0;
        overflow: hidden;
      }

      .pillar + .pillar,
      .band,
      .closing {
        border-top: 1px solid var(--line);
      }

      .pillar-glow {
        position: absolute;
        top: -18rem;
        z-index: 0;
        width: 46rem;
        height: 46rem;
        pointer-events: none;
        border-radius: 50%;
        opacity: 0.45;
        background: radial-gradient(circle, rgba(115, 199, 200, 0.13), transparent 68%);
      }

      .pillar:nth-of-type(odd) .pillar-glow {
        right: -14rem;
      }

      .pillar:nth-of-type(even) .pillar-glow {
        left: -14rem;
      }

      .pillar-inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
        gap: 56px;
        align-items: center;
      }

      .pillar.reverse .pillar-inner {
        grid-template-columns: minmax(420px, 1fr) minmax(0, 0.8fr);
      }

      .pillar.reverse .pillar-copy {
        order: 2;
      }

      .pillar-copy {
        position: relative;
        z-index: 1;
        max-width: 520px;
      }

      .pillar-copy h2 {
        margin: 14px 0 0;
        font-weight: 800;
        font-size: clamp(1.9rem, 3vw, 2.9rem);
        line-height: 1.06;
        letter-spacing: -0.025em;
      }

      .pillar-sub {
        margin: 14px 0 0;
        color: var(--muted);
        font-size: 1.08rem;
        font-weight: 600;
      }

      .pillar-body {
        margin: 16px 0 0;
        color: var(--quiet);
        font-size: 1rem;
        max-width: 62ch;
      }

      .chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
      }

      .chip {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 13px;
        color: var(--muted);
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.01em;
      }

      .pillar-visual {
        position: relative;
        z-index: 1;
        min-width: 0;
      }

      /* the result page as it really is — one continuous long page, fading
         out at the bottom to say "it keeps going" */
      .page-wrap {
        position: relative;
        display: grid;
        place-items: start center;
        padding: 30px 0 8px;
      }

      .page-shot {
        position: relative;
        width: min(430px, 100%);
        max-height: 760px;
        overflow: hidden;
        background: #0b0a0d;
        border: 1px solid var(--line-strong);
        border-radius: 26px;
        box-shadow: var(--card-edge), var(--shadow-lg);
      }

      .page-shot img {
        width: 100%;
        display: block;
      }

      .page-shot::after {
        position: absolute;
        inset: auto 0 0 0;
        height: 150px;
        content: "";
        background: linear-gradient(to bottom, transparent, #08070a 94%);
        pointer-events: none;
      }

      /* solo: ONE device per section, floating on a soft spotlight */
      .solo {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 520px;
        padding: 20px 0;
      }

      .solo::before,
      .hero-visual::before,
      .page-wrap::before {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 0;
        width: 38rem;
        height: 38rem;
        content: "";
        pointer-events: none;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(243, 154, 62, 0.14) 0%, rgba(243, 154, 62, 0.05) 42%, transparent 68%);
        filter: blur(4px);
        transform: translate(-50%, -50%);
      }

      .page-wrap .page-shot,
      .page-wrap .float-note {
        z-index: 1;
      }

      .solo .shot,
      .hero-visual .shot {
        position: relative;
        z-index: 1;
      }

      .solo .shot {
        width: 330px;
      }

      .solo .tag-float.tl {
        top: 6%;
        left: 2%;
      }

      .solo .tag-float.br {
        right: 2%;
        bottom: 8%;
      }

      /* ---------- bands ---------- */
      .band {
        padding: 72px 0;
      }

      /* island panel: one band per page gets lifted onto its own surface to
         break the uniform darkness */
      .band.panel {
        margin: 72px auto;
        padding: 56px 48px 60px;
        background: linear-gradient(180deg, #0f0e12 0%, #0b0a0d 100%);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--card-edge);
      }

      @media (max-width: 760px) {
        .band.panel {
          padding: 36px 22px 40px;
        }
      }

      .band-head {
        max-width: 640px;
      }

      .band-head h2 {
        margin: 14px 0 0;
        font-weight: 800;
        font-size: clamp(1.6rem, 2.4vw, 2.2rem);
        line-height: 1.1;
      }

      .goal-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        margin-top: 36px;
      }

      .goal-grid.grid-4 {
        grid-template-columns: repeat(4, 1fr);
      }

      @media (max-width: 1080px) {
        .goal-grid.grid-4 {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      .goal-card {
        padding: 24px 24px 22px;
        background: var(--card-grad);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--card-edge);
        transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
      }

      .goal-card:hover {
        transform: translateY(-2px);
        border-color: var(--line-strong);
      }

      @media (prefers-reduced-motion: reduce) {
        .goal-card:hover {
          transform: none;
        }
      }

      .goal-card h3 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
      }

      .goal-card p {
        margin: 8px 0 0;
        color: var(--quiet);
        font-size: 0.9rem;
        line-height: 1.5;
      }

      /* ---------- hyrox band ---------- */
      .hyrox-band .band-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
        gap: 48px;
        align-items: center;
      }

      .hyrox-card {
        padding: 26px;
        background: var(--card-grad);
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--card-edge), var(--shadow);
      }

      .hyrox-card .hb-label {
        color: var(--quiet);
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

      .hyrox-card .hb-time {
        margin-top: 6px;
        font-size: clamp(2.2rem, 4vw, 3rem);
        font-weight: 800;
        letter-spacing: -0.01em;
        line-height: 1;
        background: var(--accent-grad);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .hyrox-card .hb-chips {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 16px;
      }

      .hyrox-card .hb-chips span {
        padding: 6px 10px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 700;
      }

      /* ---------- closing ---------- */
      .closing {
        position: relative;
        padding: 96px 0;
        overflow: hidden;
        text-align: center;
      }

      .closing::before {
        position: absolute;
        top: -20rem;
        left: 50%;
        z-index: 0;
        width: 60rem;
        height: 40rem;
        content: "";
        background: radial-gradient(circle, rgba(243, 154, 62, 0.13), transparent 65%);
        transform: translateX(-50%);
      }

      .closing-inner {
        position: relative;
        z-index: 1;
        max-width: 720px;
        margin: 0 auto;
      }

      .closing h2 {
        margin: 14px 0 0;
        font-weight: 800;
        font-size: clamp(2rem, 3.4vw, 3.2rem);
        line-height: 1.06;
      }

      .closing p {
        margin: 16px auto 0;
        max-width: 480px;
        color: var(--quiet);
        font-size: 1.02rem;
      }

      .closing-actions {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 30px;
      }

      /* ---------- responsive ---------- */
      @media (max-width: 1080px) {
        .hero {
          grid-template-columns: 1fr;
          gap: 40px;
        }

        .hero-visual {
          max-width: 420px;
          margin: 0 auto;
        }

        .pillar-inner,
        .pillar.reverse .pillar-inner {
          grid-template-columns: 1fr;
        }

        .pillar,
        .pillar.reverse {
          padding: 72px 0;
        }

        .pillar.reverse .pillar-copy {
          order: 0;
        }

        .pillar-copy {
          max-width: 640px;
        }

        .solo {
          min-height: 460px;
        }

        .hyrox-band .band-inner {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 760px) {
        .wrap {
          width: calc(100% - 28px);
        }

        .site-header {
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
          padding: 14px 0;
        }

        .nav-links {
          width: 100%;
          justify-content: space-between;
          flex-wrap: wrap;
          white-space: normal;
        }

        .steps {
          grid-template-columns: 1fr;
        }

        .goal-grid,
        .goal-grid.grid-4 {
          grid-template-columns: 1fr;
        }

        .nav-links a {
          padding: 0 8px;
          font-size: 0.78rem;
        }

        .hero {
          padding: 46px 0 24px;
        }

        h1 {
          font-size: clamp(2.1rem, 9vw, 2.7rem);
        }

        .pillar,
        .pillar.reverse {
          padding: 52px 0;
        }

        .pillar-copy h2 {
          font-size: clamp(1.7rem, 7vw, 2.2rem);
        }

        .solo {
          min-height: 380px;
        }

        .solo .shot {
          width: 72%;
        }

        .float-note {
          max-width: 68%;
        }

        /* the race-section note is nudged off-canvas on desktop; pull it back */
        .page-wrap .float-note {
          left: 4px !important;
        }

        .goal-grid {
          grid-template-columns: 1fr;
        }

        .closing {
          padding: 64px 0;
        }

        .site-footer {
          flex-direction: column;
          gap: 20px;
        }
      }

      @media (max-width: 480px) {
        .solo {
          min-height: 320px;
        }
      }
