/* ═══════════════════════════════════════════
   MESS NO MORE — Landing Page
   Redesigned to match Figma spec
   Fonts: Outfit (base), Agu Display, Galindo, Flamenco
   Palette: White / Light gray / Blue accent
   ═══════════════════════════════════════════ */

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

:root {
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --accent-blue: #4a7dff;
    --accent-blue-hover: #3366ee;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-dot: rgba(0, 0, 0, 0.055);
    --border-light: rgba(0, 0, 0, 0.06);
    --card-bg: #fbfbfc;
    --card-border: rgba(0, 0, 0, 0.07);
}

html {
    scrollbar-gutter: stable;
}

html,
body {
    min-height: 100vh;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    width: 100%;
    padding: 18px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 48px;
}

/* ─── Nav Logo ─── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    transition: none;
    cursor: crosshair;
}

.nav-logo:hover {
    transform: none;
}

/* ─── Nav Links ─── */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 100px;
    color: var(--text-muted);
    transition: color 0.3s ease,
        transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
}

.nav-link:hover {
    color: var(--text-dark);
    transform: translateY(-3px) scale(1.06);
}

.nav-link.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* ─── Nav Right (Dive in button) ─── */
.nav-right {
    display: flex;
    justify-content: flex-end;
    margin-right: -10px;
}

@property --border-progress {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

.btn-dive {
    position: relative;
    display: inline-block;
    padding: 10px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--text-light);
    border-radius: 10px;
    cursor: pointer;
    transition: color 0.4s ease, border-color 0.3s ease, filter 0.4s ease;
    z-index: 1;
}

.btn-dive::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    padding: 2px;
    background: conic-gradient(from 0deg,
            var(--accent-blue) 0%,
            var(--accent-blue) var(--border-progress),
            transparent var(--border-progress),
            transparent calc(100% - var(--border-progress)),
            var(--accent-blue) calc(100% - var(--border-progress)),
            var(--accent-blue) 100%);
    --border-progress: 0%;
    transition: --border-progress 0.6s ease;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-dive:hover {
    color: var(--accent-blue);
    border-color: transparent;
    filter: drop-shadow(0 0 8px rgba(74, 125, 255, 0.3));
}

.btn-dive:hover::before {
    --border-progress: 50%;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 24px 24px;
    position: relative;
    min-height: 100vh;
}

/* ─── Hero Card ─── */
.hero-card {
    position: relative;
    width: 100%;
    max-width: 1700px;
    flex: 1;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Background image texture */
    background-image: url('Images/Background\ image.png');
    background-size: 100% 50%;
    background-position: top center;
    background-repeat: repeat-y;
    background-color: var(--card-bg);
}

.hero-container {
    max-width: 700px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── Hero Title ─── */
.hero-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-bottom: 28px;
    line-height: 1.15;
}

/* *Paste*^, — Agu Display 64px */
.title-paste {
    font-family: 'Agu Display', serif;
    font-size: 80px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -1px;
}

/* Clean, — Galindo 55px, comma at 64px */
.title-clean {
    font-family: 'Galindo', cursive;
    font-size: 65px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.title-clean-comma {
    font-family: 'Galindo', cursive;
    font-size: 80px;
}

/* copy. — Flamenco 64px */
.title-copy {
    font-family: 'Flamenco', sans-serif;
    font-size: 80px;
    font-weight: 400;
}

.title-copy-period {
    font-family: 'Flamenco', sans-serif;
    font-size: 80px;
}

/* ─── Hero Description ─── */
.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 460px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ─── Hero Actions ─── */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* ─── Button ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: letter-spacing 0.4s ease;
}

.btn-arrow {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
}

/* Liquid fill hover effect */
.btn-primary {
    color: var(--accent-blue);
    background: none;
    border: 2px solid var(--accent-blue);
    background: linear-gradient(var(--accent-blue) 0 0) no-repeat calc(200% - var(--p, 0%)) 100% / 200% var(--p, 0.2em);
    transition: 0.3s var(--t, 0s),
    background-position 0.3s calc(0.3s - var(--t, 0s));
    box-shadow: 0 4px 20px rgba(74, 125, 255, 0.3),
        0 1px 4px rgba(74, 125, 255, 0.1);
}

.btn-primary:hover {
    --p: 100%;
    --t: 0.25s;
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 36px rgba(74, 125, 255, 0.45),
        0 3px 10px rgba(74, 125, 255, 0.2),
        0 0 0 4px rgba(74, 125, 255, 0.1);
}

