:root {
    /* Core Colors (Light Mode) */
    --color-bg: #f5f7fa;
    --color-surface-1: #ffffff;
    --color-surface-2: rgba(255, 255, 255, 0.8);
    --color-primary: #007bff;
    --color-primary-dim: rgba(0, 123, 255, 0.15);
    --color-secondary: #6c757d;
    --color-text: #1a1a1a;
    --color-text-muted: #4a5568;

    /* Utilities */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-glow: 0 4px 12px var(--color-primary-dim);
}

.dark-mode {
    /* Core Colors (Dark Mode) */
    --color-bg: #0b0c10;
    --color-surface-1: #1f2833;
    --color-surface-2: rgba(31, 40, 51, 0.6);
    --color-primary: #66fcf1;
    --color-primary-dim: rgba(102, 252, 241, 0.2);
    --color-secondary: #45a29e;
    --color-text: #ffffff;
    --color-text-muted: #c5c6c7;
    --shadow-glow: 0 0 20px var(--color-primary-dim);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--color-surface-2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo span {
    color: var(--color-primary);
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 4px 15px var(--color-primary-dim);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 252, 241, 0.4);
    background-color: #79fcf3;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-surface-1);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-dim);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary-dim) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glow);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition-normal);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.store-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.store-badge {
    height: 50px;
    transition: var(--transition-fast);
}

.store-badge:hover {
    transform: translateY(-2px);
}

/* Features Grid */
.features {
    padding: 6rem 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: left;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary-dim);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-surface-1);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col h4 {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-surface-1);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .store-badges {
        justify-content: center;
    }

    .hero-image img {
        transform: none;
    }

    .hero-image img:hover {
        transform: none;
    }

    .nav-links {
        display: none;
        /* Hide on mobile for now, add hamburger later if needed */
    }
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    color: var(--color-text-muted);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--color-primary);
    background: var(--color-surface-2);
}

/* Phone Mockup */
.hero-image {
    perspective: 1000px;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 30px;
    border: 6px solid #1f2833;
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5), 0 30px 60px -30px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(-10deg) rotateX(5deg);
}

/* Screen Content */
.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
}

.screen-slide.active {
    opacity: 1;
}

/* Notch / Dynamic Island */
.phone-notch {
    display: none;
}

/* Gloss Overlay */
.phone-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 5;
}

/* Animations and Responsive */
@media (max-width: 768px) {
    .phone-mockup {
        width: 240px;
        height: 500px;
        margin: 0 auto;
    }
}