/* ──────────────────────────────────────────────────────────────
   UNBROKEN PROTOCOL — PREMIUM FRONT DOOR
   New homepage hero, R.A.C.E. Method section, and credibility strip.

   All classes prefixed `up-` to isolate from existing styles.
   Uses existing site tokens: --bg, --action, --border, --elevated,
   --text-bright, --text-secondary, --text-muted.
   ────────────────────────────────────────────────────────────── */

/* Local tokens scoped to the redesign sections only */
.up-hero, .up-method, .up-cred-strip {
    --up-ring-ns:    #FFE500;
    --up-ring-rec:   #00EAFF;
    --up-ring-sleep: #0080FF;
    --up-ring-bio:   #FFA500;
    --up-critical:   #FF0044;

    --up-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --up-ease-snap: cubic-bezier(0.22, 1.2, 0.36, 1);
}
.up-hero *, .up-method *, .up-cred-strip * {
    box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────────
   ATMOSPHERIC BACKGROUND
   Scoped inside .up-hero so it only affects new sections.
   ────────────────────────────────────────────────────────────── */

.up-aurora {
    display: none;
}
.up-aurora-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    animation: up-aurora-fade-in 2s var(--up-ease-out) 0.2s forwards,
               up-aurora-drift 60s linear infinite;
}
.up-aurora-1 {
    width: 700px; height: 700px;
    top: -200px; right: -200px;
    background: radial-gradient(circle, rgba(255,229,0,0.10) 0%, transparent 70%);
}
.up-aurora-2 {
    width: 600px; height: 600px;
    bottom: -200px; left: -200px;
    background: radial-gradient(circle, rgba(0,234,255,0.08) 0%, transparent 70%);
    animation-duration: 2s, 80s;
}
.up-aurora-3 {
    width: 500px; height: 500px;
    top: 40%; left: 30%;
    background: radial-gradient(circle, rgba(0,128,255,0.05) 0%, transparent 70%);
    animation-duration: 2s, 100s;
}
@keyframes up-aurora-fade-in { to { opacity: 1; } }
@keyframes up-aurora-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(80px, -60px) scale(1.05); }
    66%  { transform: translate(-60px, 40px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ──────────────────────────────────────────────────────────────
   HERO V3 — premium replacement
   ────────────────────────────────────────────────────────────── */

.up-hero {
    position: relative;
    padding: 64px 32px 40px;
    background: var(--bg);
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.014em;
}

.up-hero-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.up-hero-actions { margin-top: 24px; justify-content: center; }

/* Hero text section — appears below the fold */
.up-hero-text {
    background: var(--bg);
    padding: 96px 32px;
    position: relative;
    z-index: 2;
}
.up-hero-text-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: center;
    text-align: left;
}
.up-hero-text-copy { min-width: 0; }
.up-hero-content { position: relative; max-width: 560px; }
.up-hero-content h1 { text-align: left; }
.up-hero-trust { margin-top: 40px; justify-content: flex-start; }

.up-hero-text-image {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--elevated);
}
.up-hero-text-image img,
.up-hero-text-image video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1493 / 1054;
    object-fit: cover;
}

/* Eyebrow chip */
.up-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 12px;
    background: rgba(255,229,0,0.08);
    border: 1px solid rgba(255,229,0,0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--action);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.up-pulse {
    width: 8px; height: 8px;
    background: var(--action);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 12px rgba(255,229,0,0.7);
}
.up-pulse::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--action);
    animation: up-pulse 2s var(--up-ease-out) infinite;
}
@keyframes up-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* Headline */
.up-hero h1,
.up-hero-text h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(56px, 7.6vw, 116px);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: var(--text-bright);
    margin: 0 0 24px 0;
}
.up-hero h1 span,
.up-hero-text h1 span {
    display: block;
}
.up-hero h1 em,
.up-hero-text h1 em {
    font-style: italic;
    color: var(--action);
    font-weight: 900;
}

.up-hero-body {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 0 32px 0;
    letter-spacing: -0.008em;
}

