/* --- System Design Tokens --- */
:root {
    --bg-black: #0B0B0B;
    --bg-dark-grey: #121212;
    --bg-light-grey: #F9F9F9;
    --text-white: #FFFFFF;
    --text-muted: #8E8E93;
    --text-dark: #1C1C1E;
    --brand-orange: #E75600;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-app: 'Lexend Deca', sans-serif;
}

/* --- Base Clean Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Utility Typography & Components --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

p {
font-family: var(--font-app);    
font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;             /* Increased to keep rendering sharp on OLED screens */
    letter-spacing: -0.01em;       /* Premium, slightly compressed modern editorial spacing */
    line-height: 1.5;             /* Tighter vertical coherence for clean layout grouping */
}

.text-gradient {
    color: var(--brand-orange);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    border-radius: 30px;
    font-size: 0.85rem;
    font-family: var(--font-app);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.section-label {
    display: block;
    font-family: var(--font-app);
    color: var(--brand-orange);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* --- Interactive Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-app);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background-color: var(--brand-orange);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--text-white);
    color: var(--bg-black);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 12px;
}

.btn-secondary:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
}

/* --- Navigation --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(11, 11, 11, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo span {
    font-family: var(--font-app);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 140px 60px 80px 60px;
    gap: 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.8rem; /* Perfectly optimized to keep sentences on one line on desktop */
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.store-badge img {
    height: 56px;
    transition: transform 0.3s ease;
}

.store-badge:hover img {
    transform: scale(1.03);
}

/* Hero Devices */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    width: 324px;  /* Width match */
    height: 576px; /* Perfect, uncropped mathematically aligned 9:16 screen dimension */
    background: #000000;
    border: 2px solid #1C1C1E;
    border-radius: 48px;
    box-shadow: 0 30px 100px rgba(231, 86, 0, 0.15), 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-screen-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #251013 0%, var(--bg-black) 100%);
}

.fallback-app-logo {
    width: 80px;
    height: auto;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid var(--brand-orange);
    border-radius: 50%;
    animation: corePulse 3s infinite ease-in-out;
    opacity: 0.3;
}

/* --- Manifesto Section --- */
.manifesto {
    padding: 160px 0;
    border-top: 1px solid var(--border-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a premium parallax scrolling depth */
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.manifesto-sticky h2 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--text-white);
}

.manifesto-body .lead {
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-white);
    letter-spacing: -0.02em;      /* Deeper letter compression on larger display fonts */
    margin-bottom: 24px;
    line-height: 1.4;
}

.manifesto-body p {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

/* --- Pillar Blocks --- */
.pillar {
    padding: 140px 0;
    background-color: var(--bg-light-grey);
    color: var(--text-dark);
}

.pillar.dark {
    background-color: var(--bg-black);
    color: var(--text-white);
}

.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.pillar.reverse .pillar-grid {
    direction: rtl;
}
.pillar.reverse .pillar-content {
    direction: ltr;
}

.accent-text {
    font-family: var(--font-app);
    color: var(--brand-orange);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 16px;
}

.pillar-content h3 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.pillar-content p {
    color: inherit;
    opacity: 0.8;
}

/* Graphical Placeholders inside Pillars */
.pillar-visual {
    height: 480px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pillar.dark .pillar-visual {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
}

.image-overlay-card {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-family: var(--font-app);
    border-radius: 40px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Loyalty System Card Visual */
.loyalty-visual {
    background: radial-gradient(circle at top right, #251013, #0b0b0b) !important;
    direction: ltr;
}

.goldies-balance-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 16px;
    width: 320px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.card-lbl {
    font-family: var(--font-app);
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.balance-num {
    font-size: 2.5rem;
    font-family: var(--font-display);
    color: var(--text-white);
    margin: 12px 0;
    font-weight: 800;
}

.g-symbol {
    color: var(--brand-orange);
}

.card-footer {
    font-size: 0.85rem;
    color: var(--brand-orange);
    display: block;
}

/* AI Elements tag clouds */
.custom-ai-visual .meta-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 40px;
    justify-content: center;
}

.meta-tag-cloud .tag {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: var(--font-app);
    font-size: 0.9rem;
}

.meta-tag-cloud .tag.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: var(--text-white);
}

/* --- Cycle Loop Section --- */
.cycle-section {
    padding: 160px 0;
    background-color: var(--bg-dark-grey);
    border-top: 1px solid var(--border-color);
}

.center-head {
    text-align: center;
    margin-bottom: 80px;
}

.center-head h2 {
    font-size: 3.5rem;
}

.flow-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.step {
    background: var(--bg-black);
    padding: 48px 36px;
    border-radius: 4px;
    border-left: 3px solid var(--brand-orange);
}

.step-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand-orange);
    margin-bottom: 20px;
}

.step h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* --- Footer Area --- */
.footer {
    background-color: var(--bg-black);
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.footer-logo {
    height: 48px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--font-app);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-orange);
}

