:root {
    --primary: #4D9EFF;
    --navy: #0B1E2D;
    --muted-slate: #5F738C;
    --off-white: #F9FAFB;
    --background-light: #FFFFFF;
    --font-display: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-display);
    background-color: var(--background-light);
    color: var(--navy);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

.feature-card,
.feature-icon-wrapper,
.pill-btn,
.logo,
.robot-mascot {
    will-change: transform, opacity;
}


a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
    outline: none;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.text-navy {
    color: var(--navy);
}

.text-white {
    color: white;
}

.text-muted {
    color: var(--muted-slate);
}

.uppercase {
    text-transform: uppercase;
}

.font-black {
    font-weight: 900;
}

.font-extrabold {
    font-weight: 800;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

/* Top Banner */
.top-banner {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}

.banner-left,
.banner-right {
    flex: 1;
}

.banner-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.banner-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.banner-link {
    margin-left: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.banner-link:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    position: relative;
    z-index: 50;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f1f5f9;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    position: absolute !important;
    left: 50% !important;
    top: 55% !important;
    transform: translate(-50%, -50%) !important;
    height: 110px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    pointer-events: none;
}

@media (max-width: 768px) {
    .navbar .logo {
        height: 85px !important;
        top: 50% !important;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-item {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-slate);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

/* -- Pill Nav Button Effect -- */
.pill-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pill-btn .hover-circle {
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 50%;
    background: var(--hover-bg, #000);
    z-index: 1;
    display: block;
    pointer-events: none;
    will-change: transform;
    transform: translateX(-50%) scale(0);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.pill-btn.is-hovered .hover-circle {
    transform: translateX(-50%) scale(1.2);
}

.pill-btn .label-stack {
    position: relative;
    display: inline-block;
    line-height: 1;
    z-index: 2;
}

.pill-btn .pill-label {
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: inherit;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.pill-btn.is-hovered .pill-label {
    transform: translateY(-200%);
    /* Adjust based on height, scripted later or fixed */
}

.pill-btn .pill-label-hover {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hover-color, #fff);
    z-index: 3;
    display: inline-block;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), opacity 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.pill-btn.is-hovered .pill-label-hover {
    transform: translateY(0);
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
    /* Balanced padding */
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-deco {
    position: absolute;
    color: var(--primary);
    opacity: 0.15;
}

.deco-star-1 {
    top: 2.5rem;
    left: 2.5rem;
    font-size: 2.5rem;
}

.deco-star-2 {
    bottom: 5rem;
    right: 2.5rem;
    font-size: 2.5rem;
}

.hero-content {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.hero-title-wrapper {
    position: relative;
    display: block;
    /* inline-block prevents natural full-width wrapping */
    width: 100%;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.75rem, 5vw, 4.25rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--navy);
    text-transform: uppercase;
    margin: 0;
    white-space: normal;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero-title br {
    display: block;
}

.hero-title .line-2 {
    display: block;
    text-align: center;
    margin-top: 0.05em;
}

.deco-zigzag {
    position: absolute;
    top: -0.5rem;
    color: var(--primary);
}

.deco-zigzag-left {
    left: -3.5rem;
    transform: rotate(15deg);
}

.deco-zigzag-right {
    right: -3.5rem;
    transform: rotate(-15deg);
}

.hero-description {
    margin-top: 1.5rem;
    max-width: 50rem;
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--muted-slate);
    line-height: 1.6;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
        max-width: 54rem;
    }
}

.cloud-wrapper {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
    width: 100%;
    max-width: 36rem;
    display: flex;
    justify-content: center;
}

.email-capture {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--off-white);
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.email-capture:focus-within {
    box-shadow: 0 0 0 4px rgba(77, 158, 255, 0.1);
}

.email-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 2rem;
    color: var(--navy);
    font-weight: 500;
    font-size: 1rem;
}

.email-input::placeholder {
    color: var(--muted-slate);
}

.btn-capture {
    background-color: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-capture:active {
    transform: scale(0.98);
}

.social-proof {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-left: -1rem;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(77, 158, 255, 0.1);
    color: var(--primary);
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: -1rem;
    z-index: 10;
}

.proof-text {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}



/* Features */
.features {
    padding: 6rem 1.5rem;
    /* Balanced padding */
    background-color: white;
}

.features-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-radius: 1.5rem;
    /* More rounded */
    border: 1px solid #f1f5f9;
    background-color: #ffffff;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Subtle shadow base */
}

.feature-card:hover {
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.feature-icon-wrapper {
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background-color: rgba(0, 102, 255, 0.06);
    /* Soft blue background from ref */
    color: var(--primary);
    transition: all 0.3s;
}

.feature-icon-wrapper .material-symbols-outlined {
    font-size: 1.75rem;
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: white;
}

.feature-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--muted-slate);
    line-height: 1.6;
    font-weight: 450;
    font-size: 0.9375rem;
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid #f1f5f9;
    padding: 5rem 1.5rem;
    text-align: center;
    background-color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-slate);
}

.footer-links span {
    cursor: pointer;
}

.footer-links span:hover {
    color: var(--navy);
}

.footer-copyright {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted-slate);
}

/* Material Icons specific styling */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hide-tablet {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-links {
        gap: 0.6rem;
    }

    .nav-links .pill-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
        min-height: 44px;
        /* Essential for touch targets */
        display: flex;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════
   Zigzag Border Animation
   ═══════════════════════════════════════════════════ */
@keyframes zigzagMarch {
    to {
        stroke-dashoffset: -32;
    }
}

/* ═══════════════════════════════════════════════════
   Say Hi to Maggiz Section
   ═══════════════════════════════════════════════════ */
#fire-canvas {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.say-hi-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    padding: 2rem 1.5rem 0;
    background: #ffffff;
}

/* Smooth fade at the bottom so fire doesn't cut off abruptly */
.say-hi-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 40%, rgba(255, 255, 255, 1) 100%);
    z-index: 5;
    pointer-events: none;
}

