:root {
    --primary: #e040fb;
    --primary-hover: #ce39e0;
    --primary-glow: rgba(224, 64, 251, 0.4);
    --accent: #00b4d8;
    --accent-glow: rgba(0, 180, 216, 0.35);
    --mid: #8b5cf6;
    --bg-color: #0a0a10;
    --card-bg: #111118;
    --card-hover-bg: #18181f;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #1e1e2e;
    --border-highlight: #2d2d3e;
    --gradient-brand: linear-gradient(135deg, #ff2d78 0%, #bf5af2 40%, #0af 100%);
    --gradient-glow: linear-gradient(90deg, #ff2d78, #bf5af2, #0af);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 45, 120, 0.08) 0%, rgba(0, 170, 255, 0.08) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background ambient glow effect */
body::before {
    content: '';
    position: fixed;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 45, 120, 0.15) 0%, rgba(191, 90, 242, 0.1) 40%, rgba(0, 170, 255, 0.08) 70%, transparent 90%);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background: rgba(10, 10, 16, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.5);
}

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

nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

nav a.active {
    color: #fff;
    background: var(--gradient-brand);
    box-shadow: 0 4px 14px rgba(255, 45, 120, 0.35);
}

/* Main Container */
main {
    flex: 1;
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
    width: 100%;
}

/* Legal Content Container */
.content-section {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.4s ease-out forwards;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--gradient-glow);
    border-radius: 2px;
}

h1 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    position: relative;
    padding-bottom: 0.75rem;
}

h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 50px;
    background: var(--gradient-brand);
    border-radius: 4px;
}

h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.25rem 0 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

p {
    margin-bottom: 1.1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 0.6rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.08), rgba(0, 180, 216, 0.06));
    border: 1px solid rgba(255, 45, 120, 0.25);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    color: #e2e8f0;
}

.content-link {
    color: #f472b6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===================== LANDING PAGE ===================== */

.landing-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 45, 120, 0.1);
    border: 1px solid rgba(255, 45, 120, 0.3);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    color: #f9a8d4;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 45, 120, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1.1rem;
}

.landing-title .gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-subtitle {
    font-size: 1.15rem;
    max-width: 580px;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* App store buttons */
.store-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-highlight);
    background: var(--card-bg);
    color: var(--text-main);
}

.store-btn:hover {
    transform: translateY(-3px);
    background: var(--card-hover-bg);
    border-color: rgba(255, 45, 120, 0.4);
    box-shadow: 0 8px 25px rgba(255, 45, 120, 0.2);
}

.store-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.store-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.store-btn .btn-text small {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
}

.store-btn .btn-text span {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Policy Cards */
.landing-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 0.5rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    text-align: left;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 45, 120, 0.1);
    border-radius: 14px;
    border: 1px solid rgba(255, 45, 120, 0.2);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 45, 120, 0.4);
    background: var(--card-hover-bg);
    box-shadow: 0 20px 40px -10px rgba(255, 45, 120, 0.2);
}

.card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: var(--text-main);
}

.card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-grow: 1;
    line-height: 1.55;
}

.card-arrow {
    margin-top: 1.25rem;
    font-weight: 600;
    font-size: 0.84rem;
    color: #f472b6;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.2s ease;
}

.card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* Feature Grid */
.app-features-grid {
    margin-top: 3.5rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-pill {
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.feature-pill:hover {
    border-color: rgba(255, 45, 120, 0.3);
}

.feature-pill h3 {
    font-size: 0.97rem;
    margin-bottom: 0.35rem;
    color: #f1f5f9;
}

.feature-pill p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ===================== SUPPORT PAGE ===================== */

.contact-card {
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.12), rgba(0, 180, 216, 0.1));
    border: 1px solid rgba(255, 45, 120, 0.3);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    text-align: center;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(255, 45, 120, 0.6);
    box-shadow: 0 0 35px rgba(255, 45, 120, 0.15);
    transform: translateY(-2px);
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient-brand);
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 45, 120, 0.35);
    margin: 1rem 0;
}

.email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 45, 120, 0.5);
    opacity: 0.95;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.35rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.response-badge {
    display: inline-block;
    background: rgba(255, 45, 120, 0.12);
    color: #f9a8d4;
    border: 1px solid rgba(255, 45, 120, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Account deletion form */
.deletion-notice {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: #fca5a5;
    font-size: 0.95rem;
}

/* ===================== FOOTER ===================== */

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    background: rgba(10, 10, 16, 0.5);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 0.5rem;
}

footer a:hover {
    color: #f472b6;
}

/* ===================== ANIMATIONS ===================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .content-section {
        padding: 1.75rem 1.25rem;
    }

    .landing-title {
        font-size: 2.2rem;
    }

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

    .landing-links {
        grid-template-columns: 1fr;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}