.footer-copy p {
    font-size: 0.85rem;
}

/* --- Core Keyframe Animations --- */
@keyframes corePulse {
    0% { transform: scale(0.9); opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* --- Structural Responsiveness --- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 160px;
    }
    .hero-subtitle {
        margin: 0 auto 40px auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .manifesto-grid, .pillar-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pillar.reverse .pillar-grid {
        direction: ltr;
    }
    .flow-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* --- Navigation (Re-architected for Absolute Transparency) --- */
    .nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px !important; 
        z-index: 1000;
        background: rgba(11, 11, 11, 0.85) !important; /* Premium dark transparency safety backup */
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(0) !important; /* FIXED: Prevents header from hiding off-screen */
        animation: none !important; 
    }
    .nav-actions {
        display: none; 
    }
    .container {
        padding: 0 24px;
    }
    
    /* FIXED: Viewport scaling protection layer for device */
    .device-mockup {
        width: 280px !important;
        height: 498px !important;
        margin: 0 auto !important; /* Centers video canvas nicely on stacked mobile profiles */
    }

    /* FIXED: Removed invalid justify-content parameter */
    .hero {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
        text-align: left !important;        
        padding-left: 24px !important;
        padding-right: 24px !important;
        gap: 32px !important;
    }

    .hero-content {
        width: 100% !important;
    }

    .hero-title {
        font-size: 2.6rem !important; 
        line-height: 1.2 !important;
        width: 100% !important;
    }

    .hero-cta {
        justify-content: flex-start !important; 
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .store-badge img {
        height: 48px !important;
        width: auto !important;
    }

    .manifesto {
        padding: 80px 0 !important; 
    }

.manifesto .container {
        padding: 0 24px !important; /* Perfect left/right padding lock matching the hero */
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .manifesto .pillar-content {
        max-width: 100% !important;
        padding: 0 !important;
        text-align: left !important; 
    }

.manifesto h3 {
        font-size: 2.5rem !important; /* Scaled down slightly so large text doesn't overflow */
        line-height: 1.15 !important;
        word-break: break-word; /* Safety break property wrapper */
    }

    .pillar {
        padding: 80px 0 !important; 
    }

    .pillar-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
        gap: 40px !important;
    }

    .pillar.reverse .pillar-grid {
        direction: ltr !important; 
    }

    .pillar-content h3 {
        font-size: 2.5rem !important; 
        line-height: 1.15 !important;
    }

    .pillar-visual {
        width: 100% !important;
        height: auto !important;
        padding: 24px 0 !important;
        background-color: transparent !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-start !important; 
    }

    .goldies-balance-card {
        width: 100% !important;
        max-width: 320px !important; 
        text-align: left !important; 
    }
    
    .balance-num {
        font-size: 2rem !important;
    }

    /* NEW MOBILE OPTIMIZATION: Fixes process timeline stacking limits */
    .cycle-section {
        padding: 80px 0 !important;
    }
    .center-head {
        text-align: left !important; /* Left alignment consistency rule */
        margin-bottom: 40px !important;
    }
    .center-head h2 {
        font-size: 2.6rem !important;
    }
    .flow-timeline {
        gap: 24px !important;
    }
    .step {
        padding: 32px 24px !important;
    }
}

/* --- 1. Pure Initialization Entry Points --- */
.hero-content {
    animation: luxuryRevealUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-visual {
    animation: luxuryBlurIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.mockup-video-render {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #000000; 
}

/* --- 2. Kinetic Scroll-Driven Revelations --- */
@supports (animation-timeline: view()) {
    .reveal-on-scroll {
        animation: revealOnScrollLinear both;
        animation-timeline: view();
        animation-range: entry 10% cover 40%;
    }
    
    .pillar-visual {
        animation: subtleParallax both;
        animation-timeline: view();
        animation-range: exit -20% entry 120%;
    }
}

/* Fallback for legacy browsers without scroll-timeline support */
@media not (animation-timeline: view()) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* --- 3. Premium Interactive Micro-States --- */
.btn, .store-badge, .tag {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Metallic shimmer effect on primary buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
}

.btn-primary:hover::after {
    left: 150%;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.75s;
}

/* Hover scales for structural graphics modules */
.pillar-visual:hover {
    box-shadow: 0 30px 60px rgba(231, 86, 0, 0.15);
    border-color: rgba(231, 86, 0, 0.4);
    transform: scale(1.01);
}

.goldies-balance-card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.pillar-visual:hover .goldies-balance-card {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Staggered text entry lines on timeline cards */
.step {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.step:hover {
    transform: translateY(-8px);
    background-color: var(--bg-dark-grey);
    border-left-color: var(--text-white);
}

/* --- 4. Core Animation Keyframe Engines --- */
@keyframes luxuryRevealUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes luxuryBlurIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes revealOnScrollLinear {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleParallax {
    from { transform: translateY(20px); }
    to { transform: translateY(-20px); }
}

/* ==========================================================================
   --- Track Order Page Specific Layer Extension ---
   ========================================================================== */

.track-wrapper {
    min-height: 100vh;
    padding-top: 160px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(circle at 50% 30%, rgba(231, 86, 0, 0.05) 0%, transparent 60%);
}

.track-card {
    width: 100%;
    max-width: 680px;
    background: rgba(18, 18, 18, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 56px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.track-header {
    text-align: center;
    margin-bottom: 48px;
}

.track-header h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-top: 8px;
}

.track-timeline {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
}

/* Structural Connecting Timeline Vector Line */
.track-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: linear-gradient(to bottom, var(--brand-orange) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.track-step {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.track-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-black);
    border: 1px solid var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(231, 86, 0, 0.2);
    transition: all 0.4s ease;
}

.track-step:hover .track-node {
    background: var(--brand-orange);
    transform: scale(1.05);
}

.track-body {
    padding-top: 6px;
    flex: 1;
}

.track-body p {
    color: var(--text-white);
    opacity: 0.9;
}

/* Internal Dynamic Embedded Asset Elements */
.track-brand-embed {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.embed-logo {
    height: 32px;
    width: auto;
}

.embed-wordmark {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.track-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.track-badge-row .store-badge img {
    height: 48px; /* Perfectly structured touch targeted alignment */
}

/* Mobile Structural Adaptability Patch overrides */
@media (max-width: 768px) {
    .track-wrapper {
        padding-top: 120px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .track-card {
        padding: 32px 20px;
    }

    .track-header h1 {
        font-size: 1.8rem !important;
        text-align: left;
    }
    
    .track-header .section-label {
        text-align: left;
    }

    .track-timeline::before {
        left: 16px;
    }

    .track-node {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .track-step {
        gap: 16px;
    }
}