/* Hero actions — single CTA + soft secondary */
.up-hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.up-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--action);
    color: var(--bg);
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    padding: 20px 32px;
    font-size: 17px;
    letter-spacing: -0.005em;
    border-radius: 999px;
    transition: transform 0.25s var(--up-ease-snap),
                box-shadow 0.25s var(--up-ease-out),
                background 0.2s var(--up-ease-out);
    position: relative;
    overflow: hidden;
}
.up-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, var(--overlay-3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s var(--up-ease-out);
}
.up-btn-primary svg { transition: transform 0.3s var(--up-ease-snap); }
/* Hover lift only where a real pointer exists — on touch it would stick after tap */
@media (hover:hover) and (pointer:fine) {
    .up-btn-primary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 12px 36px rgba(255,229,0,0.32), 0 0 0 1px rgba(255,229,0,0.4);
    }
    .up-btn-primary:hover::before { transform: translateX(100%); }
    .up-btn-primary:hover svg { transform: translateX(4px); }
}
/* Press feedback — applies on every device, including touch */
.up-btn-primary:active { transform: scale(0.97); transition-duration: 0.1s; }

.up-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-bright);
    font-weight: 600;
    font-size: 16px;
    padding: 16px 8px;
    text-decoration: none;
    position: relative;
}
.up-link-secondary::after {
    content: "";
    position: absolute;
    left: 8px; right: 8px; bottom: 12px;
    height: 2px;
    background: var(--action);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--up-ease-out);
}
.up-link-secondary:hover::after { transform: scaleX(1); }
.up-link-secondary svg { transition: transform 0.3s var(--up-ease-snap); }
.up-link-secondary:hover svg { transform: translateX(3px); }

/* Trust strip */
.up-hero-trust {
    display: flex;
    align-items: center;
    gap: 32px;
}
.up-trust-item { display: flex; flex-direction: column; gap: 4px; }
.up-trust-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.03em;
    line-height: 1;
}
.up-trust-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.up-trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* ──────────────────────────────────────────────────────────────
   4-RING PROTOCOL SCORE GRAPHIC
   ────────────────────────────────────────────────────────────── */

.up-hero-visual {
    position: relative;
    aspect-ratio: 928 / 1009;
    max-width: 780px;
    max-height: 76svh;
    width: 100%;
    margin: 0 auto;
    transition: transform 0.4s var(--up-ease-out);
}

.up-hero-watch {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
/* LCP-safe entrance: the first painted frame must be a plain static image.
   Some Chrome builds (incl. PSI's runners) emit no LCP candidate for an
   image that is mid-animation on a will-change:transform layer at first
   paint, which makes Performance unscoreable (NO_LCP). index.html adds
   .up-anim on <html> via double-requestAnimationFrame, i.e. one frame
   AFTER first paint, so the glide-in still plays but the LCP frame is
   static. Keyframes stay transform-only for the same reason. */
.up-anim .up-hero-visual { will-change: transform; }
.up-anim .up-hero-watch {
    animation: up-watch-enter 1.1s var(--up-ease-out) 0.4s backwards,
               up-ring-breathe 6s ease-in-out 1.6s infinite;
}
@keyframes up-watch-enter {
    from { transform: scale(0.96) translateY(8px); }
    to   { transform: scale(1)    translateY(0); }
}
@keyframes up-ring-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.012); }
}

.up-legend-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* Reveal animations */
.up-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--up-ease-out), transform 0.8s var(--up-ease-out);
}
.up-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────
   METHOD SECTION — R.A.C.E. 4 stages
   ────────────────────────────────────────────────────────────── */

.up-method {
    position: relative;
    border-top: 1px solid rgba(28,42,53,0.5);
    background:
        radial-gradient(ellipse at top, rgba(0,234,255,0.025) 0%, transparent 60%),
        var(--bg);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.up-section-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 140px 32px;
    position: relative;
    z-index: 2;
}

.up-section-header {
    max-width: 720px;
    margin-bottom: 80px;
}

.up-positioning-band {
    background: var(--bg);
    padding: 56px 32px 24px;
    text-align: center;
}

.up-eyebrow-static {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 12px;
    background: rgba(255,229,0,0.08);
    border: 1px solid rgba(255,229,0,0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--action);
    margin-bottom: 32px;
}

.up-section-h {
    font-size: clamp(48px, 5.5vw, 84px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--text-bright);
    margin: 0 0 24px 0;
}

.up-section-lede {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
    letter-spacing: -0.008em;
    max-width: 580px;
    margin: 0;
}

.up-phase-carousel {
    position: relative;
    margin-bottom: 64px;
}
.up-phase-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 360px;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 32px;
    padding: 8px 32px 32px;
    margin: 0 -32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.up-phase-grid::-webkit-scrollbar { display: none; }

