/* ═══════════════════════════════════════════════════════════
   HERD PAGE STYLES
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.herd-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(56.25vw * 1.1 + 20px);
}

.herd-hero-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-align: center;
}

.herd-hero-image {
    position: absolute;
    inset: 4rem 0 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(.9) translateY(0px);
    transform-origin: top center;
    pointer-events: none;
    user-select: none;
}

.herd-hero-header {
    position: absolute;
    top: 19.5%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.herd-hero h1 {
    font-family: "Press Start 2P", monospace;
    font-size: 4rem;
    line-height: 1.3;
    letter-spacing: 0;
    color: #ffffff;
    text-shadow:
        -3px -3px 0 #000000,
         3px -3px 0 #000000,
        -3px  3px 0 #000000,
         3px  3px 0 #000000,
         0   -3px 0 #000000,
         0    3px 0 #000000,
        -3px  0   0 #000000,
         3px  0   0 #000000,
         5px  8px 0 #000000;
}

.herd-hero-actions {
    position: absolute;
    top: 35.5%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

.herd-hero-sub {
    max-width: 580px;
    font-size: 1.4rem;
    color: #000000;
    text-shadow:
        0 0 18px #ffffff,
        0 0 26px #ffffff,
        0 0 34px #ffffff;
}

.mobile-break {
    display: none;
}

[data-theme="dark"] .herd-hero h1 {
    text-shadow:
        5px 8px 0 #000000;
}

[data-theme="dark"] .herd-hero-sub {
    text-shadow:
        0 1px 0 rgba(15, 23, 42, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.4);
}

.herd-hero-actions .badge,
.herd-hero-actions .btn {
    border: 2px solid var(--color-foreground);
    box-shadow: 4px 4px 0 var(--color-foreground);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: none;
    background-color: #000000;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.herd-hero-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 0.7rem 1.15rem;
    border: 2px solid var(--color-foreground);
    border-radius: 0;
    background: rgba(247, 130, 0, 0.92);
    color: var(--neutral-900);
    font-family: "Roboto Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    text-shadow: none;
    box-shadow: 4px 4px 0 var(--color-foreground);
}

[data-theme="dark"] .herd-hero-status {
    background: rgba(247, 130, 0, 0.88);
    color: var(--neutral-950);
}

[data-theme="dark"] .herd-hero-copy .badge,
[data-theme="dark"] .herd-hero-copy .btn {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.36);
}

.herd-hero-actions .btn:hover,
.herd-hero-actions .btn:focus,
.herd-hero-actions .btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--color-foreground);
}

/* ─── FEATURES ─── */
.herd-features {
    margin-top: 3rem;
    padding: 2rem 0 5rem;
}

.herd-features h2 {
    font-family: "Roboto Mono", monospace;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.herd-features-intro {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--neutral-600);
}

[data-theme="dark"] .herd-features-intro {
    color: var(--neutral-400);
}

.herd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.herd-feature-card {
    min-height: 100%;
    padding: 1.75rem;
    border: 2px solid var(--color-foreground);
    border-radius: 0;
    box-shadow: 6px 6px 0 var(--color-foreground);
}

.herd-feature-card h3 {
    margin-bottom: 0.75rem;
    font-family: "Roboto Mono", monospace;
    font-size: 1rem;
    color: var(--brand-orange);
}

.herd-feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--neutral-600);
}

[data-theme="dark"] .herd-feature-card p {
    color: var(--neutral-400);
}

/* ─── WAITLIST ─── */
.herd-waitlist {
    padding: 0 0 6rem;
}

.herd-waitlist-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--color-foreground);
    box-shadow: 8px 8px 0 var(--color-foreground);
}

.herd-waitlist-content h2 {
    font-family: "Roboto Mono", monospace;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.herd-waitlist-content > p {
    font-size: 1rem;
    color: var(--neutral-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

[data-theme="dark"] .herd-waitlist-content > p {
    color: var(--neutral-400);
}

.herd-waitlist-form {
    max-width: 480px;
    margin: 0 auto;
}

.herd-waitlist-row {
    display: flex;
    justify-content: center;
    gap: 0;
}

.herd-waitlist-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-foreground);
    border-right: none;
    background: var(--color-background);
    color: var(--color-foreground);
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
}

.herd-waitlist-form input[type="email"]::placeholder {
    color: var(--neutral-500);
}

.herd-waitlist-form .btn {
    border: 2px solid var(--color-foreground);
    box-shadow: 4px 4px 0 var(--color-foreground);
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.herd-waitlist-form .btn:hover,
.herd-waitlist-form .btn:focus {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--color-foreground);
}

.herd-waitlist-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0 var(--color-foreground);
}

.herd-waitlist-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: "Roboto Mono", monospace;
    font-size: 0.82rem;
    color: var(--neutral-600);
    cursor: pointer;
}

[data-theme="dark"] .herd-waitlist-checkbox {
    color: var(--neutral-400);
}

.herd-waitlist-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--brand-orange);
    cursor: pointer;
}

.herd-waitlist-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--neutral-500);
}

.herd-waitlist-privacy {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

/* ─── RESPONSIVE ─── */

/* Tablet — same layout as desktop, just smaller */
@media (max-width: 1024px) {
    .herd-hero h1 {
        font-size: 2.5rem;
        text-shadow:
            -3px -3px 0 #000000,
             3px -3px 0 #000000,
            -3px  3px 0 #000000,
             3px  3px 0 #000000,
             0   -3px 0 #000000,
             0    3px 0 #000000,
            -3px  0   0 #000000,
             3px  0   0 #000000,
             4px  6px 0 #000000;
    }

    .herd-hero-header {
        top: 17%;
    }

    .herd-hero-actions {
        top: 32%;
    }

    .herd-hero-sub {
        font-size: 1rem;
    }

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

    .herd-waitlist-content {
        padding: 2rem 1.25rem;
    }

    .herd-waitlist-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .herd-waitlist-form input[type="email"] {
        border-right: 2px solid var(--color-foreground);
    }
}

/* Mobile — title + subtitle over elephants, CTA below */
@media (max-width: 480px) {
    .herd-hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .herd-hero-content {
        position: relative;
        z-index: 1;
        padding: 4.5rem 1.25rem 0;
        order: 0;
    }

    .herd-hero-header {
        position: relative;
        top: auto;
        gap: 0.5rem;
    }

    .herd-hero-image {
        position: relative;
        inset: auto;
        transform: scale(1.2);
        transform-origin: center top;
        height: auto;
        margin-top: -5.5rem;
        order: 1;
    }

    .herd-hero-actions {
        position: relative;
        top: auto;
        order: 2;
        margin-top: -0.5rem;
        padding-bottom: 1.5rem;
    }

    .herd-hero h1 {
        font-size: 1.7rem;
        text-shadow:
            -2px -2px 0 #000000,
             2px -2px 0 #000000,
            -2px  2px 0 #000000,
             2px  2px 0 #000000,
             0   -2px 0 #000000,
             0    2px 0 #000000,
            -2px  0   0 #000000,
             2px  0   0 #000000,
             3px  4px 0 #000000;
    }

    .herd-hero-sub {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .mobile-break {
        display: block;
    }
}
