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

:root {
    --bg-primary: #f8f4ef;
    --bg-secondary: #eef5ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f7fb;
    --text-primary: #1b1f2a;
    --text-secondary: #445065;
    --text-muted: #6a7285;
    --accent: #ff7a59;
    --accent-hover: #f35f3d;
    --accent-2: #2ec4b6;
    --gradient-start: #ff9c7a;
    --gradient-end: #7bc6ff;
    --border-color: #e5e7ef;
    --shadow: 0 12px 40px rgba(25, 33, 53, 0.12);
    --shadow-lg: 0 24px 60px rgba(25, 33, 53, 0.18);
    --radius: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Spline Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #fff7ea 0%, var(--bg-primary) 45%, #eef2ff 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: 'Fraunces', 'Spline Sans', serif;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    font-family: 'Fraunces', 'Spline Sans', serif;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 244, 239, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 10px 24px rgba(255, 122, 89, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 122, 89, 0.32);
    color: white;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

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

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

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    z-index: 0;
}

.hero::before {
    width: 360px;
    height: 360px;
    background: rgba(255, 156, 122, 0.35);
    top: -120px;
    left: -80px;
}

.hero::after {
    width: 420px;
    height: 420px;
    background: rgba(123, 198, 255, 0.35);
    bottom: -160px;
    right: -100px;
}

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

.hero-content {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.hero-kicker {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 24px 0 32px;
    color: var(--text-secondary);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.phone-frame {
    position: relative;
    width: 280px;
    padding: 12px;
    background: linear-gradient(145deg, #f0f3ff, #ffffff);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
}

.phone-frame img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Flow Section */
.flow {
    padding: 40px 0 80px;
}

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

.flow-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(27, 31, 42, 0.06);
}

.flow-step {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    text-align: center;
}

.features h2 {
    text-align: center;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

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

/* Screenshots Section */
.screenshots {
    padding: 100px 0;
}

.screenshots h2 {
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.screenshot-card {
    text-align: center;
}

.screenshot-card img {
    width: 100%;
    max-width: 280px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 16px;
}

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

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff, #f4f2ff);
    text-align: center;
}

.cta h2 {
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Privacy Section */
.privacy {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.privacy-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h3 {
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.privacy-content strong {
    color: var(--accent);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.25rem;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .navbar .container {
        height: 64px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-image {
        order: -1;
    }

    .phone-frame {
        width: 240px;
    }

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

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

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

    .hero {
        padding: 100px 0 60px;
    }

    .btn {
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .feature-card {
        padding: 24px;
    }

    .phone-frame {
        width: 200px;
        padding: 8px;
        border-radius: 32px;
    }

    .phone-frame img {
        border-radius: 24px;
    }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .phone-frame {
        animation: float 5s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
    }
}
