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

:root {
    --bg: #0a0a0f;
    --bg-card: #111118;
    --bg-card-hover: #16161f;
    --surface: #1a1a24;
    --border: #222230;
    --text: #e8e8ef;
    --text-muted: #8888a0;
    --accent: #7c6aef;
    --accent-light: #9b8cff;
    --accent-glow: rgba(124, 106, 239, 0.25);
    --accent-2: #ef6a9a;
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

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

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

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    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.05);
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-cta {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

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

.grain-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(124, 106, 239, 0.12), transparent),
        radial-gradient(ellipse 60% 50% at 70% 60%, rgba(239, 106, 154, 0.08), transparent);
    pointer-events: none;
}

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

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

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

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.15;
}

.section-title.left {
    text-align: left;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 106, 239, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--accent-light);
}

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

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: -44px;
    margin-bottom: 48px;
}

.carousel-wrapper {
    position: relative;
    max-width: 100%;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.phone-frame {
    position: relative;
    width: 280px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.carousel-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-btn-prev {
    left: 8px;
}

.carousel-btn-next {
    right: 8px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* ===== About ===== */
.about {
    padding: 100px 0;
}

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

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checklist li {
    position: relative;
    padding-left: 32px;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 2px solid var(--accent);
}

.checklist li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 9px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--accent-light);
    border-bottom: 2px solid var(--accent-light);
    transform: rotate(-45deg);
}

/* ===== Download ===== */
.download {
    padding: 100px 0 120px;
}

.download-card {
    text-align: center;
    background: linear-gradient(160deg, rgba(124, 106, 239, 0.1), rgba(239, 106, 154, 0.06));
    border: 1px solid rgba(124, 106, 239, 0.2);
    border-radius: 28px;
    padding: 72px 40px;
}

.download-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

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

.app-store-badge svg {
    width: 180px;
    height: 60px;
}

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

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

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

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

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

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

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

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

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title.left {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 14px 20px;
    }

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

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

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

    .carousel-wrapper {
        padding: 0 16px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn-prev {
        left: 0;
    }

    .carousel-btn-next {
        right: 0;
    }

    .phone-frame {
        width: 240px;
    }

    .download-card {
        padding: 48px 24px;
    }

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

    .footer-links {
        justify-content: center;
    }
}

/* ===== Subpages ===== */
.page-content {
    padding: 140px 0 100px;
    min-height: calc(100vh - 120px);
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Prose (Privacy Policy) */
.prose {
    max-width: 720px;
}

.prose h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.prose h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--accent-light);
}

.prose p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.prose a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

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

.prose strong {
    color: var(--text);
}

/* Contact */
.contact-card {
    max-width: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-light);
    margin-bottom: 20px;
}

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

.contact-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card > p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .page-content {
        padding: 110px 0 60px;
    }

    .contact-card {
        padding: 32px 20px;
    }

    .contact-form .btn {
        align-self: stretch;
        justify-content: center;
    }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .about-text,
    .about-features,
    .download-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .feature-card.visible,
    .about-text.visible,
    .about-features.visible,
    .download-card.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .feature-card:nth-child(2) { transition-delay: 0.1s; }
    .feature-card:nth-child(3) { transition-delay: 0.2s; }
    .feature-card:nth-child(4) { transition-delay: 0.3s; }
    .feature-card:nth-child(5) { transition-delay: 0.4s; }
    .feature-card:nth-child(6) { transition-delay: 0.5s; }
}