.btn-primary:hover .btn-arrow {
    transform: translate(3px, -3px) rotate(0deg);
}

.btn-primary:hover .btn-text {
    letter-spacing: 0.8px;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 16px rgba(74, 125, 255, 0.3);
}

/* ─── Trust Badge ─── */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.hero-trust svg {
    color: var(--text-muted);
}


/* ═══════════════════════════════════════════
   FLOATING IMAGES (Hero decorative elements)
   ═══════════════════════════════════════════ */
.floating-images {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.float-img {
    position: absolute;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.float-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1));
}

/* ─── Top-Left Image (Sticky note) ─── */
.float-img--top-left {
    width: clamp(190px, 22vw, 270px);
    top: 30px;
    left: 10px;
    transform: rotate(-20deg);
    transform-origin: top center;
}

.float-img--top-left:hover {
    transform: rotate(-12deg) scale(1.05);
}

/* ─── Bottom-Right Image (LLM card) → moved to top-left ─── */
.float-img--bottom-right {
    width: clamp(200px, 23vw, 300px);
    top: 60px;
    right: 20px;
    transform: rotate(30deg);
}

.float-img--bottom-right:hover {
    transform: rotate(26deg) scale(1.05);
}


/* ═══════════════════════════════════════════
   ENTRANCE ANIMATIONS
   ═══════════════════════════════════════════ */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Override for floating images that have rotation */
.float-img.animate-in {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

.float-img--top-left.animate-in.visible {
    opacity: 1;
    transform: rotate(-20deg) scale(1);
}

.float-img--bottom-right.animate-in.visible {
    opacity: 1;
    transform: rotate(30deg) scale(1);
}


/* ═══════════════════════════════════════════
   TYPEWRITER EFFECT
   ═══════════════════════════════════════════ */
.typewriter-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    animation: typewriter-reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes typewriter-reveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════
   INFINITE MARQUEE
   ═══════════════════════════════════════════ */
.marquee {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    overflow: hidden;
    padding: 16px 0;
    z-index: 3;
    /* Fade edges — wide right fade for gradual word reveal */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 65%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 65%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-content {
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    word-spacing: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    padding-right: 60px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }
}


/* ═══════════════════════════════════════════
   FLOATING GEOMETRIC SHAPES
   ═══════════════════════════════════════════ */
.geo-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    border: 1.5px solid rgba(74, 125, 255, 0.75);
    background: rgba(74, 125, 255, 0.06);
    animation: geo-drift linear infinite;
}

.geo-circle {
    border-radius: 50%;
}

.geo-square {
    border-radius: 3px;
}

