/* ============================================================
   MOBILE.CSS — ConstellaGen Responsive Styles
   Import AFTER style.css:
   <link rel="stylesheet" href="mobile.css">
   Breakpoints:
     tablet  → max-width: 1024px
     phone   → max-width: 640px
============================================================ */

/* ============================================================
   TABLET (≤1024px)
============================================================ */
@media (max-width: 1024px) {

    /* NAVBAR */
    .nb-inner {
        padding: 0 28px;
    }
    .nb-links {
        gap: 0px;
    }
    .nb-link {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
    .nb-signup {
        padding: 9px 16px;
        font-size: 0.8rem;
    }

    /* SECTIONS */
    .section-inner {
        padding: 0 32px;
    }

    /* HERO */
    .hero-content h1 {
        font-size: clamp(2.8rem, 6vw, 4.5rem);
    }

    /* FEATURES — 2 cols on tablet, last card centered */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid .card:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    /* HOW IT WORKS — stack vertically */
    .steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .step {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        padding: 28px 0;
        border-bottom: 1px solid rgba(248, 208, 79, 0.08);
        width: 100%;
    }
    .step:last-child {
        border-bottom: none;
    }
    .step-connector {
        display: none;
    }
    .step-number {
        font-size: 2.2rem;
        flex-shrink: 0;
        min-width: 56px;
    }
    .step-body p {
        max-width: 100%;
    }

    /* FOOTER */
    .footer-content {
        padding: 0 32px;
    }
}

/* ============================================================
   PHONE (≤640px)
============================================================ */
@media (max-width: 640px) {

    /* NAVBAR — hide links, keep logo + signup only */
    .nb-links {
        display: none;
    }
    .nb-sep {
        display: none;
    }
    .nb-login {
        display: none;
    }
    .nb-inner {
        padding: 0 20px;
    }
    .nb-signup {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    /* HERO */
    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-content {
        transform: translateY(0);
        padding: 0 8px;
    }
    .hero-content h1 {
        font-size: clamp(2.4rem, 10vw, 3.5rem);
        letter-spacing: -0.03em;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 13px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btn-primary,
    .hero-btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    .hero-scroll-cue {
        display: none;
    }

    /* SECTIONS */
    .section-inner {
        padding: 0 20px;
    }
    .features,
    .how-it-works {
        padding: 80px 0;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    /* FEATURES — single column */
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid .card:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    .card {
        padding: 28px 24px;
    }

    /* HOW IT WORKS */
    .step {
        padding: 24px 0;
        gap: 18px;
    }
    .step-number {
        font-size: 1.8rem;
        min-width: 44px;
    }
    .step-body h3 {
        font-size: 0.98rem;
    }
    .step-body p {
        font-size: 0.875rem;
    }

    /* CTA */
    .cta {
        padding: 80px 20px;
        min-height: auto;
    }
    .cta-inner h2 {
        font-size: clamp(1.9rem, 7vw, 2.8rem);
    }
    .cta-inner p {
        font-size: 0.95rem;
    }
    .hero-btn-primary {
        width: 100%;
        justify-content: center;
    }
    .beta-note {
        font-size: 0.78rem;
        text-align: left;
    }

    /* FOOTER */
    .footer {
        padding: 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0;
    }
    .footer-logo {
        justify-content: center;
    }

    /* REVEAL — reduce motion distance on small screens */
    .reveal {
        transform: translateY(16px);
    }
}

/* ============================================================
   TINY PHONES (≤380px) — Galaxy Fold etc.
============================================================ */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .nb-logo-text {
        font-size: 1rem;
    }
    .nb-signup {
        font-size: 0.72rem;
        padding: 7px 12px;
    }
}