.up-phase {
    position: relative;
    background: rgba(15,25,35,0.6);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    scroll-snap-align: center;
    transition: transform 0.35s var(--up-ease-out),
                border-color 0.3s var(--up-ease-out),
                background 0.3s var(--up-ease-out),
                box-shadow 0.3s var(--up-ease-out);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.up-phase-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.up-phase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--up-ease-out);
}
.up-phase:hover .up-phase-image img { transform: scale(1.04); }

.up-phase-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.up-phase-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--up-phase-color) 0%, transparent 100%);
    transition: height 0.3s var(--up-ease-out);
}
.up-phase:hover {
    transform: translateY(-6px);
    background: rgba(15,25,35,0.9);
    border-color: var(--up-phase-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--up-phase-color);
}
.up-phase:hover .up-phase-bar { height: 5px; }

.up-phase-recover    { --up-phase-color: var(--up-ring-rec); }
.up-phase-align      { --up-phase-color: var(--up-ring-sleep); }
.up-phase-condition  { --up-phase-color: var(--up-ring-bio); }
.up-phase-execute    { --up-phase-color: var(--up-critical); }

.up-phase-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}
.up-phase-letter {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--up-phase-color);
    text-shadow: 0 0 40px var(--up-phase-color);
    transition: text-shadow 0.4s var(--up-ease-out);
}
.up-phase:hover .up-phase-letter {
    text-shadow: 0 0 60px var(--up-phase-color);
}
.up-phase-range {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--overlay-1);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.up-phase-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-bright);
    margin: 0 0 12px 0;
    line-height: 1.1;
}
.up-phase-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
    letter-spacing: -0.005em;
    margin: 0;
}

/* Carousel dot indicators */
.up-phase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}
.up-phase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--overlay-3);
    transition: background 0.25s var(--up-ease-out),
                transform 0.25s var(--up-ease-out);
}
.up-phase-dot.is-active {
    background: var(--action);
    transform: scale(1.25);
}
/* Wide desktop: show all four stages at once. Previously a horizontal
   scroller with a hidden scrollbar, which left the 4th card
   undiscoverable on desktop. */
@media (min-width: 1240px) {
    .up-phase-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-columns: unset;
        overflow: visible;
        scroll-snap-type: none;
        margin: 0;
        padding: 8px 0 16px;
    }
    .up-phase-dots { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   CREDIBILITY STRIP
   Quiet credibility — athlete-first philosophy
   ────────────────────────────────────────────────────────────── */

.up-cred-strip {
    position: relative;
    border-top: 1px solid rgba(28,42,53,0.5);
    border-bottom: 1px solid rgba(28,42,53,0.5);
    background:
        linear-gradient(180deg, rgba(15,25,35,0.4) 0%, rgba(8,12,15,0.4) 100%),
        var(--bg);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.up-cred-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 56px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}
.up-cred-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.005em;
    line-height: 1.5;
}
.up-cred-pre {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.up-cred-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.012em;
}
.up-cred-sep {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
}
.up-cred-meta {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}
.up-cred-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.up-cred-logo {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.25s var(--up-ease-out);
}
.up-cred-logo:hover { color: var(--text-bright); }
.up-cred-dot {
    width: 3px; height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    opacity: 0.6;
}
.up-cred-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 4px 0;
    text-decoration: none;
    position: relative;
    transition: color 0.25s var(--up-ease-out);
}
.up-cred-link::after {
    content: "";
    position: absolute;
    left: 0; right: 16px; bottom: -2px;
    height: 1px;
    background: var(--text-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--up-ease-out), background 0.25s var(--up-ease-out);
}
.up-cred-link:hover { color: var(--action); }
.up-cred-link:hover::after { transform: scaleX(1); background: var(--action); }
.up-cred-link svg { transition: transform 0.25s var(--up-ease-snap); }
.up-cred-link:hover svg { transform: translateX(3px); }

/* Scroll-triggered reveal */
.up-scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--up-ease-out), transform 0.9s var(--up-ease-out);
}
.up-scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .up-hero-visual { max-width: 100%; max-height: none; }
    .up-hero-text { padding: 60px 24px; }
    .up-hero-text-inner { grid-template-columns: 1fr; gap: 40px; }
    .up-hero-content { text-align: left; }
    .up-hero-trust { justify-content: flex-start; }
    .up-phase-grid { grid-auto-columns: 320px; }
}

