:root {
    --brand-top: #0E0120;
    --brand-bottom: #390857;
    --brand-accent: #8B5CF6;
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-dim: rgba(255, 255, 255, 0.5);
    --surface: rgba(255, 255, 255, 0.06);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.12);
    --max-w: 1120px;
    --radius: 16px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(160deg, var(--brand-top) 0%, var(--brand-bottom) 100%);
    background-attachment: fixed;
    min-height: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
img { display: block; max-width: 100%; height: auto; }

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.logo img {
    border-radius: 8px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
}

.site-nav a { color: var(--text-muted); }

.nav-cta {
    background: var(--text);
    color: var(--brand-top) !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
}

/* ============ Hero ============ */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 56px 24px 96px;
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
}

.lede {
    font-size: 19px;
    color: var(--text-muted);
    margin: 0 0 32px;
    max-width: 540px;
}

.lede strong { color: var(--text); font-weight: 600; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-store-fallback {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
}

.app-store-btn.large .app-store-fallback {
    padding: 18px 36px;
    font-size: 18px;
}

.micro {
    font-size: 14px;
    color: var(--text-dim);
    margin: 0;
}

/* ============ Hero visual (iPhone mockup) ============ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: clamp(240px, 26vw, 300px);
    background: #0a0a0a;
    border-radius: 44px;
    padding: 8px;
    box-shadow:
        var(--shadow),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 0 2px rgba(0, 0, 0, 0.4);
    line-height: 0;
    animation: heroFloat 6s ease-in-out infinite;
}

.phone-screen-img {
    width: 100%;
    height: auto;
    border-radius: 36px;
    display: block;
}

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

@media (prefers-reduced-motion: reduce) {
    .phone-frame { animation: none; }
}

/* ============ Features ============ */
.features, .how, .download {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 24px;
}

.features h2, .how h2, .download h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 40px;
    text-align: center;
    letter-spacing: -0.5px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.feature:hover {
    background: var(--surface-strong);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* ============ How it works ============ */
.steps {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.steps li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--text);
    color: var(--brand-top);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
}

.step-text {
    color: var(--text-muted);
    font-size: 16px;
    padding-top: 4px;
}

.safety {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px;
    background: rgba(255, 200, 100, 0.08);
    border: 1px solid rgba(255, 200, 100, 0.2);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ============ Download ============ */
.download {
    text-align: center;
}

.download p {
    color: var(--text-muted);
    margin: 0 0 32px;
    font-size: 17px;
}

/* ============ Footer ============ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px 32px;
    max-width: var(--max-w);
    margin: 60px auto 0;
    font-size: 14px;
    color: var(--text-muted);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-logo img { border-radius: 6px; }

.footer-tag {
    margin: 0;
    max-width: 320px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

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

.copyright {
    text-align: center;
    color: var(--text-dim);
    margin: 0;
    font-size: 13px;
}

/* ============ Legal pages ============ */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.legal-content h1 {
    font-size: clamp(32px, 4vw, 44px);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.legal-content h2 {
    font-size: 22px;
    margin: 36px 0 12px;
    letter-spacing: -0.3px;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    font-size: 16px;
}

.legal-content ul {
    padding-left: 22px;
}

.legal-content a {
    color: var(--brand-accent);
    text-decoration: underline;
}

.muted {
    color: var(--text-dim) !important;
    font-size: 14px !important;
    margin-top: 0;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 60px;
        text-align: center;
    }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .lede { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
    .footer-grid { flex-direction: column; align-items: center; text-align: center; }
    .footer-nav { align-items: center; }
}

@media (max-width: 520px) {
    .site-nav { gap: 14px; font-size: 14px; }
    .site-nav a:not(.nav-cta) { display: none; }
    .features, .how, .download { padding: 56px 20px; }
}
