/* ============================================
   HABITROASTER — Landing Page Styles
   Bold yellow theme inspired by Weirdos design
   ============================================ */

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

:root {
    --yellow: #FFD700;
    --yellow-light: #FFF3B0;
    --yellow-pale: #FFFBE6;
    --black: #1a1a1a;
    --dark: #2a2a2a;
    --white: #ffffff;
    --red: #FF3B30;
    --purple: #8B5CF6;
    --blue: #3B82F6;
    --font-display: 'Permanent Marker', cursive;
    --font-body: 'Inter', -apple-system, sans-serif;
    --border: 3px solid var(--black);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--yellow);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--yellow);
    border-bottom: var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logo-icon {
    font-size: 1.6rem;
}

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

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--black);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-display);
    font-size: 0.85rem;
    background: var(--black);
    color: var(--yellow);
    padding: 10px 20px;
    border-radius: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    padding: 140px 24px 60px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 32px;
    opacity: 0.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    background: var(--black);
    color: var(--yellow);
    padding: 16px 36px;
    border-radius: 50px;
    border: var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.2);
}

.cta-btn.dark {
    background: var(--black);
    color: var(--yellow);
}

/* Hero Mascots Banner */
.hero-mascots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.hero-mascot {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: var(--border);
    background: var(--yellow-pale);
    transition: transform 0.3s, z-index 0s;
    margin: 0 -8px;
}

.hero-mascot:hover {
    transform: scale(1.2) translateY(-10px);
    z-index: 10;
}

/* ============ JOIN SECTION ============ */
.join-section {
    background: var(--yellow-pale);
    border-top: var(--border);
    border-bottom: var(--border);
    padding: 80px 24px;
}

.join-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-title.center {
    text-align: center;
}

.join-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--dark);
}

.join-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    border: var(--border);
    background: var(--yellow);
    padding: 16px;
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.join-image img:hover {
    transform: rotate(-1deg) scale(1.03);
}

/* ============ FEATURES SECTION ============ */
.features-section {
    background: var(--yellow);
    padding: 80px 24px;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
}

/* Roadmap Steps */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.roadmap-item {
    background: var(--yellow-pale);
    border: var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    transition: transform 0.2s;
}

.roadmap-item:hover {
    transform: translateY(-4px);
}

.roadmap-num {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 32px;
    height: 32px;
    background: var(--black);
    color: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.roadmap-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
}

.roadmap-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 6px;
}

.roadmap-item p {
    font-size: 0.85rem;
    color: var(--dark);
    line-height: 1.5;
}

/* Benefits */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--yellow-pale);
    border: var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s;
}

.benefit-item:hover {
    transform: translateX(4px);
}

.benefit-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--dark);
    line-height: 1.5;
}

/* ============ MASCOTS SECTION ============ */
.mascots-section {
    background: var(--black);
    color: var(--yellow);
    padding: 80px 24px;
    border-top: var(--border);
}

.mascots-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 48px;
    opacity: 0.8;
}

.mascots-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.mascot-card {
    text-align: center;
    padding: 20px 12px;
    background: rgba(255,215,0,0.08);
    border: 2px solid rgba(255,215,0,0.2);
    border-radius: var(--radius);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
    cursor: pointer;
}

.mascot-card:hover {
    transform: translateY(-8px);
    border-color: var(--yellow);
    background: rgba(255,215,0,0.15);
}

.mascot-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    background: var(--dark);
}

.mascot-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.mascot-card p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Wiggle Animation */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-3deg); }
}

/* ============ ROADMAP/TIMELINE SECTION ============ */
.roadmap-section {
    background: var(--yellow-pale);
    padding: 80px 24px;
    border-top: var(--border);
    border-bottom: var(--border);
}

.timeline {
    max-width: 800px;
    margin: 48px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--black);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 48px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 8px;
    width: 20px;
    height: 20px;
    background: var(--yellow);
    border: 4px solid var(--black);
    border-radius: 50%;
}

.timeline-item.left::before {
    right: -10px;
}

.timeline-item.right::before {
    left: -10px;
}

.timeline-content {
    background: var(--white);
    border: var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.timeline-phase {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--red);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.5;
}

/* ============ FAQ SECTION ============ */
.faq-section {
    background: var(--yellow);
    padding: 80px 24px;
}

.faq-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 48px;
    align-items: start;
}

.faq-left .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.faq-mascot {
    width: 200px;
    margin-top: 24px;
    border-radius: 16px;
    border: var(--border);
    background: var(--yellow-pale);
    padding: 12px;
    transform: rotate(-5deg);
}

.faq-item {
    border: var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--yellow-pale);
    transition: background 0.2s;
}

.faq-item:hover {
    background: var(--white);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.faq-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

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

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 20px 16px;
}

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark);
}

/* ============ DOWNLOAD SECTION ============ */
.download-section {
    background: var(--black);
    color: var(--yellow);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: var(--border);
}

.download-inner {
    position: relative;
    z-index: 2;
}

.download-subtitle {
    font-size: 1.2rem;
    margin-bottom: 36px;
    opacity: 0.8;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--yellow);
    color: var(--black);
    padding: 14px 28px;
    border-radius: 14px;
    border: 3px solid var(--yellow);
    font-family: var(--font-body);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,215,0,0.3);
}

.store-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
}

.download-mascots {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.float-mascot {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

.float-mascot.f2 {
    animation-delay: 1.3s;
}

.float-mascot.f3 {
    animation-delay: 2.6s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============ FOOTER ============ */
.footer {
    background: var(--yellow);
    border-top: var(--border);
    padding: 32px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--yellow);
        border-bottom: var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

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

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .join-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .join-image {
        display: flex;
        justify-content: center;
    }

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

    .mascots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        left: 10px;
    }

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

    .faq-left {
        text-align: center;
    }

    .faq-mascot {
        display: none;
    }

    .hero-mascots {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .hero-mascot {
        width: 80px;
        height: 80px;
        margin: 0;
    }
}

@media (max-width: 500px) {
    .hero-title {
        font-size: 2rem;
    }

    .mascots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .download-mascots {
        gap: 20px;
    }

    .float-mascot {
        width: 80px;
        height: 80px;
    }
}
