/* === Variables === */
:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --text: #f0f0f5;
    --text-secondary: #8888a0;
    --accent: #1cb8ff;
    --accent-glow: rgba(28, 184, 255, 0.3);
    --container: 1080px;
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* === Hero === */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

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

.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin: 0 auto 32px;
    box-shadow: 0 0 40px var(--accent-glow);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 650px;
    margin: 0 auto 20px;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-store-badge {
    width: 150px;
    height: 50px;
}

/* === Features === */
.feature {
    padding: 80px 0;
}

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

.feature-reverse .feature-grid {
    direction: rtl;
}

.feature-reverse .feature-grid > * {
    direction: ltr;
}

.feature-text h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.feature-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 440px;
}

/* === Phone Mockup === */
.feature-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    background: var(--bg-card);
    border-radius: 36px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(28, 184, 255, 0.08);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d0d1a 0%, #111125 100%);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
}

/* Screen image */
.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}

.phone-screen:has(.screen-img) {
    padding: 0;
}

/* Screen 1 - Rating */
.mock-rating {
    text-align: center;
    width: 100%;
}

.mock-face-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(28, 184, 255, 0.1), rgba(28, 184, 255, 0.05));
    box-shadow: 0 0 20px rgba(28, 184, 255, 0.2);
}

.mock-score {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.mock-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mock-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mock-bar {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    height: 28px;
    position: relative;
    overflow: hidden;
}

.mock-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--w);
    background: linear-gradient(90deg, var(--accent), rgba(28, 184, 255, 0.6));
    border-radius: 6px;
}

.mock-bar span {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 10px;
    line-height: 28px;
}

/* Screen 2 - Progress */
.mock-progress {
    width: 100%;
    text-align: center;
}

.mock-chart-label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.mock-chart {
    width: 100%;
    margin-bottom: 24px;
}

.mock-streak {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    padding: 12px 20px;
    border-radius: 12px;
}

.streak-fire {
    font-size: 1.3rem;
}

/* Screen 3 - Tips */
.mock-tips {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mock-tip strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mock-tip small {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* === CTA === */
.cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* === Footer === */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero {
        padding: 130px 0 60px;
    }

    .feature {
        padding: 50px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .feature-reverse .feature-grid {
        direction: ltr;
    }

    .feature-text p {
        max-width: 100%;
    }

    .phone-mockup {
        width: 230px;
        height: 460px;
    }

    .cta {
        padding: 60px 0;
    }

    .footer-links {
        gap: 20px;
    }
}
