/* Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --color-bg: #f2f2ef;
    --color-text: #1a1a1a;
    --color-text-secondary: #555;
    --color-accent: #2563eb;
    /* Royal Blue from Lunera inspiration */
    --color-accent-hover: #1d4ed8;
    --color-glass-bg: rgba(255, 255, 255, 0.6);
    --color-glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

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

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-serif);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-card {
    background: var(--color-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.02);
}

/* Header */
header {
    padding: 2rem 0;
}

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

.logo {
    font-size: 2.1rem;
    /* A: 20% bigger */
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    /* overflow: hidden; Removed to let blobs breathe a bit if needed, but keeping generally contained */
}

/* Abstract background blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.hero::before {
    top: -50px;
    /* B: Start closer to top-left under logo */
    left: -50px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #dbeafe, transparent);
    /* Light blue gradient */
}

.hero::after {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #fce7f3, transparent);
}

.hero-headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

/* Better Email Form Design */
.email-signup {
    display: flex;
    justify-content: space-between;
    max-width: 580px;
    /* Increased further to ensure text fits */
    padding: 0.35rem;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    margin: 0 auto 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    align-items: center;
    position: relative;
}

.email-input {
    flex: 1;
    padding: 0.75rem 0.5rem 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    background: transparent;
    min-width: 0;
}

.email-input:focus {
    /* No outline needed inside the container */
}

/* Update Button in Email Form context */
.email-signup .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
    border-radius: 100px;
    margin-left: 0.5rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.hero-visual {
    margin-top: 4rem;
    position: relative;
    padding: 2rem;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 250px;
    }

    /* Workflow Mobile */
    .workflow-grid {
        flex-direction: column;
        /* Force vertical stacking */
    }

    .arrow-divider {
        transform: rotate(90deg);
        /* Point down */
        margin: 0.5rem 0;
        /* Adjust spacing */
    }
}

