/* ==========================================================================
   1. Reset & Global Variables
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);

    /* Brand accent colors — add more here as new app categories appear */
    --green-accent: #34d399;
    --blue-accent: #6366f1;
    --coral-accent: #f97362;

    /* Backgrounds */
    --bg-page: #050710;
    --bg-card: #0c0f1c;
    --bg-card-hover: #11142400;
    --bg-hero: radial-gradient(circle at 50% 35%, #0d1726 0%, #050710 70%);
}

html, body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   2. Translucent Navigation Bar (Glassmorphism)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--bg-page);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 2rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   3. Hero Section (Mission Statement)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero);
    padding: 6rem 2rem 2rem;
}

.hero-content {
    max-width: 720px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content .app-tag {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   4. App Tags
   ========================================================================== */
.app-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.tag-green { color: var(--green-accent); }
.tag-blue { color: var(--blue-accent); }
.tag-coral { color: var(--coral-accent); }

/* ==========================================================================
   5. App Grid (Scalable Card Layout)
   ========================================================================== */
.app-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.app-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.card-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* ==========================================================================
   6. Standardized Buttons & Call-to-Actions
   ========================================================================== */
.cta-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.btn-app-store {
    display: inline-flex;
    align-items: center;
    background-color: var(--text-primary);
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: 9999px;
    gap: 0.6rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Accent button variants — pick the one matching the card's tag */
.btn-blue {
    background-color: var(--blue-accent);
    color: #ffffff;
}

.btn-coral {
    background-color: var(--coral-accent);
    color: #ffffff;
}

.btn-app-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.link-learn-more {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.link-learn-more:hover {
    opacity: 0.8;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.main-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-left: 1.5rem;
}

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

/* ==========================================================================
   8. Media Queries
   ========================================================================== */

/* Tablet: drop to 2 columns before things get cramped */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: stack everything */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding: 8rem 1.5rem 3rem;
    }

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

    .app-grid {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
    }

    .btn-app-store {
        width: 100%;
        justify-content: center;
    }

    .link-learn-more {
        align-self: center;
        padding: 0.5rem 0;
    }

    .main-footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 3rem 1.5rem;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .footer-links a {
        margin: 0 1rem;
    }
}

/* ==========================================================================
   9. Sub-page Hero (product, support, privacy)
   ========================================================================== */
.subpage-hero {
    background: var(--bg-hero);
    padding: 9rem 2rem 4rem;
    text-align: center;
}

.subpage-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.subpage-hero .app-tag {
    margin-bottom: 1.25rem;
}

.subpage-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.subpage-hero-sub {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
}

/* ==========================================================================
   10. Content Sections (product, support, privacy)
   ========================================================================== */
.content-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* ==========================================================================
   11. Screenshot Gallery (horizontal scroll snap)
   ========================================================================== */
.shot-gallery {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.shot {
    flex: 0 0 220px;
    aspect-ratio: 9 / 19.5;
    border-radius: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    overflow: hidden;
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   12. Feature Grid (icon + title + description cards)
   ========================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.75rem;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    background: rgba(52, 211, 153, 0.1);
    color: var(--green-accent);
    margin-bottom: 1rem;
}

/* fundadrill feature icons take blue tint */
.fd-feature .feature-icon {
    background: rgba(99, 102, 241, 0.12);
    color: var(--blue-accent);
}

.feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   13. Callout / "Who it's for" section
   ========================================================================== */
.callout {
    background-color: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 2rem;
}

.callout-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.callout-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.callout-text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ==========================================================================
   14. End-of-page CTA (product pages)
   ========================================================================== */
.end-cta {
    padding: 5rem 2rem 6rem;
    text-align: center;
}

.end-cta-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   15. FAQ (support page)
   ========================================================================== */
.faq-group {
    margin-bottom: 3rem;
}

.faq-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.85rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--text-primary);
}

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

.faq-chev {
    transition: transform 0.2s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-chev {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   16. Contact Card (support page)
   ========================================================================== */
.contact-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.mailto-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--text-primary);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mailto-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   17. Privacy long-form prose
   ========================================================================== */
.prose-section {
    margin-bottom: 2.5rem;
}

.prose-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.prose-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.prose-section p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.prose-link {
    color: var(--green-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.prose-link:hover {
    color: #5ee3ad;
}

.last-updated {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ==========================================================================
   18. Active nav state (when on a sub-page)
   ========================================================================== */
.nav-links a[aria-current="page"] {
    color: var(--text-primary);
}

/* ==========================================================================
   19. Sub-page mobile adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .subpage-hero {
        padding: 7rem 1.5rem 3rem;
    }
    .subpage-hero-title {
        font-size: 1.8rem;
    }
    .content-section {
        padding: 3rem 1.5rem;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .callout {
        padding: 3rem 1.5rem;
    }
    .shot {
        flex: 0 0 180px;
    }
    .contact-card {
        padding: 2rem 1.5rem;
    }
}
