/* =============================================
   Herefor.me — Abode.space Inspired Design
   Playful Bento · Bold Type · Pastel Cards
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Adapted quiet luxury palette into playful pastels */
    --bg: #FDFBF7;
    --card-beige: #FDF4E3;
    --card-blue: #D4E0F7;
    --card-pink: #F5E4EF;
    --card-mint: #E2F4EC;
    --card-cream: #F7F2EA;

    /* Accent colors */
    --accent: #1B4077;
    --accent-light: #FDFBF7;
    --accent-glow: rgba(184, 146, 74, 0.12);

    /* Navy for dark elements */
    --dark: #1e4bc2;
    --dark-soft: #3a6bc2;

    /* Text */
    --text: #1b4077;
    --text-secondary: #5A6577;
    --text-muted: #8B95A5;

    /* System */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --smooth: cubic-bezier(0.25, 1, 0.5, 1);
    --radius: 32px;
    --radius-lg: 40px;
    --radius-sm: 20px;
    --radius-pill: 100px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 56px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.highlight {
    color: var(--accent);
}

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fdfbf7d9;
    backdrop-filter: blur(20px);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
}

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

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--dark);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s var(--ease);
}

.nav-cta:hover {
    background: var(--dark-soft);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
    transition: transform 0.8s var(--lux-ease), background 0.8s var(--lux-ease), box-shadow 0.8s var(--lux-ease);
}

