:root {
    /* Colors */
    --primary: #008080;
    /* Teal/Greenish */
    --primary-hover: #006666;
    --accent: #FF4500;
    /* Vibrant Orange for logo and highlights */
    --bg: #F9F9F7;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --text-inverse: #FFFFFF;
    --text-inverse: #FFFFFF;
    --white: #FFFFFF;
    --cream: #FFE4C4;
    /* Using a slightly richer cream/bisque for better contrast on orange approx #FFE4C4 or #FDF5E6 */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: 16px;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Typography */
h1 {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.highlight {
    background-color: var(--accent);
    color: var(--white);
    padding: 0 16px;
    display: inline-block;
    transform: rotate(-1deg);
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 300px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-main);
    border: 1px solid #E5E5E5;
}



.btn-cream {
    background-color: var(--cream);
    color: var(--text-main);
    border: none;
    font-weight: 700;
}

.btn-cream:hover {
    background-color: #fff0db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.survey-btn {
    background-color: var(--cream);
    color: var(--text-main);
    border: none;
}

.survey-btn:hover {
    background-color: #fff0db;
    transform: translateY(-2px);
}

.btn-contact {
    background: var(--white);
    color: var(--accent);
}

.btn-contact:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.w-full {
    width: 100%;
}

/* Header */
.header {
    padding: 20px 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

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

.logo-img {
    height: 48px;
    width: auto;
}

.nav {
    display: none;
    /* Hidden on mobile */
    gap: 32px;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}



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

/* Mobile Menu & Hamburger */
.hamburger-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    z-index: 101;
}

.desktop-only {
    display: none;
}

@media (min-width: 1025px) {
    .hamburger-btn {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        padding: 0;
        width: auto;
        height: auto;
        box-shadow: none;
    }

    .desktop-only {
        display: inline-flex;
    }

    .mobile-only {
        display: none;
    }
}

@media (max-width: 1024px) {
    .nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 88px;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        max-width: none;
        background: var(--white);
        z-index: 99;
        padding: 20px 24px 24px;
        gap: 6px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        align-items: stretch;
        border-radius: 0 0 24px 24px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav .mobile-only {
        display: flex;
        position: static;
        width: 100%;
        margin-top: 8px;
        border-radius: 100px;
    }

    .nav-link {
        font-size: 16px;
        font-weight: 500;
        color: var(--text-muted);
        padding: 10px 14px;
        border-radius: 10px;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .nav-link:hover {
        background: rgba(0, 128, 128, 0.06);
        color: var(--primary);
    }
}

/* Hero Section */
.hero {
    padding: 140px 0 60px;
    text-align: center;
}

.user-estimate {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    background: var(--white);
    padding: 8px 20px 8px 12px;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

.user-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.avatar:first-child {
    margin-left: 0;
}

.estimate-text {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-title {
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Visuals Section */
.visuals {
    padding: 60px 0 120px;
}

.main-visual-container {
    position: relative;
    width: 100%;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}

/* Cards on visuals */
.card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-subscription,
.card-ai {
    position: absolute;
    width: 260px;
    padding: 28px;
    z-index: 10;
}

.card-subscription {
    top: 12%;
    left: 4%;
}

.card-ai {
    top: 12%;
    right: 4%;
}

@media (max-width: 1093px) {
    .main-visual-container {
        height: auto;
        aspect-ratio: auto;
    }

    .hero-image {
        border-radius: 32px 32px 0 0;
    }

    /* Keep cards absolute but closer */
    .card-subscription {
        top: 5%;
        left: 2%;
        width: 45%;
        padding: 12px;
        transform: scale(0.8);
        transform-origin: top left;
    }

    .card-ai {
        top: 5%;
        right: 2%;
        width: 45%;
        padding: 12px;
        transform: scale(0.8);
        transform-origin: bottom right;
    }

    .card-subscription h3,
    .card-ai h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .card-subscription p,
    .card-ai p {
        font-size: 12px;
        line-height: 1.4;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }

    .search-preview-container {
        max-width: 240px;
        left: 48%;
        padding: 0;
        transform: scale(0.6) translateX(-50%);
        transform-origin: bottom center;
    }

    .search-bar {
        padding: 6px 10px;
        margin-bottom: 6px;
        gap: 6px;
    }

    .search-icon {
        width: 14px;
        height: 14px;
    }

    .search-placeholder {
        font-size: 10px;
    }

    .search-results {
        padding: 10px;
    }

    .try-text {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .search-results h4 {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .stats {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .product-previews {
        gap: 4px;
    }

    .p-img,
    .p-more {
        width: 32px;
        height: 32px;
        border-radius: 6px;
        font-size: 11px;
    }
}

@media (max-width: 640px) {

    /* Disable all animations on mobile to keep things solid and fast */
    .main-visual-container.anim-zoom-in,
    .main-visual-container .glass-card.anim-float,
    .main-visual-container .card-subscription,
    .main-visual-container .card-ai,
    .search-preview-container.anim-fade-up {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .main-visual-container {
        height: auto;
        aspect-ratio: auto;
        background: transparent;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    /* Image must have intrinsic height so container doesn't collapse */
    .hero-image {
        height: auto;
        max-height: 70vh;
        border-radius: 32px;
    }

    .card-subscription,
    .card-ai,
    .search-preview-container {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        animation: none;
        transform: none !important;
        left: auto;
        bottom: auto;
    }

    .card-subscription,
    .card-ai {
        padding: 24px;
    }

    .card-subscription {
        margin-top: 32px;
    }

    .search-preview-container {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .search-bar {
        width: 100%;
        margin-bottom: 20px;
        padding: 16px 24px;
        gap: 16px;
        border-radius: 16px;
    }

    .search-placeholder {
        font-size: 14px;
    }

    .search-icon {
        width: 20px;
        height: 20px;
    }

    .search-results {
        width: 100%;
        padding: 24px;
        border-radius: 20px;
    }

    .try-text {
        font-size: 11px;
    }

    .search-results h4 {
        font-size: 18px;
    }

    .stats {
        font-size: 13px;
    }

    .product-previews {
        gap: 10px;
    }

    .p-img,
    .p-more {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        font-size: 13px;
    }
}

.card-subscription h3,
.card-ai h3 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-subscription p,
.card-ai p {
    font-size: 14px;
    color: var(--text-main);
    /* High contrast */
    line-height: 1.6;
}

/* Search Preview */
.search-preview-container {
    position: absolute;
    bottom: 5%;
    left: 32%;
    /* User preference: moved further left */
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 20;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    margin-bottom: 16px;
    border-radius: 100px;
}

.search-icon {
    color: var(--primary);
}

.search-placeholder {
    font-size: 16px;
    color: #333;
    /* High contrast */
    font-weight: 500;
}

.search-results {
    padding: 24px;
}

.try-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    /* Maintained but should be clear */
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.search-results h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}

.stats {
    font-size: 14px;
    color: #1A1A1A;
    /* High contrast */
    font-weight: 600;
    margin-bottom: 20px;
}

.product-previews {
    display: flex;
    gap: 10px;
    align-items: center;
}

.p-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--white);
}

.p-more {
    width: 56px;
    height: 56px;
    background: #F0F0F0;
    color: #1A1A1A;
    /* High contrast */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    padding: 40px;
    z-index: 10;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content.large {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px;
}

/* Custom Scrollbar for Modal */
.modal-content.large::-webkit-scrollbar {
    width: 6px;
}

.modal-content.large::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.modal-content.large::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-content.large::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 12px;
    z-index: 20;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
    font-family: inherit;
    font-size: 15px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500 !important;
    cursor: pointer;
}

/* Animations */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heroText {
    0% {
        opacity: 0;
        transform: translateY(50px) rotate(-2deg);
    }

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

@keyframes floating {

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

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

.anim-fade-down {
    animation: fadeDown 0.8s ease forwards;
}

.anim-fade-up {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.anim-zoom-in {
    opacity: 0;
    animation: zoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-hero-text {
    opacity: 0;
    animation: heroText 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.anim-float {
    animation: floating 4s ease-in-out infinite;
}

/* Removed blocking loading state for faster first paint */

/* Responsiveness Fixes */
/* Responsiveness Fixes */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        /* Reduced from 2.5rem */
    }

    .hero-title br {
        display: none;
        /* Let text flow naturally */
    }

    .hero-title span.highlight {
        display: inline-block;
    }

    .user-estimate {
        transform: scale(0.9);
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        /* Full width */
    }

    .hero {
        padding-top: 100px;
    }

    .visuals {
        padding-bottom: 60px;
    }

    .search-preview-container {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 40px;
    }
}

/* Footer & Contact */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background: transparent;
    /* Card has background */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-content {
    background-color: var(--accent);
    border-radius: 32px;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-badge {
    display: inline-block;
    color: var(--white);
    padding: 4px 14px;
    font-weight: 700;
    font-size: 35px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--primary);
    transform: rotate(-3deg);
    border-radius: 4px;
    z-index: -1;
    box-shadow: var(--shadow-sm);
}

.contact-section h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 40px;
    line-height: 1.2;
    color: #1A1A1A;
    /* Dark text on orange? Checking image... usually white on orange or dark. Image shows Dark Text "Have Questions?" */
    color: #1a1a1a;
    white-space: nowrap;
    /* Force single line on desktop if possible */
}

@media (max-width: 768px) {
    .contact-section h2 {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .contact-badge {
        font-size: 24px;
        padding: 3px 12px;
        margin-bottom: 14px;
    }

    .contact-content {
        padding: 48px 20px;
    }
}

@media (max-width: 420px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-content {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .contact-badge {
        font-size: 18px;
        padding: 3px 10px;
        margin-bottom: 12px;
    }

    .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
        line-height: 1.3;
    }

    .contact-section p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .contact-section .btn-cream {
        padding: 12px 24px;
        font-size: 14px;
    }
}

.contact-section p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #1a1a1a;
}

.footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

.footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.footer-socials {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-socials a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-socials a:hover {
    color: var(--accent);
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
    width: auto;
}

/* Toast System */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    min-width: 320px;
    max-width: 420px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.active {
    transform: translateX(0);
}

.toast.success .toast-icon {
    color: var(--primary);
}

.toast.error .toast-icon {
    color: var(--accent);
}

.toast-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Survey System */
.survey-step {
    display: none;
    animation: surveyIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateX(20px);
}

.survey-step.active {
    display: block;
}

@keyframes surveyIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.survey-step h2 {
    font-size: 28px;
    margin-bottom: 32px;
    line-height: 1.3;
}

.survey-options {
    display: grid;
    gap: 12px;
}

.survey-option {
    padding: 18px 24px;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    background: var(--white);
    font-weight: 600;
    font-size: 15px;
}

.survey-option:hover {
    border-color: var(--primary);
    background: rgba(0, 128, 128, 0.05);
}

.survey-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.survey-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: #E5E5E5;
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s ease;
}

.survey-hint {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 12px;
    display: block;
}

.survey-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
}

.survey-btn-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #E5E5E5;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    font-weight: 800;
}

.survey-btn-nav:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.survey-btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}