/* ============================================
   Boulder Archive Landing Page - Stylesheet
   ============================================ */

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

:root {
    --ink: #1a1a1a;
    --sand: #f5f0e6;
    --clay: #efe1c9;
    --lava: #e0552c;
    --stone: #2b2e34;
    --fog: #fdf9f3;
    --mist: rgba(255, 255, 255, 0.7);
    --accent: #2c6e6b;
    --accent-light: #b7d2cf;
    --shadow: 0 18px 50px rgba(24, 24, 24, 0.12);
    --shadow-soft: 0 8px 24px rgba(24, 24, 24, 0.1);
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Spline Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--ink);
    background: var(--fog);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: rgba(253, 249, 243, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(43, 46, 52, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--stone);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    flex: 1 1 auto;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--stone);
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--lava);
}

.btn-nav-primary {
    background: var(--stone);
    color: var(--fog);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 auto;
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(43, 46, 52, 0.2);
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 16px;
        font-size: 14px;
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }

    .btn-nav-primary {
        padding: 8px 16px;
        font-size: 12px;
        order: 2;
    }

    .navbar .container {
        gap: 12px;
        padding: 12px 20px;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    background: radial-gradient(circle at top left, #fff2da 0%, #f4e2c8 35%, #e9d0b4 100%);
}

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 85, 44, 0.28), rgba(224, 85, 44, 0));
    top: -160px;
    right: -120px;
    filter: blur(2px);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--stone);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 520px;
    color: rgba(43, 46, 52, 0.8);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--mist);
    border: 1px solid rgba(43, 46, 52, 0.12);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--stone);
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--lava);
    color: white;
    box-shadow: 0 14px 30px rgba(224, 85, 44, 0.3);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--stone);
    border: 1px solid rgba(43, 46, 52, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 46, 52, 0.15);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.hero-stats strong {
    display: block;
    font-weight: 700;
    color: var(--stone);
}

.hero-stats span {
    font-size: 13px;
    color: rgba(43, 46, 52, 0.7);
}

.hero-card {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(43, 46, 52, 0.08);
}

.hero-card-header {
    padding: 12px 16px;
    display: flex;
    gap: 6px;
    background: #f5f2ec;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background: #e46a5d;
}

.dot-yellow {
    background: #f0c66e;
}

.dot-green {
    background: #7fbe8c;
}

.hero-card-body {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.hero-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.route {
    font-weight: 600;
}

.tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(44, 110, 107, 0.12);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.tag.alt {
    background: rgba(224, 85, 44, 0.12);
    color: var(--lava);
}

.tag.light {
    background: rgba(43, 46, 52, 0.08);
    color: var(--stone);
}

.hero-card-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: rgba(43, 46, 52, 0.7);
}

.progress-bar {
    height: 8px;
    background: #f1e7d5;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg, #2c6e6b, #2c9a8f);
    border-radius: 999px;
    animation: pulse 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

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

    .hero {
        padding: 60px 20px;
    }
}

/* ============================================
   Sections
   ============================================ */

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--stone);
}

.section-header p {
    color: rgba(43, 46, 52, 0.7);
    max-width: 620px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--fog) 0%, var(--sand) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: white;
    padding: 28px;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 1px solid rgba(43, 46, 52, 0.06);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--stone);
}

.feature-card p {
    color: rgba(43, 46, 52, 0.7);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 28px;
    }

    .features {
        padding: 40px 20px;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }
}

/* ============================================
   FAQ Section
   ============================================ */

.faq {
    padding: 80px 20px;
    background-color: var(--fog);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.faq-item {
    background-color: white;
    padding: 20px;
    border-radius: 14px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(43, 46, 52, 0.06);
}

.faq-item:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.faq-item summary {
    font-weight: 600;
    color: var(--stone);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 12px;
    color: rgba(43, 46, 52, 0.7);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq {
        padding: 40px 20px;
    }

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

/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--sand) 0%, var(--clay) 100%);
    text-align: center;
}

.contact h2 {
    font-family: var(--font-display);
    font-size: 34px;
    margin-bottom: 16px;
    color: var(--stone);
}

.contact > .container > p {
    font-size: 16px;
    color: rgba(43, 46, 52, 0.7);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 320px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 34px;
    flex-shrink: 0;
}

.contact-info {
    text-align: left;
}

.contact-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.contact-info p {
    color: rgba(43, 46, 52, 0.7);
    font-size: 14px;
}

@media (max-width: 768px) {
    .contact {
        padding: 40px 20px;
    }

    .contact-methods {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--stone);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        gap: 24px;
    }
}

/* ============================================
   Motion & Effects
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

@keyframes pulse {
    0% {
        transform: scaleX(0.96);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0.96);
    }
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .navbar,
    .cta-buttons,
    .contact,
    .footer {
        display: none;
    }
}