@keyframes geo-drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(30px, -40px) rotate(90deg) scale(1.3);
    }

    50% {
        transform: translate(-20px, -80px) rotate(180deg) scale(0.8);
    }

    75% {
        transform: translate(40px, -30px) rotate(270deg) scale(1.15);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* ═══════════════════════════════════════════
   HAMBURGER MENU (hidden by default)
   ═══════════════════════════════════════════ */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    align-items: center;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Animate hamburger to X when open */
.nav-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — Hero title uses clamp() 
   (replaces per-breakpoint overrides)
   ═══════════════════════════════════════════ */
.title-paste {
    font-size: clamp(28px, 5.5vw, 80px);
}

.title-clean {
    font-size: clamp(24px, 4.5vw, 65px);
}

.title-clean-comma {
    font-size: clamp(28px, 5.5vw, 80px);
}

.title-copy {
    font-size: clamp(28px, 5.5vw, 80px);
}

.title-copy-period {
    font-size: clamp(28px, 5.5vw, 80px);
}


/* ═══════════════════════════════════════════
   RESPONSIVE — All images safe
   ═══════════════════════════════════════════ */
.float-img img,
.step-img,
.why-img img {
    max-width: 100%;
}

/* Prevent horizontal scroll globally */
html,
body,
.hero,
.hero-card {
    overflow-x: hidden;
}


/* ═══════════════════════════════════════════
   1280px — 14"/13" laptops
   ═══════════════════════════════════════════ */
@media (max-width: 1280px) {
    .nav-inner {
        padding: 0 36px;
    }

    .float-img--top-left {
        width: clamp(160px, 18vw, 240px);
        top: 20px;
        left: 8px;
    }

    .float-img--bottom-right {
        width: clamp(170px, 19vw, 260px);
        top: 40px;
        right: 15px;
    }
}


/* ═══════════════════════════════════════════
   1024px — Tablet landscape
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero {
        padding: 74px 16px 16px 16px;
    }

    .float-img--top-left {
        width: 150px;
        top: 15px;
        left: 10px;
    }

    .float-img--bottom-right {
        width: 170px;
        top: 30px;
        right: 10px;
    }

    .hero-title {
        gap: 8px;
    }

    .marquee {
        bottom: 30px;
    }
}


/* ═══════════════════════════════════════════
   768px — Tablet portrait / Hamburger nav
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: none;
        padding: 12px 0;
    }

    /* ─── Navbar collapses to hamburger ─── */
    .nav-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .nav-hamburger {
        display: flex;
        order: -1;
    }

    .nav-logo {
        order: 0;
        flex: 1;
        justify-content: center;
    }

    .nav-right {
        order: 1;
        margin-right: 0;
    }

    .nav-links {
        /* Slide-down mobile drawer */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 100px 20px 40px;
        z-index: 105;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 28px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* "Dive in" button always visible */
    .btn-dive {
        padding: 8px 20px;
        font-size: 0.82rem;
    }

    /* ─── Hero adjustments ─── */
    .hero {
        padding: 80px 16px 16px 16px;
    }

    .hero-card {
        border-radius: 20px;
    }

    .hero-container {
        padding: 60px 16px;
    }

    .hero-title {
        gap: 6px;
        flex-wrap: wrap;
        white-space: normal;
        justify-content: center;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* ─── Floating images: scale down, pull inward ─── */
    .float-img--top-left {
        width: 110px;
        top: 10px;
        left: 5px;
        transform: rotate(-16deg);
    }

    .float-img--top-left.animate-in.visible {
        transform: rotate(-16deg) scale(1);
    }

    .float-img--bottom-right {
        width: 120px;
        top: 15px;
        right: 5px;
        transform: rotate(24deg);
    }

    .float-img--bottom-right.animate-in.visible {
        transform: rotate(24deg) scale(1);
    }

    /* Keep floating images and shapes visible! */
    .floating-images,
    .geo-shapes {
        display: block;
    }

    /* ─── Marquee ─── */
    .marquee {
        bottom: 20px;
        width: 95%;
    }
}


/* ═══════════════════════════════════════════
   480px — Phone
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    /* ─── Global phone padding ─── */
    .hero {
        padding: 78px 10px 10px 10px;
    }

    .hero-card {
        border-radius: 16px;
    }

    .hero-container {
        padding: 65px 10px 50px 10px;
    }

    /* ─── Nav: compact navbar for phone ─── */
    .navbar {
        padding: 12px 0;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: none;
    }

    .nav-logo-text {
        font-size: 1.3rem;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }

    .nav-right {
        margin-left: auto;
        padding-left: 16px;
    }

    /* ─── Hero title: large and dominant on phone ─── */
    .hero-title {
        gap: 4px;
        row-gap: 0;
        line-height: 0.95;
        margin-bottom: 16px;
        margin-top: 0;
    }

    .title-paste {
        font-size: 42px;
        white-space: nowrap;
    }

    .title-clean {
        font-size: 36px;
        white-space: nowrap;
    }

    .title-clean-comma {
        font-size: 40px;
    }

    /* Force "copy." onto its own line */
    .title-copy {
        font-size: 48px;
        flex-basis: 100%;
        text-align: center;
        margin-top: -6px;
    }

    .title-copy-period {
        font-size: 52px;
    }

    .hero-description {
        font-size: 0.82rem;
        margin-bottom: 16px;
    }

    /* ─── Touch targets ─── */
    .btn {
        min-height: 38px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero-trust {
        margin-top: 10px;
        font-size: 0.75rem;
    }

    .hero-trust svg {
        width: 12px;
        height: 12px;
    }

    .btn-dive {
        min-height: 40px;
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .nav-link {
        min-height: 44px;
    }

    /* ─── Floating images: yellow note smaller + tucked in corner, orange note hidden ─── */
    .float-img--top-left {
        width: 135px;
        top: 10px;
        left: 8px;
        transform: rotate(-16deg);
    }

    .float-img--top-left.animate-in.visible {
        transform: rotate(-16deg) scale(1);
    }

    .float-img--bottom-right {
        display: none;
    }

    /* ─── Geometric shapes: hide edge shapes, keep a few ─── */
    .geo-shape:nth-child(n+8) {
        display: none;
    }

    /* ─── Marquee: shift up ─── */
    .marquee {
        bottom: 50px;
    }

    .marquee-content {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        word-spacing: 6px;
        padding-right: 30px;
    }
}