/* Numvana Website - Matches app's dark, nature-inspired visual identity */

:root {
    --bg-primary: #0F1923;
    --bg-secondary: #1A2D3D;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.09);
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent-gold: #FDCB6E;
    --accent-green: #00B894;
    --accent-blue: #74B9FF;
    --accent-coral: #E17055;
    --accent-purple: #A29BFE;
    --accent-cyan: #55EFC4;
    --accent-pink: #FD79A8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(116, 185, 255, 0.2);
    --radius: 16px;
    --radius-sm: 12px;
    --max-width: 720px;
    --font: 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, #162230 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 25, 35, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 24px 48px;
}

.hero-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-tagline {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 480px;
    margin: 0 auto 8px;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 440px;
    margin: 0 auto;
}

.hero p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.hero-cta {
    margin-top: 32px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(116, 185, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(116, 185, 255, 0.35);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Sections */
.section {
    padding: 56px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 36px;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tile journey */
.tile-journey {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tile-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tile-hex {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tile-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--bg-primary);
    transition: transform 0.2s;
}

.tile-step:hover .tile-hex {
    transform: scale(1.1);
}

.tile-step span {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

.tile-step-highlight .tile-hex {
    box-shadow: 0 0 20px rgba(249, 202, 36, 0.4);
}

.tile-arrow {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: -18px;
}

/* Game modes */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.mode-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.mode-badge.zen {
    background: rgba(85, 239, 196, 0.15);
    color: var(--accent-cyan);
}

.mode-badge.challenge {
    background: rgba(116, 185, 255, 0.15);
    color: var(--accent-blue);
}

.mode-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mode-card ul {
    list-style: none;
    padding: 0;
}

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

.mode-card li::before {
    content: '·';
    position: absolute;
    left: 4px;
    color: var(--text-muted);
    font-weight: bold;
}

.section-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 24px;
}

.section-note a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(116, 185, 255, 0.3);
    transition: border-color 0.2s;
}

.section-note a:hover {
    border-color: var(--accent-blue);
}

/* Timer flow */
.timer-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.timer-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    min-width: 110px;
}

.timer-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.timer-step strong {
    font-size: 14px;
    color: var(--text-primary);
}

.timer-step span {
    font-size: 12px;
    color: var(--text-muted);
}

.timer-arrow {
    color: var(--text-muted);
    font-size: 18px;
}

/* Achievements */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.achievement:hover {
    border-color: var(--border-accent);
}

.achievement-highlight {
    border-color: rgba(253, 203, 110, 0.25);
}

.achievement-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-info strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
}

.achievement-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.achievement-reward {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    white-space: nowrap;
    padding: 4px 12px;
    background: rgba(253, 203, 110, 0.1);
    border-radius: 20px;
}

/* CTA section */
.cta-section {
    text-align: center;
    padding: 56px 0;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
}

/* Quick links (homepage cards) */
.quick-links {
    display: grid;
    gap: 16px;
}

/* Page header (non-hero pages) */
.page-header {
    padding: 56px 0 32px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

/* Content sections */
.content {
    padding: 0 0 80px;
}

.content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 28px 0 12px;
    color: var(--accent-blue);
}

.content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.content ul, .content ol {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
    font-size: 15px;
}

.content li {
    margin-bottom: 8px;
}

.content a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(116, 185, 255, 0.3);
    transition: border-color 0.2s;
}

.content a:hover {
    border-color: var(--accent-blue);
}

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

/* Cards */
.cards {
    display: grid;
    gap: 16px;
    margin: 40px 0;
}

.card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-icon.green { background: rgba(0, 184, 148, 0.15); }
.card-icon.blue { background: rgba(116, 185, 255, 0.15); }
.card-icon.gold { background: rgba(253, 203, 110, 0.15); }
.card-icon.purple { background: rgba(162, 155, 254, 0.15); }

.card-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-primary);
}

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

.card-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 14px;
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* FAQ category label */
.faq-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 40px 0 8px;
    padding-top: 16px;
}

.faq-category:first-child {
    margin-top: 0;
}

/* Highlight box */
.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 24px 0;
}

.highlight-box p {
    margin-bottom: 8px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

/* Support page */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.support-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.support-card .support-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.support-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.support-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.support-email {
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 500;
    margin-top: 8px;
    display: inline-block;
}

/* Bug report template */
.bug-template {
    background: rgba(15, 25, 35, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 16px 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-top: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 600px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 25, 35, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 56px 24px 32px;
    }

    .hero h1 {
        font-size: 30px;
    }

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

    .page-header {
        padding: 40px 0 24px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .content h2 {
        font-size: 18px;
    }

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

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

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

    .timer-flow {
        gap: 8px;
    }

    .timer-step {
        padding: 16px;
        min-width: 90px;
    }

    .timer-arrow {
        display: none;
    }

    .tile-arrow {
        display: none;
    }

    .tile-journey {
        gap: 6px;
    }

    .tile-hex {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .tile-step span {
        font-size: 9px;
    }

    .section-title {
        font-size: 22px;
    }

    .cta-section h2 {
        font-size: 24px;
    }
}
