
/* --- ORBIT LAYOUT IMPROVEMENTS (POLISH) - OVERHAUL V2 --- */
.shot-stage::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

/* Amber Glow & Glow Transition */
.shot-stage img {
    filter: drop-shadow(0 0 60px rgba(245, 158, 11, 0.15));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
    will-change: transform, filter; 
}

/* Light Mode 'Sunrise' Glow Fix */
[data-theme="light"] .shot-stage::after {
    background: radial-gradient(ellipse at center, #FFCC80 0%, transparent 70%);
    opacity: 0.8;
    mix-blend-mode: multiply;
}

[data-theme="light"] .shot-stage img {
     filter: drop-shadow(0 20px 40px rgba(255, 204, 128, 0.4)); /* Warm Peach Shadow */
}

/* --- CONTROL DECK (DESKTOP) --- */
.control-deck {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 320px;
}

.deck-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deck-progress {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.deck-progress-bar {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--accent-gold);
}

.deck-actions {
    display: flex;
    gap: 16px;
}

.deck-btn {
    flex: 1;
    padding: 14px 24px;
    background: rgba(15, 18, 28, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--accent-gold); 
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius-sm, 4px);
}
.deck-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-deep-navy);
    border-color: var(--accent-gold);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.25);
    transform: translateY(-2px);
}