@media (max-width: 640px) {
    .up-hero { padding: 40px 12px 24px; }
    .up-hero-inner { width: 100%; max-width: 100%; }
    .up-hero-visual { width: 100%; max-width: 100%; margin: 0 auto; }
    .up-hero-actions { padding: 0 8px; box-sizing: border-box; width: 100%; }
    .up-hero-text { padding: 48px 20px; }
    .up-hero h1 { font-size: clamp(40px, 10vw, 56px); letter-spacing: -0.035em; line-height: 0.96; }
    .up-hero-body { font-size: 17px; }
    .up-eyebrow { font-size: 11px; padding: 7px 12px 7px 10px; margin-bottom: 24px; }
    .up-hero-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
    .up-btn-primary { width: 100%; justify-content: center; }
    .up-link-secondary { justify-content: center; }
    .up-hero-trust { gap: 16px; flex-wrap: wrap; }
    .up-trust-num { font-size: 20px; }
    .up-trust-label { font-size: 10px; }
    .up-trust-divider { height: 24px; }

    .up-section-inner { padding: 96px 20px; }
    .up-section-h { font-size: clamp(36px, 9vw, 56px); }
    .up-section-lede { font-size: 17px; }
    .up-phase-grid {
        grid-auto-columns: 82vw;
        gap: 16px;
        scroll-padding: 20px;
        padding: 8px 20px 24px;
        margin: 0 -20px;
    }
    .up-phase-letter { font-size: 64px; }
    .up-phase-name { font-size: 24px; }
    .up-phase-body { padding: 24px; }
    .up-phase-image { aspect-ratio: 16 / 10; }

    .up-cred-inner { padding: 40px 20px; gap: 20px; }
    .up-cred-row { font-size: 13px; gap: 10px; }
    .up-cred-name { font-size: 15px; }
    .up-cred-meta { font-size: 12px; }
    .up-cred-logo { font-size: 13px; }
    .up-cred-logos { gap: 14px; }
    .up-cred-sep { display: none; }

    .up-hero-visual { max-width: 100%; }
}

/* Accessibility — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .up-hero *, .up-method *, .up-cred-strip *,
    .up-hero *::before, .up-method *::before, .up-cred-strip *::before,
    .up-hero *::after, .up-method *::after, .up-cred-strip *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .up-reveal, .up-scroll-reveal { opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────────────────────
   APP PAGE HERO — Realistic angled iPhone
   Single iPhone Pro Max, 3D perspective tilt, titanium edge,
   real app screenshot inside. Premium product-render aesthetic.
   ────────────────────────────────────────────────────────────── */

.up-app-hero {
    position: relative;
    z-index: 1;
    padding: 140px 32px 100px;
    overflow: hidden;
}

.up-app-hero-inner {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.up-app-hero-content { position: relative; }

.up-app-hero h1 {
    font-size: clamp(56px, 7.2vw, 116px);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: var(--text-bright);
    margin: 0 0 28px;
}
.up-app-hero h1 span { display: block; }
.up-app-hero h1 em {
    font-style: italic;
    color: var(--action);
    font-weight: 900;
}

.up-app-hero .up-hero-body {
    font-size: 20px;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 40px;
    letter-spacing: -0.008em;
}

/* Waitlist progress strip */
.up-waitlist-meta { margin-top: 48px; max-width: 460px; }
.up-waitlist-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}
.up-waitlist-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--action) 0%, #00EAFF 100%);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255,229,0,0.5);
    position: relative;
    overflow: hidden;
}
.up-waitlist-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, var(--overlay-3) 50%, transparent 100%);
    animation: up-shimmer 3s linear infinite;
}
@keyframes up-shimmer { to { transform: translateX(200%); } }

.up-waitlist-numbers {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: -0.005em;
}
.up-waitlist-current { font-weight: 800; color: var(--action); font-size: 18px; }
.up-waitlist-divider { color: var(--text-muted); }
.up-waitlist-target { font-weight: 700; color: var(--text-bright); }
.up-waitlist-label { margin-left: 6px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary); }

/* ── iPhone Pro Max realistic mockup ─────────────────────────── */

.up-iphone-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    perspective: 2000px;
    perspective-origin: 50% 50%;
}