.maggiz-title-wrapper {
    position: relative;
    display: inline-block;
    width: fit-content;
}

.maggiz-robot-mascot {
    position: absolute;
    /* Tucked into the bottom-right corner of the title */
    bottom: -5px;
    right: -75px;
    /* Massive size to match the high-impact visual reference */
    width: clamp(200px, 28vw, 360px);
    height: auto;
    z-index: 10;
    pointer-events: none;
    /* Distinct animations for desktop vs mobile */
    animation: floatingRoboDesktop 3s ease-in-out infinite;
    transform-origin: center bottom;
    /* Pushed significantly right and higher up on laptops */
    right: -180px;
    bottom: 25px;
}

@keyframes floatingRoboDesktop {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-45px) rotate(4deg);
    }
}

@keyframes floatingRoboMobile {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(4deg);
    }
}

/* ── Consolidated Reveal Cycler Section ── */
.reveal-cycler-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem 1.5rem;
    /* Restored some padding */
    background: #ffffff;
    min-height: 75vh;
    /* Re-balanced height for section identity */
}

.cycler-container {
    text-align: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.reveal-cycler-text {
    font-family: 'Bangers', cursive;
    /* Large enough for impact, but responsive */
    font-size: clamp(3rem, 8vw, 11rem);
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    min-height: 1.2em;
    /* Prevent layout jump */
}

.say-hi-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 75vh;
    /* Match cycler height */
    justify-content: center;
    position: relative;
    z-index: 20;
    /* Ensure text absolutely overlaps the video container below it */
}

.say-hi-small {
    font-family: 'Intro Rust', 'Inter', sans-serif;
    font-size: clamp(1.4rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--muted-slate);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
    white-space: nowrap;
    /* Prevent awkward wrapping on laptop */
}

.say-hi-big {
    font-family: 'Bangers', cursive;
    font-size: clamp(6rem, 22vw, 18rem);
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
    padding-bottom: 2rem;
    /* Give descenders plenty of room */
}

.char {
    display: inline-block;
}

/* ── TextType typing effect ── */
.text-type {
    display: inline-block;
    white-space: pre-wrap;
}

.text-type__cursor {
    margin-left: 0.15rem;
    display: inline-block;
    opacity: 1;
    color: var(--primary);
    /* Use brand blue for the cursor */
}

.text-type__cursor--hidden {
    display: none;
}

/* ─── Privacy Modal ─── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 30, 45, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(77, 158, 255, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.modal-close-btn:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--navy);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.policy-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted-slate);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.policy-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 32px;
    line-height: 1.1;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.policy-number {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
}

.policy-heading {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
}

.policy-text {
    color: var(--muted-slate);
}

.policy-highlight {
    background: rgba(77, 158, 255, 0.08);
    padding: 20px;
    border-radius: 16px;
    margin: 24px 0;
    border-left: 4px solid var(--primary);
}

.policy-highlight p {
    margin: 0;
    font-weight: 600;
    color: var(--navy);
}

.clickable-link {
    cursor: pointer;
    transition: color 0.2s;
}

.clickable-link:hover {
    color: var(--primary);
}

/* Waitlist Success State */
.waitlist-success-msg {
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    animation: waitlistFadeIn 0.5s ease forwards;
}

