/* ============================================
   RepRival Landing Page — Cinematic Dark
   ============================================ */

.hp-field {
    opacity: 0;
    position: absolute;
    top: 0; left: 0;
    height: 0; width: 0;
    z-index: -1;
}

*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --text: #e8e8e8;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #d4a04a;
    --accent-dim: rgba(212, 160, 74, 0.12);
    --white: #ffffff;
    --radius: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ---- Scene Canvas (per-section backgrounds) ---- */
.scene-section {
    position: relative;
    overflow: hidden;
}

.scene-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 56px;
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--white) !important;
    color: var(--bg) !important;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 500 !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
    color: var(--bg) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.2s;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg);
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 740px;
}

.hero-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--bg);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-primary.large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
}

/* ---- Stats Bar ---- */
.stats-bar {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 48px 0;
    background: rgba(255,255,255,0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 24px;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ---- Section Headings ---- */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subheading {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.6;
}

/* ---- Audience Section ---- */
.audience-section {
    padding: 120px 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.audience-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: border-color 0.3s, transform 0.3s;
    will-change: transform, opacity;
}

.audience-card:hover {
    border-color: rgba(255,255,255,0.16);
    transform: translateY(-2px);
}

.audience-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.audience-icon svg {
    width: 22px; height: 22px;
    color: var(--accent);
}

.audience-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.audience-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---- Feature Sections ---- */
.feature-section {
    padding: 120px 0;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(212,160,74,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.feature-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.check-list { list-style: none; }

.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.5;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 5px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1.5px solid var(--accent);
}

.check-list li::after {
    content: '';
    position: absolute;
    left: 4px; top: 9px;
    width: 8px; height: 4px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}

/* Phone Frame */
.phone-frame {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 36px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    background: #000;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    will-change: transform;
}

.phone-frame img,
.phone-frame video {
    width: 100%;
    height: auto;
    display: block;
}

.feature-media {
    display: flex;
    justify-content: center;
}

/* ---- How It Works ---- */
.how-section {
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.step {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    transition: border-color 0.3s;
    will-change: transform, opacity;
}

.step:hover {
    border-color: rgba(255,255,255,0.14);
}

.step-num {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(212,160,74,0.3);
}

.step h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow { display: none; }

/* ---- Privacy ---- */
.privacy-section {
    padding: 100px 0;
}

.privacy-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 40px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}

.privacy-icon {
    width: 48px; height: 48px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.privacy-block h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.privacy-block p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.text-link:hover { opacity: 0.8; }

/* ---- Vision ---- */
.vision-section {
    padding: 120px 0;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vision-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: border-color 0.3s;
    will-change: transform, opacity;
}

.vision-card:hover {
    border-color: rgba(255,255,255,0.16);
}

.vision-card.coming-soon {
    opacity: 0.6;
}

.vision-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.vision-card.coming-soon .vision-label {
    color: var(--text-muted);
}

.vision-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.vision-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Founder Section ---- */
.founder-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.founder-block {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
    max-width: 880px;
    margin: 0 auto;
}

.founder-photo img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    border: 1px solid rgba(255,255,255,0.08);
}

.founder-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.founder-text p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 16px;
}

.founder-text p:last-of-type {
    margin-bottom: 0;
}

.founder-sign {
    margin-top: 8px !important;
    color: var(--text-secondary) !important;
    font-size: 14px !important;
    font-style: italic;
}

@media (max-width: 700px) {
    .founder-block {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .founder-photo {
        max-width: 180px;
    }

    .founder-photo img {
        border-radius: 12px;
    }
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 140px 0;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-section > .container > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-microcopy {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

/* ---- Waitlist Form ---- */
.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.waitlist-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.3s;
}

.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus { border-color: var(--accent); }

.waitlist-form .btn-primary {
    white-space: nowrap;
    flex-shrink: 0;
}

.waitlist-success {
    color: var(--accent);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 0;
}

/* ---- Footer ---- */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 8px; }

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ---- GSAP Animation States ---- */
/* Elements start invisible, GSAP brings them in */
.gsap-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ---- Mobile Nav ---- */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 40px 24px;
    gap: 24px;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-links.mobile-open a {
    font-size: 18px;
    color: var(--text);
}

.nav-links.mobile-open .nav-cta {
    text-align: center;
    padding: 14px 28px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .audience-grid,
    .vision-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 48px;
        direction: ltr;
    }

    .feature-row.reverse > * { direction: ltr; }

    .feature-media { order: -1; }

    .steps-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-actions { flex-direction: column; }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .waitlist-form { flex-direction: column; }
    .waitlist-input { width: 100%; }
    .phone-frame { max-width: 260px; }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 20px 24px;
    }

    .step-num { margin: 0; flex-shrink: 0; }
    .step h3 { margin-bottom: 4px; }
    .step p { font-size: 13px; }

    .section-heading { font-size: 28px; }
    .feature-text h2 { font-size: 24px; }

    /* Canvas scenes stay active on mobile with reduced particles */
}

/* ============================================
   3D Phone Mockup + Scroll Runway
   ============================================ */

/* Fixed phone wrapper — lives above everything during runway */
#phone-3d-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
    opacity: 0;
    visibility: hidden;
}

