* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #FF2D6F;
    --cyan: #00E5FF;
    --amber: #FFB300;
    --violet: #B388FF;
    --bg-dark: #0A051E;
    --bg-mid: #14082E;
    --bg-card: #1A0E38;
    --text: #EAE6FF;
    --text-mute: rgba(234, 230, 255, 0.7);
    --text-dim: rgba(234, 230, 255, 0.5);
    --white: #ffffff;
    --light-bg: #f6f4ff;
    --text-dark: #1a1a2e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-dark);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--cyan);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    background:
        radial-gradient(ellipse at top right, rgba(255, 45, 111, 0.25), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(0, 229, 255, 0.22), transparent 55%),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 45, 111, 0.08) 0, transparent 2px),
        radial-gradient(circle at 75% 60%, rgba(0, 229, 255, 0.08) 0, transparent 2px),
        radial-gradient(circle at 45% 80%, rgba(179, 136, 255, 0.06) 0, transparent 2px);
    background-size: 120px 120px, 180px 180px, 150px 150px;
    opacity: 0.7;
    pointer-events: none;
}

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

.hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 28px;
    margin-bottom: 2rem;
    box-shadow:
        0 0 60px rgba(255, 45, 111, 0.35),
        0 0 120px rgba(0, 229, 255, 0.18),
        0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--pink) 0%, #FF6B9D 40%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text);
    opacity: 0.95;
    margin-bottom: 1rem;
    font-weight: 500;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-mute);
    max-width: 720px;
    margin: 0 auto 2rem;
}

.app-store-badge img {
    height: 52px;
    transition: transform 0.2s, filter 0.2s;
    filter: drop-shadow(0 8px 24px rgba(0, 229, 255, 0.35));
}

.app-store-badge:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 28px rgba(255, 45, 111, 0.45));
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.features {
    background: var(--bg-mid);
    position: relative;
}

.features::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 50%, rgba(255, 45, 111, 0.08), transparent 40%),
        radial-gradient(ellipse at 90% 50%, rgba(0, 229, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.features h2,
.data-sources h2,
.requirements h2,
.privacy-highlight h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    backdrop-filter: blur(6px);
}

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.12);
}

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

.feature h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature p {
    color: var(--text-mute);
    font-size: 0.95rem;
}

/* Data Sources / Privacy blocks */
.data-sources,
.privacy-highlight {
    background: var(--bg-dark);
}

.sources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.source {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem;
    border-radius: 14px;
}

.source h3 {
    color: var(--pink);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.source p {
    color: var(--text-mute);
    font-size: 0.95rem;
}

.source a {
    color: var(--cyan);
    text-decoration: none;
}

.source a:hover {
    text-decoration: underline;
}

/* Requirements */
.requirements {
    background: var(--bg-mid);
    text-align: center;
}

.requirements ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.requirements li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1.6rem;
    border-radius: 10px;
    color: var(--text);
}

/* Tier rows — colour-coded like the app */
.tiers {
    max-width: 1000px;
    margin: 3rem auto 0;
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.tier-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--pink);
    border-radius: 10px;
}

.tier-row.safety {
    border-left-color: var(--amber);
}

.tier-row.health {
    border-left-color: var(--cyan);
}

.tier-row.admin {
    border-left-color: var(--violet);
}

.tier-label {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    min-width: 140px;
    color: var(--pink);
}

.tier-row.safety .tier-label {
    color: var(--amber);
}

.tier-row.health .tier-label {
    color: var(--cyan);
}

.tier-row.admin .tier-label {
    color: var(--violet);
}

.tier-content {
    color: var(--text-mute);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.75;
    font-size: 0.9rem;
    transition: color 0.2s, opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--cyan);
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-dim);
    max-width: 680px;
    margin: 1.25rem auto 0;
}

footer p {
    color: var(--text-mute);
}

/* Legal pages — keep light for readability */
.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--white);
    color: var(--text-dark);
    min-height: 100vh;
}

.legal-page h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.legal-page h2 {
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.legal-page h3 {
    color: var(--pink);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.legal-page p,
.legal-page ul {
    margin-bottom: 1rem;
}

.legal-page ul {
    padding-left: 2rem;
}

.legal-page a {
    color: var(--pink);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Body override for legal */
body.legal {
    background: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.25rem 3rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .tagline {
        font-size: 1.15rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .features h2,
    .data-sources h2,
    .requirements h2,
    .privacy-highlight h2 {
        font-size: 1.9rem;
    }

    .requirements ul {
        flex-direction: column;
        align-items: center;
    }

    .tier-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .tier-label {
        min-width: auto;
    }
}
