/* ===== CSS Variables ===== */
:root {
    --color-primary: #34C759;
    --color-primary-dark: #2BA84A;
    --color-bg: #0A0A0A;
    --color-bg-secondary: #1C1C1E;
    --color-bg-card: #2C2C2E;
    --color-text: #FFFFFF;
    --color-text-secondary: #8E8E93;
    --color-text-muted: #636366;
    --color-border: #3A3A3C;
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-glow: 0 0 60px rgba(52, 199, 89, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

.highlight {
    color: var(--color-primary);
}

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

.hero-background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    opacity: 0.1;
    animation: pulse 4s ease-out infinite;
}

.pulse-ring-1 {
    width: 400px;
    height: 400px;
    animation-delay: 0s;
}

.pulse-ring-2 {
    width: 600px;
    height: 600px;
    animation-delay: 1s;
}

.pulse-ring-3 {
    width: 800px;
    height: 800px;
    animation-delay: 2s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.15;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.app-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.app-icon-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

.app-icon {
    width: 120px;
    height: 120px;
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.app-icon svg {
    width: 100%;
    height: 100%;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-secondary);
}

/* ===== App Store Button ===== */
.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.4);
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(52, 199, 89, 0.5);
    color: white;
}

.app-store-button .apple-logo {
    width: 24px;
    height: 24px;
}

.app-store-button .button-text {
    text-align: left;
}

.app-store-button .small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
}

.app-store-button .large {
    display: block;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    opacity: 0.6;
    transition: var(--transition);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--color-primary);
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.screenshots h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.phone-mockups {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    perspective: 1000px;
}

.phone {
    transition: var(--transition);
}

.phone-frame {
    background: linear-gradient(145deg, #3A3A3C 0%, #1C1C1E 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-card);
}

.phone-screen {
    background: var(--color-bg);
    border-radius: 32px;
    overflow: hidden;
}

.screenshot-placeholder {
    width: 200px;
    height: 400px;
}

.screenshot-placeholder svg {
    width: 100%;
    height: 100%;
}

.phone-left {
    transform: translateY(30px) rotateY(5deg);
    opacity: 0.8;
}

.phone-right {
    transform: translateY(30px) rotateY(-5deg);
    opacity: 0.8;
}

.phone-center {
    transform: scale(1.1);
    z-index: 2;
}

.phone:hover {
    transform: translateY(-10px) scale(1.05);
    opacity: 1;
}

.phone-center:hover {
    transform: scale(1.15);
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(44, 44, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 199, 89, 0.3);
    box-shadow: 0 8px 40px rgba(52, 199, 89, 0.15);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(52, 199, 89, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Why Zone 2 Section ===== */
.why-zone2 {
    padding: 100px 0;
    background: var(--color-bg);
}

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

.why-text h2 {
    margin-bottom: 1rem;
}

.why-text .lead {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(52, 199, 89, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.benefit-icon svg {
    width: 16px;
    height: 16px;
}

.benefits-list strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.benefits-list p {
    font-size: 0.95rem;
    margin: 0;
}

.why-illustration {
    display: flex;
    justify-content: center;
}

.why-illustration svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* ===== Resources Section ===== */
.resources {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.resources h2 {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.resource-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.resource-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-bg);
}

.thumbnail-placeholder svg {
    width: 100%;
    height: 100%;
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.4);
}

.play-button svg {
    width: 64px;
    height: 64px;
    transition: var(--transition);
}

.resource-card:hover .play-button {
    opacity: 1;
}

.resource-card:hover .play-button svg {
    transform: scale(1.1);
}

.resource-paper .resource-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, var(--color-bg) 100%);
}

.paper-icon svg {
    width: 64px;
    height: 64px;
}

.resource-info {
    padding: 20px;
}

.resource-info h4 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.resource-info p {
    font-size: 0.9rem;
    margin: 0;
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg) 100%);
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta > .container > p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-icon {
    width: 40px;
    height: 40px;
}

.footer-icon svg {
    width: 100%;
    height: 100%;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .why-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-illustration {
        order: -1;
    }

    .why-illustration svg {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

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

    .scroll-indicator {
        display: none;
    }

    .phone-mockups {
        flex-direction: column;
        gap: 30px;
    }

    .phone-left,
    .phone-right {
        transform: none;
        opacity: 1;
    }

    .phone-center {
        transform: none;
    }

    .phone:hover,
    .phone-center:hover {
        transform: translateY(-10px);
    }

    .screenshots,
    .features,
    .why-zone2,
    .resources,
    .cta {
        padding: 60px 0;
    }

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

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

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .app-icon {
        width: 100px;
        height: 100px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .screenshot-placeholder {
        width: 180px;
        height: 360px;
    }

    .feature-card {
        padding: 24px;
    }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .resource-card,
    .phone {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
    .features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
    .features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }

    .resources-grid .resource-card:nth-child(1) { animation-delay: 0.1s; }
    .resources-grid .resource-card:nth-child(2) { animation-delay: 0.2s; }
    .resources-grid .resource-card:nth-child(3) { animation-delay: 0.3s; }
    .resources-grid .resource-card:nth-child(4) { animation-delay: 0.4s; }
}

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