@keyframes waitlistFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    /* ── PREVENT ALL HORIZONTAL OVERFLOW ── */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw;
        width: 100vw;
    }

    /* Force images, canvases, and SVGs to obey bounds and prevent inline style wide blowouts */
    img,
    svg,
    canvas,
    [style*="width: 140px"],
    [style*="width"] {
        max-width: 100vw !important;
    }

    /* Removed restrictive nav-container child width overrides */

    /* ── NAVBAR ── */
    .navbar {
        padding: 0 16px !important;
    }

    .nav-container {
        height: 56px !important;
    }

    /* Removed redundant logo overrides */

    .nav-links {
        gap: 8px !important;
    }

    .nav-links .btn-secondary {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }

    /* ── HERO ── */
    .hero {
        padding: 72px 16px 48px !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .hero-content {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .hero-title-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        display: block !important;
        text-align: center !important;
    }

    /* ── HEADLINE FIX ── */
    .hero-title {
        font-size: clamp(22px, 6.5vw, 32px) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        white-space: normal !important;
        word-wrap: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        text-align: center !important;
    }

    .hero-title span,
    .hero-title * {
        word-wrap: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        max-width: 100% !important;
    }

    .hero-title .line-2 {
        display: block !important;
        margin-top: 6px !important;
    }

    /* CRITICAL JS FIX: Allow wrapped characters to break lines */
    .char {
        display: inline-block !important;
        white-space: pre-wrap !important;
        letter-spacing: 0.5px !important;
    }

    /* Wrap flex lines dynamically */
    .text-to-split,
    .say-hi-small,
    #main-reveal-cycler {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100vw !important;
        letter-spacing: 0.5px !important;
    }

    /* ── DESCRIPTION ── */
    .hero-description {
        font-size: 15px !important;
        line-height: 1.5 !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 16px !important;
        white-space: normal !important;
    }

    /* ── EMAIL FORM FIX ── */
    .cloud-wrapper {
        width: 100% !important;
        max-width: 85% !important;
        /* Slightly narrower to fit the cloud wiggle */
        margin: 32px auto !important;
        overflow: visible !important;
        /* ALLOW THE CLOUD TO BE SEEN */
        transform: scale(1);
    }

    .maggiz-robot-mascot {
        display: block !important;
        position: absolute !important;
        bottom: -15px !important;
        right: -115px !important;
        left: auto !important;
        width: 150px !important;
        animation: floatingRoboMobile 3s ease-in-out infinite !important;
    }

    .email-capture {
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 12px !important;
        border-radius: 20px !important;
        /* Adjust rounding for vertical stack */
    }

    .email-input {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.8rem 1rem !important;
        /* Smaller padding for mobile */
        font-size: 14px !important;
        text-align: center;
    }

    .btn-capture {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.8rem 1rem !important;
        /* Smaller padding */
        justify-content: center !important;
        font-size: 14px !important;
    }

    /* ── HIDE DESKTOP DECORATIONS ── */
    .hide-mobile,
    .hide-tablet,
    .deco-star-1,
    .deco-star-2 {
        display: none !important;
    }

    /* ── SAY HI SECTION ── */
    .say-hi-section {
        padding: 48px 16px !important;
        overflow: hidden !important;
    }

    .say-hi-small {
        font-size: 5vw !important;
    }

    .say-hi-big {
        font-size: 13vw !important;
        letter-spacing: -1px !important;
    }

    /* Mascot styles moved up to consolidated block */

    /* ── CYCLER SECTION ── */
    .reveal-cycler-section {
        padding: 40px 16px !important;
        overflow: hidden !important;
    }

    .reveal-cycler-text {
        font-size: 7vw !important;
        text-align: center !important;
        letter-spacing: -0.5px !important;
        word-break: break-word !important;
        white-space: normal !important;
        /* Force wrap dynamically injected text */
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* ── FEATURE CARDS ── */
    .features {
        padding: 40px 16px !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .feature-card {
        padding: 20px !important;
    }

    .feature-title {
        font-size: 16px !important;
    }

    .feature-desc {
        font-size: 13px !important;
    }

    /* ── FOOTER ── */
    .footer,
    footer {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
        padding: 20px 16px !important;
    }

    .footer-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    /* ── MODALS ── */
    .modal-content,
    .policy-modal-content {
        width: 95vw !important;
        max-height: 85vh !important;
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

}

/* ── VERY SMALL PHONES ── */
@media (max-width: 380px) {

    .hero-title,
    .hero-title .line-2 {
        font-size: 6.5vw !important;
    }

    .say-hi-big {
        font-size: 11vw !important;
    }

    .reveal-cycler-text {
        font-size: 6.5vw !important;
    }

    .nav-links .btn-secondary {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }

}