/* ==========================================
   OpenSite AR - Modern UI Design System
   ========================================== */

/* Design Tokens */
:root {
    --bg-dark: #030712;
    --bg-darker: #020617;
    --bg-glass: rgba(15, 23, 42, 0.45);
    --bg-glass-heavy: rgba(15, 23, 42, 0.8);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-bright: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #6366f1; /* Indigo */
    --color-secondary: #a855f7; /* Purple */
    --color-accent: #10b981; /* Emerald Green */
    --color-dark-accent: #059669;
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    --gradient-text: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 36px;
    
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Radial Glow Backgrounds */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-size: 1rem;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-bright);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.badge-premium {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
}

/* ==========================================
   Navbar
   ========================================== */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    transition: var(--transition-smooth);
}

.navbar-container.scrolled {
    padding: 12px 40px;
}

.navbar {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px) saturate(180%);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-subtle);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.accent-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 160px 40px 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.8rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 440px;
    position: relative;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    transition: var(--transition-bounce);
}

.hero-glass-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    box-shadow: var(--shadow-subtle);
}

.glass-overlay {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass-bright);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    pointer-events: none;
}

.overlay-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================
   Section Headers
   ========================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: 2.8rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================
   Features Section
   ========================================== */
.features-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 40px;
}

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

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-bright);
    box-shadow: var(--shadow-subtle);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.feature-icon {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.feature-card:hover .feature-icon {
    color: #a5b4fc;
}

.feature-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   Simulator Section
   ========================================== */
.simulator-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 40px;
}

.simulator-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.sim-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sim-tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sim-tab {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    outline: none;
}

.sim-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.sim-tab.active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
}

.sim-tab .tab-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.sim-tab.active .tab-title {
    color: var(--text-primary);
}

.sim-tab .tab-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sim-tab.active .tab-desc {
    color: #a5b4fc;
}

.sim-info-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sim-info-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.sim-info-content.active {
    display: block;
}

.sim-info-content h4 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sim-info-content p {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.spec-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.spec-list li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.spec-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

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

/* ==========================================
   iPhone Mockup Structure
   ========================================== */
.phone-mockup {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-case {
    width: 330px;
    height: 680px;
    background: #1e1e24;
    border: 10px solid #2d2e35;
    border-radius: 46px;
    box-shadow: 
        0px 0px 0px 4px #000000,
        0px 10px 40px -10px rgba(0, 0, 0, 0.8),
        var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-speaker {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 14px;
    background: #0d0d0e;
    border-radius: 99px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.viewport-images {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.sim-viewport-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.sim-viewport-img.active {
    opacity: 1;
}

/* SwiftUI HUD Overlay inside Phone */
.swiftui-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 16px 20px;
    pointer-events: none;
    font-family: var(--font-body);
}

.hud-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    pointer-events: auto;
}

.hud-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hud-logo img {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.hud-status {
    font-size: 0.65rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 3D Torus Selector Ring Overlay */
.hud-center-ring {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.torus-3d {
    width: 90px;
    height: 35px;
    border: 3px solid rgba(99, 102, 241, 0.7);
    border-radius: 50%;
    position: relative;
    box-shadow: 
        0 0 15px rgba(99, 102, 241, 0.5),
        inset 0 0 15px rgba(99, 102, 241, 0.5);
    transform: rotateX(60deg);
    animation: ringGlow 2.5s infinite ease-in-out;
}

.torus-3d::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

@keyframes ringGlow {
    0% { transform: rotateX(60deg) scale(1); opacity: 0.6; }
    50% { transform: rotateX(60deg) scale(1.08); opacity: 1; }
    100% { transform: rotateX(60deg) scale(1); opacity: 0.6; }
}

.ring-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(99, 102, 241, 0.85);
    padding: 3px 8px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

/* 3D Tape Measure Tag Overlay */
.hud-dimension-tag {
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(16, 185, 129, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    animation: tagFloat 3s infinite ease-in-out;
}

@keyframes tagFloat {
    0% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-6px); }
    100% { transform: translate(-50%, -50%) translateY(0); }
}

.dim-metric {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.1;
}

.dim-separator {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 3px 0;
}

.dim-imperial {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.1;
}

/* HUD Bottom Panel Controls */
.hud-bottom-panel {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

.hud-slider-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.slider-header span:last-child {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
}

.hud-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.hud-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
}

.hud-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.hud-controls-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr;
    align-items: center;
    gap: 8px;
}

.hud-toggles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hud-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 6px;
    color: var(--text-secondary);
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.hud-toggle-btn svg {
    width: 12px;
    height: 12px;
}

.hud-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hud-toggle-btn.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* Center Capture Button */
.hud-shutter-container {
    display: flex;
    justify-content: center;
}

.hud-shutter {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    padding: 3px;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.hud-shutter:hover {
    transform: scale(1.08);
}

.hud-shutter:active {
    transform: scale(0.92);
}

.shutter-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #000000;
    background: #ffffff;
    transition: var(--transition-smooth);
}

.hud-shutter:active .shutter-inner {
    background: #dddddd;
}

/* Spatial Joystick simulation */
.hud-joystick-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hud-joystick-base {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    position: relative;
    cursor: grab;
    touch-action: none;
}

.hud-joystick-knob {
    width: 22px;
    height: 22px;
    background: radial-gradient(circle, #f8fafc 0%, #cbd5e1 100%);
    border: 1px solid #94a3b8;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
}

.joystick-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 4px;
    background: #ffffff;
    border-radius: 99px;
    opacity: 0.8;
}

/* Flash effect on shutter click */
.phone-screen.flash::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    opacity: 1;
    z-index: 100;
    animation: flashAnim 0.3s ease-out forwards;
}

@keyframes flashAnim {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==========================================
   Device Compatibility Section
   ========================================== */
.compatibility-section {
    background-color: var(--bg-darker);
    padding: 100px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.compatibility-container {
    max-width: 1280px;
    margin: 0 auto;
}

.compatibility-info {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 64px;
    text-align: left;
}

.comp-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.comp-card.premium {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.1);
}

.comp-card.premium::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.comp-header {
    margin-bottom: 24px;
}

.comp-header h3 {
    font-size: 1.6rem;
    margin-top: 12px;
}

.comp-desc {
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comp-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.comp-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.comp-card.premium .comp-list li::before {
    background-color: var(--color-secondary);
}

/* ==========================================
   Specs Table Section
   ========================================== */
.specs-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 40px;
}

.specs-container {
    margin-top: 48px;
}

.specs-table-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.specs-table th {
    background-color: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-table td {
    padding: 24px 32px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table td strong {
    color: #ffffff;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 40px 140px;
}

.cta-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(3, 7, 18, 0.3) 100%), var(--bg-glass);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.cta-title {
    font-size: 3.2rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.store-badge-link {
    transition: var(--transition-smooth);
}

.store-badge-link:hover {
    transform: scale(1.04);
}

.store-badge {
    height: 48px;
}

.cta-footer-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cta-footer-text a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-smooth);
}

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

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.footer-brand h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-credits {
    text-align: right;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-credits p {
    margin-bottom: 6px;
}

.legal-disclaimer {
    font-size: 0.8rem;
}

/* ==========================================
   Responsive Media Queries
   ========================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .simulator-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .phone-mockup {
        order: -1;
    }

    .navbar-container {
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 16px;
    }
    
    .nav-menu {
        display: none; /* Hide standard nav on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .cta-card {
        padding: 60px 24px;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-credits {
        text-align: center;
    }

    .specs-table th, .specs-table td {
        padding: 16px;
        font-size: 0.85rem;
    }
}