.btn-dark:hover {
    background: var(--dark-soft);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 40px rgba(15, 27, 45, 0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(15, 27, 45, 0.15);
}

.btn-ghost:hover {
    border-color: var(--text);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* === HERO === */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 224, 247, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 228, 239, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: var(--card-beige);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    position: relative;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    position: relative;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: relative;
}

/* === BENTO GRID === */
.bento {
    padding: 80px 0 100px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
}

.bento-card {
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: transform 0.3s var(--ease);
    overflow: hidden;
}


.bento-lg {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.bento-md {
    grid-column: span 1;
}

.bento-sm {
    grid-column: span 1;
}

.card-beige {
    background: var(--card-beige);
}

.card-blue {
    background: var(--card-blue);
}

.card-pink {
    background: var(--card-pink);
}

.card-mint {
    background: var(--card-mint);
}

.card-cream {
    background: var(--card-cream);
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.bento-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.bento-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Phone Mockup */
.phone-mockup {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.mockup-header {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #FF605C;
}

.dot.yellow {
    background: #FFBD44;
}

.dot.green {
    background: #00CA4E;
}

.mockup-alert {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #FFF0F0;
    border-radius: 14px;
    padding: 16px;
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-text {
    display: flex;
    flex-direction: column;
}

.alert-text strong {
    font-size: 0.85rem;
    font-weight: 700;
}

.alert-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.alert-time {
    font-size: 0.7rem !important;
    color: var(--text-muted) !important;
    margin-top: 2px;
}

/* Location dots */
.location-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
}

.loc-dot {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.loc-dot.active {
    background: #fff;
}

.loc-line {
    flex: 1;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 1px;
}

/* Mini chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    margin-top: 20px;
}

.chart-bar {
    flex: 1;
    background: rgba(15, 27, 45, 0.1);
    border-radius: 6px;
    transition: background 0.3s;
}

.chart-bar.active {
    background: var(--accent);
}

/* === HOW IT WORKS === */
.how {
    padding: 100px 0;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--card-cream);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s var(--ease);
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    line-height: 1;
}

.step-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === VISION === */
.vision-section {
    padding: 60px 0 100px;
}

.vision-big-card {
    background: var(--dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 72px 56px;
    text-align: center;
}

.vision-big-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    line-height: 1.15;
}

.vision-big-card .highlight {
    color: var(--accent-light);
}

.vision-big-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.vision-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.vtag {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* === TRUST === */
.trust {
    padding: 100px 0;
}

.trust-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trust-card {
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: transform 0.3s var(--ease);
}

.trust-big-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.trust-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.trust-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === BETA SIGNUP === */
.beta {
    padding: 80px 0 100px;
}

.beta-card {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    color: #fff;
}

.beta-left h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.beta-left .highlight {
    color: var(--accent-light);
}

.beta-left p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    line-height: 1.6;
}

.beta-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perk {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.beta-form {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    color: var(--text);
}

.beta-form h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.02em;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 14px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.2s var(--ease);
    outline: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    background: #fff;
}

input.error,
textarea.error,
select.error {
    border-color: #EF4444;
}

textarea {
    resize: vertical;
    min-height: 72px;
}

.form-error {
    font-size: 0.72rem;
    color: #EF4444;
    margin-top: 3px;
    min-height: 14px;
    display: block;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* Radio group */
.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.radio-pill {
    display: flex;
    cursor: pointer;
    flex: 1;
    min-width: 25%;
}

.radio-pill input {
    display: none;
}

.radio-pill span {
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-secondary);
    border: 2px solid transparent;
    transition: all 0.2s var(--ease);
}

.radio-pill:hover span {
    background: #fff;
}

.radio-pill input:checked+span {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent);
}

#willingToPay.error .radio-pill span {
    border-color: #EF4444;
    background: #FFF0F0;
}

/* === AUDIENCE === */
.audience {
    padding: 80px 0 100px;
}

.audience-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.audience-pill {
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    background: var(--card-cream);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

.audience-pill:hover {
    transform: translateY(-2px);
    background: var(--card-beige);
}

/* === MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 45, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    padding: 48px 40px;
    max-width: 420px;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s var(--ease);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}

.modal p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-note {
    font-size: 0.82rem !important;
    color: var(--accent) !important;
    font-weight: 600;
    margin-bottom: 24px !important;
}

.modal .btn {
    padding: 14px 40px;
}

/* === FOOTER === */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid rgba(15, 27, 45, 0.06);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 27, 45, 0.06);
}

.footer-bottom span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* === SCROLL REVEAL === */


/* === RESPONSIVE === */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(253, 251, 247, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

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

    .bento-lg {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .steps-row {
        grid-template-columns: 1fr;
    }

    .trust-bento {
        grid-template-columns: 1fr;
    }

    .beta-card {
        grid-template-columns: 1fr;
        padding: 40px 28px;
        gap: 40px;
    }

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

    .footer-main {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .bento-card {
        padding: 28px;
    }

    .beta-card {
        padding: 32px 20px;
    }

    .beta-form {
        padding: 28px 20px;
    }

    .vision-big-card {
        padding: 48px 28px;
    }

    .audience-pill {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .modal {
        margin: 16px;
        padding: 32px 24px;
    }
}


.bento-card,
.trust-card,
.step-card,
.vision-big-card,
.beta-card {
    transition: transform 0.8s var(--lux-ease), box-shadow 0.8s var(--lux-ease) !important;
}

.bento-card:hover,
.trust-card:hover,
.step-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 40px 80px rgba(15, 27, 45, 0.06) !important;
}

/* Nav dynamic blur */
.nav {
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--smooth);
}

body.scrolled .nav {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 27, 45, 0.05);
    padding: 12px 0;
}

/* Icon sizes */
.logo-icon i,
.alert-icon i,
.trust-big-icon i {
    width: 1.2em;
    height: 1.2em;
    color: var(--accent);
}

.bento-icon i {
    width: 1.8em;
    height: 1.8em;
    color: var(--dark);
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.bento-card:nth-child(even) .bento-icon i {
    animation-delay: 1.5s;
}

.bento-card:nth-child(3n) .bento-icon i {
    animation-delay: 3s;
}

.modal-icon i {
    width: 3rem;
    height: 3rem;
    color: #00CA4E;
}

.loc-dot i {
    width: 1.2em;
    height: 1.2em;
}

.vtag i,
.audience-pill i,
.perk i {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === FRAMER STYLE REVEALS === */
.reveal,
.reveal-blur,
.reveal-scale,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 1.4s var(--lux-ease), transform 1.4s var(--lux-ease), filter 1.4s var(--lux-ease);
    will-change: opacity, transform, filter;
}

.reveal {
    transform: translateY(60px);
}

.reveal-blur {
    transform: translateY(60px);
    filter: blur(16px);
}

.reveal-scale {
    transform: scale(0.96) translateY(40px);
    filter: blur(8px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.visible,
.reveal-blur.visible,
.reveal-scale.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0) scale(1);
    filter: blur(0);
}