/* --- TRANSITIONS & GRID (DESKTOP) --- */
@media (min-width: 900px) {
    /* Break out of flex slide habit */
    .track {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        height: 700px; /* Force height for absolute overlap */
        transform: none !important; /* Stop JS translateX */
    }

    .showcase-slide {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        opacity: 0;
        pointer-events: none;
        z-index: 0;
        transition: opacity 0.6s ease;
        display: flex;
        align-items: center;
        justify-content: center; /* Helper to center the main grid */
        width: 100%;
    }

    .showcase-slide.active {
        opacity: 1;
        pointer-events: auto;
        z-index: 1;
    }

    /* STRICT GRID ARCHITECTURE */
    .shot-split {
        display: grid;
        grid-template-columns: 400px 1fr; /* Fixed phone width, rest for text */
        gap: 64px;
        align-items: center;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Fixed Stage for Perfect Alignment */
    .shot-stage {
        width: 100%;
        display: flex;
        justify-content: center; 
        position: relative;
    }

    /* Text Container Stability */
    .shot-copy {
        min-height: 400px; /* Prevent jumpy footer */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 0;
    }

    /* Element Animations */
    .showcase-slide .shot-stage {
        transform: translateX(40px) scale(0.95);
        opacity: 0;
        transition: 
            transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
            opacity 0.6s ease;
    }

    .showcase-slide.active .shot-stage {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    
    /* Sliding OUT animation */
    .showcase-slide.exit-left .shot-stage {
        transform: translateX(-60px);
        opacity: 0;
    }

    .showcase-slide .shot-copy {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease 0.2s; /* Delay */
    }
    
    .showcase-slide.active .shot-copy {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE STACK --- */
@media (max-width: 899px) {
    .control-deck { display: none; }
    
    .track {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 24px;
        -webkit-overflow-scrolling: touch;
        transform: none !important;
    }
    
    .showcase-slide {
        min-width: 85vw;
        scroll-snap-align: center;
        opacity: 1;
    }
    
    .shot-split {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    
    .shot-stage img { margin-bottom: 0; }
}

/* --- BENTO GRID ANIMATIONS & POLISH --- */

/* Tile A: Scan Your Mood */
.chart-visual {
    position: relative;
    width: 100%;
    height: 120px;
    margin-top: 10px;
}

.chart-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.emoji-point {
    position: absolute;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 2s ease-in-out infinite alternate;
    transform: translate(-50%, -50%);
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Tile B: Habits Trophy */
.trophy-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    /* Remove padding-top so it centers vertically in available space */
}

.trophy-img {
    width: 120px; /* Significantly increased from 60px/80px */
    height: auto;
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.4));
    animation: floatTrophy 3s ease-in-out infinite;
    z-index: 2;
    margin-bottom: 8px; /* Space for the text below */
}

.streak-badge {
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--glass-surface);
    padding: 6px 12px;
    border-radius: 20px;
    /* lighter border */
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.trophy-glow {
    position: absolute;
    top: 40%; /* slightly offset up to center behind trophy */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
    animation: glowPulse 2s infinite alternate;
    z-index: 1;
    pointer-events: none;
}

@keyframes floatTrophy {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Tile D: Audio Waveform */
.audio-visual {
    display: flex;
    align-items: flex-end; /* Align bottom */
    justify-content: center;
    gap: 6px;
    height: 80px; /* Bigger height */
    margin-top: 20px;
}

.audio-visual .bar {
    width: 8px; /* Bigger width */
    background: var(--accent-gold);
    border-radius: 4px;
    animation: soundWave 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Specific heights relative to container */
.audio-visual .bar:nth-child(1) { height: 30%; animation-delay: 0.0s; }
.audio-visual .bar:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.audio-visual .bar:nth-child(3) { height: 45%; animation-delay: 0.4s; }
.audio-visual .bar:nth-child(4) { height: 80%; animation-delay: 0.1s; }
.audio-visual .bar:nth-child(5) { height: 40%; animation-delay: 0.3s; }
.audio-visual .bar:nth-child(6) { height: 25%; animation-delay: 0.1s; }

@keyframes soundWave {
    0%, 100% { transform: scaleY(1); opacity: 0.8; }
    50% { transform: scaleY(0.5); opacity: 1; }
}

/* Tile E: Living Calendar Mosaic */
.calendar-mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Empty Day Cells - Soft Glass Style */
.calendar-day.empty-day {
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px;
}

[data-theme="dark"] .calendar-day.empty-day {
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day.empty-day .day-number {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.4;
    line-height: 1;
}

/* Today's Day - Gold Border Accent */
.calendar-day.today-day {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6px;
}

.calendar-day.today-day .day-number {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-gold);
    opacity: 0.9;
    line-height: 1;
}

/* Memory Day Cells - With Images */
.calendar-day.memory-day {
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .calendar-day.memory-day {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.calendar-day.memory-day img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover Effects on Entire Card */
.tile-calendar:hover .calendar-day.empty-day,
.tile-calendar:hover .calendar-day.today-day {
    opacity: 0.6;
}

.tile-calendar:hover .calendar-day.memory-day {
    transform: scale(1.05);
    z-index: 2;
}

.tile-calendar:hover .calendar-day.memory-day img {
    transform: scale(1.08);
}

/* Tile F: Biometric Lock */
.lock-visual-large {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.lock-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    animation: lockPulse 4s infinite ease-in-out;
}

.lock-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.laser-scan {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 2px;
    background: #FF453A;
    box-shadow: 0 0 12px #FF453A, 0 0 6px #ffffff;
    opacity: 0;
    animation: laserScan 2.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes laserScan {
    0% { top: 5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 95%; opacity: 0; }
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.2); }
}

/* --- GRAND FINALE (DOWNLOAD SECTION) --- */
.sunrise-section {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
}

.sunrise-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.25) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

.finale-card {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 18, 28, 0.4); /* Slightly darker for contrast */
    border-radius: 24px;
    position: relative;
}

.finale-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

@media (max-width: 900px) {
    .finale-content {
        flex-direction: column;
        text-align: center;
    }
    .trust-sigils {
        justify-content: center;
    }
    .trust-sigil {
        flex-direction: column;
    }
}

/* Finale Left Side */
.finale-text {
    flex: 1;
}

.finale-text h2 {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.finale-text .sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
}

.trust-sigils {
    display: flex;
    gap: 24px;
}

.trust-sigil {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-sigil svg {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
    opacity: 0.8;
}

/* Finale Right Side - Action */
.finale-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 320px;
}

/* Custom Google Play Badge - OFFICIAL STYLE */
.play-badge {
    display: inline-flex;
    align-items: center;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 6px 14px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
    /* gap removed in favor of explicit margin on icon */
}

.play-badge:hover {
    transform: translateY(-2px);
    border-color: #F59E0B; /* Gold Hover */
}

.play-icon {
    width: 30px;
    height: 30px;
    object-fit: contain; /* Prevents distortion */
    margin-right: 12px;  /* Spacing between the triangle and the text */
}

.play-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.play-label {
    font-size: 10px;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.play-name {
    font-size: 18px;
    font-weight: 600; /* Roboto Bold */
    color: #FFFFFF;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
}

/* Glass Form Styling */
.glass-form-container {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glass-input-group {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* The Input Pill */
.glass-input {
    width: 100%;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50px;
    padding: 14px 50px 14px 24px; /* Right padding for button */
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

.glass-input::placeholder {
    color: var(--text-secondary);
}

/* The Submit Button Arrow */
.glass-btn-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gold);
    color: #0f121c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-btn-icon:hover {
    transform: translateY(-50%) scale(1.1);
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Success Message */
.success-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    margin-top: 10px;
    opacity: 0; /* for animation */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SECURITY SECTION OVERHAUL --- */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .security-grid {
        grid-template-columns: 1fr;
    }
}

.pillar-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border); /* Fallback if var missing */
    background: var(--glass-surface);
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: #fbbf24;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.15);
}

.pillar-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.15);
}

.pillar-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.pillar-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Specific Icon Colors */
.pillar-icon-gold {
    color: #fbbf24;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.4));
}
.pillar-icon-cyan {
    color: #22d3ee;
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
}
.pillar-icon-green {
    color: #4ade80;
    filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.4));
}

.pillar-badge {
    margin-top: auto; /* Push to bottom */
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.security-action {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-gold-outline {
    background: transparent;
    border: 1px solid #fbbf24;
    color: #fbbf24;
    padding: 12px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-gold-outline:hover {
    background: #fbbf24;
    color: #0f121c;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}
