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

:root {
    --bg: #0a0e1a;
    --bg-elevated: #11172a;
    --bg-soft: #161e35;
    --text: #f4f6fb;
    --text-muted: #9aa3b8;
    --accent: #4d9bff;
    --accent-bright: #7cb6ff;
    --accent-glow: rgba(77, 155, 255, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --radius-lg: 22px;
    --max-w: 1180px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ===== Layout helpers ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section {
    padding: 110px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
}

.section-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 60px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 0.97rem;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    color: white;
    box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-large {
    padding: 17px 34px;
    font-size: 1.05rem;
}

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

/* ===== Nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.02rem;
}
.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}
.nav-cta { padding: 9px 18px; font-size: 0.9rem; }

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 120px 24px 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 1100px;
    background: radial-gradient(circle at center, rgba(77, 155, 255, 0.18) 0%, rgba(77, 155, 255, 0) 60%);
    pointer-events: none;
    z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 22px;
}
.accent {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 38px;
}

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

/* ===== Intro / value prop ===== */
.section-intro {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ===== Features ===== */
.section-features {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.feature {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(77, 155, 255, 0.35);
}
.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-bright);
    margin-bottom: 18px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.feature-text {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.6;
}

/* ===== Screenshots ===== */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    align-items: start;
    justify-items: center;
}
.screenshot {
    width: 100%;
    max-width: 260px;
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
    transition: transform 0.25s ease;
}
.screenshot:hover { transform: translateY(-6px); }

/* ===== Final CTA ===== */
.section-cta {
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
    border-top: 1px solid var(--border);
}
.cta-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin: 0 auto 28px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

/* ===== Legal pages (privacy, terms) ===== */
.legal {
    padding: 80px 0 60px;
}
.legal-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.legal-effective {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 0.95rem;
}
.legal h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.legal p {
    color: var(--text);
    margin-bottom: 16px;
    font-size: 1.02rem;
    line-height: 1.7;
}
.legal ul {
    margin: 0 0 18px 22px;
    color: var(--text);
}
.legal li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.legal a {
    color: var(--accent-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal a:hover { color: var(--text); }

/* ===== Footer ===== */
.footer {
    padding: 50px 24px 40px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.footer-icon { width: 28px; height: 28px; border-radius: 6px; }
.footer-links {
    display: flex;
    gap: 28px;
    font-size: 0.93rem;
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .section { padding: 80px 0; }
    .hero { padding: 80px 24px 70px; }
    .hero-icon { width: 104px; height: 104px; border-radius: 24px; }
    .nav-brand span { display: none; }
    .features-grid { gap: 18px; }
    .feature { padding: 26px 22px; }
}