.up-iphone {
    position: relative;
    width: 100%;
    aspect-ratio: 1206 / 2622;
    transform: rotateY(-14deg) rotateZ(-2deg);
    transform-style: preserve-3d;
    filter:
        drop-shadow(0 80px 80px rgba(0,0,0,0.55))
        drop-shadow(0 40px 40px rgba(0,0,0,0.35));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.up-iphone-frame {
    position: absolute;
    inset: 0;
    border-radius: 14% / 6.5%;
    background:
        linear-gradient(
            135deg,
            #6e6e72 0%,
            #3a3a3d 8%,
            #5c5c61 22%,
            #2a2a2d 42%,
            #4e4e54 62%,
            #2a2a2d 82%,
            #6e6e72 100%
        );
    padding: 1.6%;
    box-shadow:
        inset 0 0 0 1px var(--overlay-3),
        inset 0 1px 0 var(--overlay-3),
        inset 0 -1px 0 rgba(0,0,0,0.5);
}

.up-iphone-bezel {
    width: 100%;
    height: 100%;
    border-radius: 12.5% / 5.8%;
    background: var(--bg);
    padding: 1.4%;
    overflow: hidden;
    position: relative;
}

.up-iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 11% / 5.1%;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: var(--bg);
}

/* Dynamic Island */
.up-iphone-island {
    position: absolute;
    top: 2.6%;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 4%;
    background: var(--bg);
    border-radius: 100px;
    z-index: 4;
    box-shadow: inset 0 1px 0 var(--overlay-1);
}

/* Side buttons */
.up-iphone-btn {
    position: absolute;
    background: linear-gradient(to right, #1a1a1d 0%, #4a4a4f 50%, #1a1a1d 100%);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
    z-index: 1;
}
.up-iphone-btn-action {
    left: -0.5%;
    top: 14%;
    width: 1%;
    height: 4.4%;
    border-radius: 1px 0 0 1px;
}
.up-iphone-btn-vup {
    left: -0.5%;
    top: 21%;
    width: 1%;
    height: 7%;
    border-radius: 1px 0 0 1px;
}
.up-iphone-btn-vdown {
    left: -0.5%;
    top: 29%;
    width: 1%;
    height: 7%;
    border-radius: 1px 0 0 1px;
}
.up-iphone-btn-power {
    right: -0.5%;
    top: 22%;
    width: 1%;
    height: 10%;
    border-radius: 0 1px 1px 0;
}

/* Floor reflection */
.up-iphone-reflection {
    position: absolute;
    left: 50%;
    bottom: -22%;
    width: 76%;
    height: 28%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at top, rgba(255,229,0,0.10) 0%, transparent 60%);
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

/* Subtle glow halo behind phone */
.up-iphone-halo {
    position: absolute;
    inset: -8% -12%;
    background:
        radial-gradient(ellipse at center, rgba(255,229,0,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 40%, rgba(0,234,255,0.04) 0%, transparent 55%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* Subtle hover lift */
.up-iphone-stage:hover .up-iphone {
    transform: rotateY(-10deg) rotateZ(-1deg) translateY(-8px);
}

/* Atmospheric background for App hero */
.up-app-hero .up-aurora {
    position: absolute;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .up-app-hero-inner {
        grid-template-columns: 1fr;
        gap: 80px;
        text-align: center;
    }
    .up-app-hero h1 { font-size: clamp(48px, 9vw, 84px); }
    .up-app-hero .up-hero-body { margin-left: auto; margin-right: auto; }
    .up-app-hero .up-hero-actions { justify-content: center; }
    .up-app-hero .up-waitlist-meta { margin-left: auto; margin-right: auto; }
    .up-iphone-stage { max-width: 360px; }
    .up-iphone { transform: rotateY(-10deg) rotateZ(-1deg); }
}

@media (max-width: 640px) {
    .up-app-hero { padding: 100px 20px 80px; }
    .up-app-hero-inner { gap: 60px; }
    .up-app-hero h1 { font-size: clamp(40px, 11vw, 60px); letter-spacing: -0.035em; }
    .up-app-hero .up-hero-body { font-size: 17px; }
    .up-app-hero .up-hero-actions { flex-direction: column; align-items: stretch; }
    .up-app-hero .up-btn-primary { width: 100%; justify-content: center; }
    .up-iphone-stage { max-width: 280px; }
    .up-iphone { transform: rotateY(0deg) rotateZ(0deg); }
    .up-iphone-stage:hover .up-iphone { transform: rotateY(0deg) rotateZ(0deg) translateY(-4px); }
}
