/* ══════════════════════════════════════════════════════════════
   PrayerConnect Support Site — Styles
   prayer.track-record.co
   ══════════════════════════════════════════════════════════════ */

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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(124, 139, 255, 0.25);

    --text-primary: #f0f2f8;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-primary: #7c8bff;
    --accent-secondary: #a78bfa;
    --accent-warm: #f59e0b;
    --accent-glow: rgba(124, 139, 255, 0.15);

    --gradient-hero: linear-gradient(135deg, #1a1f3a 0%, #0a0e1a 40%, #111827 100%);
    --gradient-accent: linear-gradient(135deg, #7c8bff, #a78bfa, #c084fc);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(124, 139, 255, 0.1);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ─── Ambient Background Orbs ────────────────────────────────── */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 139, 255, 0.2), transparent 70%);
    top: -150px;
    right: -100px;
    animation: orb-float-1 18s ease-in-out infinite;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
    bottom: 20%;
    left: -120px;
    animation: orb-float-2 22s ease-in-out infinite;
}

.bg-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
    top: 60%;
    right: -80px;
    animation: orb-float-3 20s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, 30px); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-25px, -35px); }
}

/* ─── Container ──────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ─── Navigation ─────────────────────────────────────────────── */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 14, 26, 0.75);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-icon {
    font-size: 24px;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ─── Hero ────────────────────────────────────────────────────── */
#hero {
    background: var(--gradient-hero);
    padding: 160px 24px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: var(--accent-glow);
    border: 1px solid var(--border-glow);
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(124, 139, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(124, 139, 255, 0.2); }
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 30%, var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Sections ───────────────────────────────────────────────── */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-alt::before,
.section-alt::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
}

.section-alt::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.section-alt::after {
    bottom: 0;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-muted);
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    transition: var(--transition-fast);
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--accent-primary);
    transition: var(--transition-fast);
    flex-shrink: 0;
    margin-left: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-glow);
}

.faq-item[open] summary::after {
    content: '−';
    background: var(--accent-primary);
    color: #fff;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    animation: faq-open 0.3s ease-out;
}

@keyframes faq-open {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
    margin-bottom: 8px;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* ─── Privacy ─────────────────────────────────────────────────── */
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.privacy-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition-smooth);
}

.privacy-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.privacy-card-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.privacy-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.privacy-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ─── Contact ─────────────────────────────────────────────────── */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.contact-link {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 100px;
    background: var(--gradient-accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(124, 139, 255, 0.3);
}

.contact-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(124, 139, 255, 0.4);
}

.contact-card ul {
    list-style: none;
    text-align: left;
    padding: 0;
}

.contact-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.contact-card li::before {
    content: '•';
    color: var(--accent-primary);
    font-size: 16px;
    position: absolute;
    left: 0;
}

/* ─── Footer ──────────────────────────────────────────────────── */
#footer {
    padding: 50px 0 40px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

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

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-inner {
        padding: 14px 16px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    #hero {
        padding: 130px 20px 80px;
    }

    .section {
        padding: 60px 0;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .faq-item summary {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 18px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .privacy-card, .contact-card {
        padding: 22px;
    }
}

/* ─── Scroll Reveal Animation ─────────────────────────────────── */
.faq-item,
.privacy-card,
.contact-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color var(--transition-smooth), background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.faq-item.visible,
.privacy-card.visible,
.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}