@media (max-width: 600px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    /* Stack Email Form on small screens */
    .email-signup {
        flex-direction: column;
        border-radius: 24px;
        padding: 1rem;
        gap: 1rem;
        max-width: 100%;
        border: none;
        /* optional: remove border for cleaner look, or keep */
        background: transparent;
        box-shadow: none;
    }

    .email-signup .email-input {
        width: 100%;
        background: white;
        padding: 1rem;
        border-radius: 50px;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .email-signup .btn {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
}

.hero-glass-panel {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 1rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}

.hero-glass-panel:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.dashboard-mockup {
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom right, #ffffff, #f9fafb);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
    position: relative;
}

.mockup-sidebar {
    background: #f3f4f6;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-item {
    height: 32px;
    /* Increased height to look more like menu items */
    background: #e5e7eb;
    border-radius: 8px;
    width: 100%;
}

.sidebar-item:nth-child(2) {
    width: 80%;
}

.sidebar-item:nth-child(3) {
    width: 90%;
}


.mockup-content {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-content: start;
}

.content-card {
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #9ca3af;
    border: 1px solid #f3f4f6;
    position: relative;
    overflow: hidden;
}

.color-swatch {
    width: 100%;
    height: 100%;
    display: block;
}

/* Pain vs Solution Section */
.pain-solution-section {
    padding: 2rem 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.comparison-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    /* Increased gap */
    align-items: center;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.comp-text {
    flex: 1;
}

.comp-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
}

.comp-title {
    font-size: 2rem;
    /* Larger */
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: var(--font-serif);
}

.comp-desc {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.comp-visual {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    /* Very light subtle bg */
    border-radius: 50%;
}

.status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    /* Border to pop */
}

.status-badge.error {
    background-color: #ef4444;
}

.status-badge.success {
    background-color: var(--color-accent);
}

.comp-divider-vertical {
    width: 1px;
    height: 180px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Workflow Section */
.workflow-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.workflow-grid {
    display: flex;
    /* Changed from grid to flex for better control over centering */
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    /* Ensures vertical alignment */
    flex-wrap: wrap;
}

.workflow-step {
    padding: 2.5rem;
    text-align: center;
    min-height: 320px;
    width: 300px;
    /* Fixed width for consistency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.poll-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}



/* === Restored Landing Page Global Styles === */

.poll-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0.5rem;
}

.poll-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    opacity: 0.5;
}

.poll-option.selected .poll-check {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    opacity: 1;
    transform: scale(1.1);
}

.poll-option.selected .poll-check::after {
    content: '✓';
    font-weight: bold;
}

.arrow-divider {
    color: #cbd5e1;
    font-size: 2rem;
    flex-shrink: 0;
}

/* Features Bento Grid */
.features-section {
    padding: 6rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-item {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item.large {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.bento-item:hover .bento-bg {
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 1;
}

.bento-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.bento-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-cta {
    margin-bottom: 4rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 32px;
    color: white;
    max-width: 900px;
    margin: 0 auto 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-cta p {
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 250px;
    }

    .workflow-grid {
        flex-direction: column;
    }

    .arrow-divider {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

/* Thank You Page Styles */
.thank-you-hero {
    padding: 3rem 0 1rem;
    /* Much reduced padding */
    text-align: center;
    position: relative;
    /* For blobs */
}

.thank-you-hero h1 {
    font-size: 2rem;
    /* Much smaller headline (was 3.5rem+) */
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Animation Wrapper */
.anim-wrapper {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.anim-wrapper.fading-out {
    opacity: 0;
}

/* Background blobs for Thank You Hero (matching .hero) */
.thank-you-hero::before,
.thank-you-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.thank-you-hero::before {
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    /* Centered blob */
    width: 400px;
    /* Smaller blobs */
    height: 150px;
    background: radial-gradient(circle, #dbeafe, transparent);
}

.thank-you-hero::after {
    bottom: -10%;
    right: 10%;
    width: 250px;
    /* Smaller blobs */
    height: 150px;
    background: radial-gradient(circle, #fce7f3, transparent);
    opacity: 0.4;
}

.poll-section {
    padding: 2rem 0 4rem;
    /* Reduced top padding to move text up */
    text-align: center;
}

.poll-section h2 {
    font-size: 3rem;
    /* Much bigger header */
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.poll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto 3rem;
    /* Adjusted margins */
}

.poll-option {
    cursor: pointer;
    text-align: left;
    padding: 2rem;
    border: 2px solid transparent;
    /* Prepare for border change */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.poll-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.poll-option.selected {
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.poll-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.poll-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.poll-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.poll-submit-container {
    margin-top: 3rem;
}

.btn-poll-submit {
    opacity: 0.5;
    pointer-events: none;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-poll-submit.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    background-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.contact-section {
    padding: 4rem 0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 2.5rem;
    /* Increased size */
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-sans);
    resize: vertical;
    min-height: 120px;
    outline: none;
    transition: border-color 0.2s;
}

.contact-textarea:focus {
    border-color: var(--color-accent);
}

@media (max-width: 768px) {
    .poll-grid {
        grid-template-columns: 1fr;
    }

    .poll-section h2 {
        font-size: 2rem;
    }
}

/* === FORCE DESKTOP RESTORATION === */
/* This block ensures desktop styles apply regardless of previous syntax errors */
@media (min-width: 601px) {
    .hero-headline {
        font-size: 4rem !important;
        line-height: 1.1;
    }

    .email-signup {
        display: flex !important;
        flex-direction: row !important;
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding: 0.35rem !important;
        border-radius: 100px !important;
        max-width: 580px !important;
        margin: 0 auto 2rem !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    }

    .email-signup .email-input {
        width: auto !important;
        flex: 1 !important;
        border: none !important;
        background: transparent !important;
        text-align: left !important;
        box-shadow: none !important;
    }

    .email-signup .btn {
        width: auto !important;
        margin-left: 0.5rem !important;
        padding: 0.75rem 2rem !important;
    }

    /* Restore Footer CTA Desktop Layout */
    .footer-cta {
        padding: 6rem 4rem !important;
    }
}