#phone-3d-perspective {
    perspective: 1200px;
    width: 250px;
    height: 520px;
    transform-style: preserve-3d;
}

#phone-3d-body {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
    will-change: transform;
}

/* ---- Phone Faces (shared) ---- */
.phone-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 44px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* ---- Front Face ---- */
.phone-front {
    background: #0a0a0a;
    border: 2px solid rgba(180, 180, 190, 0.3);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(212, 160, 74, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(1px);
}

.phone-dynamic-island {
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    margin-top: 12px;
    position: relative;
    z-index: 5;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.phone-screen {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 42px;
    overflow: hidden;
    background: #000;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.phone-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: none;
}

.phone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    z-index: 5;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ---- Back Face ---- */
.phone-back {
    background: linear-gradient(165deg, #2a2a2e 0%, #1a1a1e 100%);
    border: 2px solid rgba(180, 180, 190, 0.25);
    transform: rotateY(180deg);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.phone-camera-island {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 10px;
    gap: 4px;
    box-shadow:
        0 0 20px rgba(212, 160, 74, 0.15),
        inset 0 0 10px rgba(212, 160, 74, 0.05);
}

.phone-lens {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #2a2a30 0%, #111113 60%, #0a0a0c 100%);
    border: 1.5px solid rgba(180, 180, 190, 0.3);
    box-shadow:
        inset 0 0 4px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(212, 160, 74, 0.1);
}

.phone-flash {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 160, 74, 0.3) 0%, rgba(212, 160, 74, 0.05) 70%);
    border: 1px solid rgba(212, 160, 74, 0.25);
}

.phone-back-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.phone-back-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
}

/* ---- Scroll Runway ---- */
.phone-runway {
    position: relative;
    height: 600vh;
    overflow: hidden;
}

.phone-scene-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* ---- Phase Text Content (inside fixed wrapper) ---- */
.phone-phase-text {
    position: absolute;
    z-index: 2;
    max-width: 480px;
    opacity: 0;
    will-change: transform, opacity;
    pointer-events: none;
}

.phone-phase-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.phone-phase-text p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.phone-phase-text .feature-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    background: var(--accent-dim);
    border: 1px solid rgba(212, 160, 74, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Text positioning — desktop (absolute within fixed wrapper) */
/* Note: no CSS transforms here — GSAP manages all transforms via y/x */
.phone-text-center {
    left: 0;
    right: 0;
    bottom: 8vh;
    text-align: center;
    padding: 0 24px;
    margin: 0 auto;
    max-width: 600px;
}

.phone-text-left {
    left: 5%;
    top: 30%;
    padding: 0 24px;
    max-width: 420px;
}

.phone-text-right {
    right: 5%;
    left: auto;
    top: 30%;
    padding: 0 24px;
    max-width: 420px;
}

/* ---- Mobile: 3D Phone adjustments ---- */
@media (max-width: 767px) {
    #phone-3d-perspective {
        width: 220px;
        height: 456px;
    }

    .phone-front {
        border-radius: 36px;
    }

    .phone-back {
        border-radius: 36px;
    }

    .phone-face {
        border-radius: 36px;
    }

    .phone-screen {
        border-radius: 34px;
    }

    .phone-dynamic-island {
        width: 80px;
        height: 22px;
        margin-top: 10px;
    }

    .phone-home-bar {
        width: 96px;
        bottom: 6px;
    }

    .phone-camera-island {
        width: 64px;
        height: 64px;
        padding: 8px;
        top: 12px;
        left: 12px;
        border-radius: 16px;
    }

    .phone-back-logo {
        width: 36px;
        height: 36px;
    }

    .phone-runway {
        height: 500vh;
    }

    #phone-3d-wrapper {
        padding-top: 4vh;
    }

    /* On mobile, all text panels centered at bottom with enough clearance */
    .phone-text-left,
    .phone-text-right,
    .phone-text-center {
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 3vh !important;
        margin: 0 auto !important;
        text-align: center;
        padding: 0 20px;
        width: 90%;
        max-width: 100%;
    }

    .phone-phase-text h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .phone-phase-text p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* Hide check-lists on mobile to save space */
    .phone-phase-text .check-list {
        display: none;
    }
}
