:root {
    /* Brand Colors */
    --primary-blue: #38bdf8;
    --primary-purple: #a855f7;
    --primary-indigo: #7c3aed;
    --accent-glow: rgba(56, 189, 248, 0.5);

    /* Backgrounds — Bright White Theme */
    --bg-dark: #ffffff;
    --bg-alt: #f7f7f8;
    /* Slightly tinted for alternating sections */
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b73;
    --text-muted: #9ca3af;

    /* Borders */
    --border-light: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(0, 0, 0, 0.15);

    /* Font */
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-inter);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content but potentially above bg-glow depending on preference */
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #1a1a1a, #555555);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1080px;
    width: 92%;
    /* Forces margins on all screen sizes */
    margin: 0 auto;
    padding: 0;
    /* Width handles the side spacing */
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-beam {
    position: relative;
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a1a;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.btn-beam::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 0, 0, 0.06),
            transparent);
    transition: left 0.5s ease;
}

.btn-beam:hover::before {
    left: 100%;
    transition: left 0.5s ease;
}

.btn-beam:hover {
    border-color: var(--border-focus);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Updated Logo Style */
.logo-img {
    height: 72px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero-section {
    padding: 60px 0 80px 0;
    text-align: center;
    position: relative;
    /* Use dark background as base */
    background: var(--bg-dark);
    overflow: hidden;
}

/* 3D Hero Container */
.hero-3d-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    width: 100%;
    /* Changed from 100vw to prevent overflow */
    height: 100%;
    /* Match parent height */
    z-index: 1;
    perspective: 2000px;
    pointer-events: none;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-3d-grid {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(20deg) rotateY(-10deg) rotateZ(5deg);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.hero-card {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.hero-card img {
    width: 600px;
    height: auto;
    display: block;
}

/* Positioning the cards in 3D space - TIGHTENED SPREAD */
.card-1 {
    transform: translate3d(-380px, -400px, -200px);
    /* Was -500 */
}

.card-2 {
    transform: translate3d(150px, -450px, -100px);
    /* Was 200 */
}

.card-3 {
    transform: translate3d(400px, -100px, 0px);
    /* Was 600 */
}

.card-4 {
    transform: translate3d(-220px, 200px, 100px);
    /* Was -300 */
}

.card-5 {
    transform: translate3d(280px, 350px, 50px);
    /* Was 400 */
}

/* Animation drift */
@keyframes floatGrid {
    0% {
        transform: rotateX(20deg) rotateY(-10deg) rotateZ(5deg) translateY(0);
    }

    50% {
        transform: rotateX(22deg) rotateY(-12deg) rotateZ(5deg) translateY(-20px);
    }

    100% {
        transform: rotateX(20deg) rotateY(-10deg) rotateZ(5deg) translateY(0);
    }
}

.hero-3d-grid {
    animation: floatGrid 20s infinite ease-in-out;
}

/* Overlay to darken background */
.hero-3d-grid-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
    z-index: 2;
}

/* Light Overlay for Readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.92) 0%,
            rgba(255, 255, 255, 0.75) 50%,
            rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content sits above the overlay */
.hero-section>.fade-in {
    position: relative;
    z-index: 2;
}

/* Hero Image Container - REMOVED as requested (merged into background) */
/* The styles below are strictly for reference/fallback if we ever need to revert */
.hero-image-container {
    display: none;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(58, 189, 248, 0.15) 0%, rgba(168, 85, 247, 0.08) 30%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* Stat Cards */
.stat-card {
    border: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
    position: relative;
    overflow: hidden;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #666666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.05em;
}

/* Card Numbering for Solution Section */
.card-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    line-height: 1;
    font-family: var(--font-inter);
}

.card:hover .card-number {
    color: rgba(56, 189, 248, 0.1);
    transition: color 0.3s ease;
}

/* Search Icon Hover */
nav svg:hover {
    color: white;
}

/* Alternating Section Backgrounds */
/* Assuming body bg is default dark */
section:nth-of-type(even) {
    background: #f7f7f8;
    /* Slightly lighter/different dark shade */
}

section:nth-of-type(odd) {
    background: transparent;
    /* Falls back to body background or kept distinct */
}

/* Linear Style Cards */
/* --- Linear Feature Grid System --- */

.linear-feature-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .linear-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2-column grid for Solution section specifically if needed, or reuse */
.linear-feature-grid.grid-cols-2 {
    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }
}


.linear-feature-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 320px;
    /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.linear-feature-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.linear-card-icon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.linear-card-icon-container svg {
    width: 80%;
    height: 80%;
    object-fit: contain;
    color: #1a1a1a;
    /* SVGs utilize currentColor */
}

.linear-feature-card:hover .linear-card-icon-container {
    opacity: 0.25;
}

.linear-card-text {
    position: relative;
    z-index: 2;
}

.linear-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    max-width: 85%;
}

.linear-card-action {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.2s;
}

.linear-feature-card:hover .linear-card-action {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
}

/* --- Problem Cards (opacity crossfade — zero 3D overflow possible) --- */
.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .flip-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.flip-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    /* overflow:hidden is safe here — no 3D context to break */
    overflow: hidden;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.08);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---- Front face ---- */
.flip-card-front {
    position: absolute;
    inset: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: opacity 0.36s ease, transform 0.36s ease, border-color 0.3s;
    opacity: 1;
    transform: scale(1);
    will-change: opacity, transform;
}

.flip-card-inner.is-flipped .flip-card-front {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.flip-card-icon {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-card-icon svg {
    width: 80%;
    height: 80%;
    color: #1a1a1a;
}

.flip-card-front-text {
    position: relative;
    z-index: 2;
}

.flip-card-front-text h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.flip-card-front-text p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---- Back face ---- */
.flip-card-back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 36px;
    text-align: center;
    transition: opacity 0.36s ease, transform 0.36s ease;
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
    will-change: opacity, transform;
}

.flip-card-inner.is-flipped .flip-card-back {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.flip-back-1 { background: linear-gradient(-45deg, #7c3aed, #ec4899); }
.flip-back-2 { background: linear-gradient(-45deg, #3b82f6, #8b5cf6); }
.flip-back-3 { background: linear-gradient(-45deg, #6366f1, #06b6d4); }

.flip-card-back h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.flip-card-back p {
    color: rgba(0, 0, 0, 0.85);
    font-size: 1rem;
    line-height: 1.65;
}

/* --- Linear Modal System --- */

.linear-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* --- Vertical Feature Slider --- */
.vertical-slider-section {
    position: relative;
    padding: 60px 0;
}

.vertical-slider-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .vertical-slider-container {
        grid-template-columns: 1fr 1.2fr;
        /* Text on left, Visuals on right (wider) */
        gap: 60px;
        align-items: stretch;
        /* Match height */
        min-height: 500px;
    }
}

/* --- Left Column: Text Navigation --- */
.v-slide-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    position: relative;
}

/* Vertical line indicator container removed for now, relying on cards */

.v-slide-text-item {
    padding: 24px 32px;
    border-radius: 12px;
    border-left: 3px solid transparent;
    /* The active indicator */
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    position: relative;
    background: transparent;
}

.v-slide-text-item:hover {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.02);
}

.v-slide-text-item.active {
    opacity: 1;
    border-left-color: var(--primary-blue);
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.06) 0%, transparent 100%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.v-slide-text-item h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.v-slide-text-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* --- Right Column: Visual Deck --- */
.v-slide-visuals {
    position: relative;
    width: 100%;
    height: 400px;
    /* Mobile height */
    perspective: 1000px;
    /* overflow: hidden;  Let shadows breathe? try hidden first */
    overflow: visible;
}

@media (min-width: 900px) {
    .v-slide-visuals {
        height: auto;
        /* Fill parent */
        min-height: 500px;
        overflow: visible;
        /* Allow float */
    }
}

/* Container for images stack */
.v-slide-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v-slide-image {
    position: absolute;
    width: 100%;
    max-width: 600px;
    /* Display Setup */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Animation States */
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

.v-slide-image.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
    pointer-events: auto;
}

.v-slide-image.prev {
    transform: translateY(-60px) scale(0.95);
    opacity: 0;
    /* Fade out as it goes up */
    z-index: 5;
}

/* The card look inside the visual area */
.v-img-wrapper {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    position: relative;
}

.v-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Calendar Widget Redesign --- */
/* --- Calendar Widget (Vertical / Compact Redesign) --- */
.calendar-widget {
    background: #ffffff;
    /* Clean white background */
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 360px;
    /* Limit width for that "widget" feel */
    margin: 0 auto 24px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', sans-serif;
}

.calendar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 8px;
}

.current-month {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
}

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


/* Weekdays */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 12px;
}

.calendar-weekdays div {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    /* Muted text for headers */
    text-transform: uppercase;
}

/* Day Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    /* Space between days */
    margin-bottom: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    /* Square cells */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Circles */
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: rgba(0, 0, 0, 0.05);
}

.calendar-day.selected {
    background: var(--primary-blue);
    /* Brand Blue */
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.calendar-day.today {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.calendar-day.today.selected {
    color: #fff;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: transparent;
}

.calendar-day.other-month {
    visibility: hidden;
    /* Hide days from other months to keep it clean like reference */
}


/* Time Section (Below Calendar) */
.time-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    animation: fadeIn 0.3s ease;
}

.time-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--primary-blue);
    /* Brand Blue */
    font-size: 0.95rem;
    font-weight: 500;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns of times */
    gap: 10px;
    max-height: 200px;
    /* Scroll if too many */
    overflow-y: auto;
    padding-right: 4px;
    /* Space for scrollbar */
}

/* Time Pill */
.time-slot {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    padding: 8px 0;
    text-align: center;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: #9ca3af;
    color: #1a1a1a;
    background: #f3f4f6;
}

.time-slot.selected {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    font-weight: 600;
}

/* Custom Scrollbar for time slots */
.time-slots-container::-webkit-scrollbar {
    width: 4px;
}

.time-slots-container::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.time-slots-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* --- Animated Button (Book a Demo) --- */
.btn-glow {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    /* Blue glow */
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
    /* Purple glow on hover */
}

/* Shine Effect */
.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: none;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.calendar-day.selected.today {
    border: 1px solid transparent;
    color: #ffffff;
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
}

/* --- Right Panel: Time Selection --- */
.calendar-right {
    padding: 24px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.time-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-header::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-y: auto;
    max-height: 280px;
    padding-right: 4px;
}

/* Scrollbar for time slots */
.time-slots-container::-webkit-scrollbar {
    width: 4px;
}

.time-slots-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
}

.time-slot {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: var(--primary-blue);
    color: white;
    background: rgba(56, 189, 248, 0.1);
}

.time-slot.selected {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.no-date-selected,
.no-slots-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.linear-modal {
    width: 90%;
    max-width: 700px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.linear-modal-overlay.open .linear-modal {
    transform: scale(1);
    opacity: 1;
}

/* --- Multi-Select & Logic Styles --- */
.custom-multiselect-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-multiselect-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-secondary);
    /* Placeholder color */
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    min-height: 48px;
}

.custom-multiselect-trigger.has-value {
    color: var(--text-primary);
}

.custom-multiselect-trigger:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a8a93'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s;
    border: none;
    /* Remove CSS triangle borders */
}

.custom-multiselect-wrapper.open .custom-multiselect-trigger:after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-multiselect-wrapper.open .custom-multiselect-trigger {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

.custom-multiselect-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.checkbox-option {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 4px;
}

.checkbox-option:hover {
    background: rgba(0, 0, 0, 0.03);
}

.checkbox-option input[type="checkbox"] {
    accent-color: var(--primary-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    flex: 1;
}

/* Custom Checkbox for Multilingual */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    background-color: rgba(0, 0, 0, 0.08);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid black;
    /* Checkmark color */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.linear-modal-content {
    padding: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.linear-modal-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.linear-modal-icon svg {
    width: 60%;
    height: 60%;
    color: rgba(0, 0, 0, 0.75);
}

.linear-modal h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.linear-modal p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.55);
    max-width: 500px;
    margin: 0 auto;
}

.linear-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linear-modal-close:hover {
    color: white;
}

/* Other Sections - Keep existing grid styles but ensure they look good with backgrounds */
/* Solution Section specifically needs 2x2 grid for the new cards */
/* We can reuse .grid-2 */

/* Remove old card number styles if not used, or keep for legacy/safety */

/* Custom Searchable Select */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    /* Ensure flex context for standard alignment */
    align-items: center;
    /* Center text vertically */
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-secondary);
    /* Placeholder color initially */
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    min-height: 48px;
    /* Match other inputs */
}

/* When a selection is made, we switch color via JS class or just text color logic */
.custom-select-trigger.selected {
    color: var(--text-primary);
}

.custom-select-trigger:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a8a93'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s;
}

.custom-select-wrapper.open .custom-select-trigger:after {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    /* Clean white dropdown */
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-search {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

.custom-search:focus {
    background: rgba(0, 0, 0, 0.04);
}

.options-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 0 4px 4px 4px;
}

/* Scrollbar Styling */
.options-list::-webkit-scrollbar {
    width: 6px;
}

.options-list::-webkit-scrollbar-track {
    background: transparent;
}

.options-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
}

.option {
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.option:hover,
.option.focused {
    background: rgba(0, 0, 0, 0.03);
}

.option.selected {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-blue);
}


/* Beta Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input,
.form-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-inter);
    transition: all 0.2s;
    box-sizing: border-box;
    /* Fix width issues */
}

/* Invalid State styling */
.form-input:user-invalid,
.form-select:user-invalid,
.custom-select-wrapper.invalid .custom-select-trigger {
    border-color: #ef4444;
    /* Red border */
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.custom-select-wrapper.invalid .custom-select-trigger {
    color: #ef4444;
    /* Optional: make placeholder red */
}


.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a8a93'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

#iterative-message {
    padding: 12px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--primary-blue);
    font-size: 0.85rem;
    margin-top: 16px;
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now, or hamburger later */
    }

    .hero-section {
        background-position: center;
        /* Center image on mobile */
    }

    .hero-3d-grid {
        /* Reduce tilt on mobile for better visibility */
        transform: rotateX(10deg) rotateY(0deg) rotateZ(0deg);
        flex-direction: column;
        gap: 20px;
    }

    .hero-card {
        position: relative;
        transform: none !important;
        /* Disable manual positioning, let them stack */
    }

    .hero-card img {
        width: 100%;
        max-width: 400px;
    }

}

/* --- Linear Timeline Component --- */

.linear-timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
    padding-left: 20px;
}

/* Vertical Line */
.linear-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    /* Aligns with center of marker (left padding 20 + width 40 / 2) */
    width: 1px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.1) 15%,
            rgba(0, 0, 0, 0.1) 85%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    display: flex;
    margin-bottom: 64px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover {
    opacity: 1;
}

/* Timeline Marker (Node) */
.timeline-marker {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    box-shadow: 0 0 0 4px var(--bg-dark);
    /* Creates a gap effect from the line */
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    border-color: rgba(56, 189, 248, 0.4);
    color: white;
    box-shadow: 0 0 0 4px var(--bg-dark), 0 0 15px rgba(56, 189, 248, 0.2);
    transform: scale(1.1);
}

/* Timeline Content */
.timeline-content {
    padding-left: 32px;
    padding-top: 4px;
    max-width: 600px;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Responsive adjustment */
@media (max-width: 768px) {
    .linear-timeline {
        padding-left: 0;
        max-width: 100%;
    }

    /* Adjust line position if container padding changes */
    .linear-timeline::before {
        left: 20px;
    }

    .timeline-title {
        font-size: 1.25rem;
    }
}

/* --- Contact Page Styles --- */

.contact-hero {
    text-align: center;
    padding: 120px 20px 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #ffffff;
}

.contact-hero p {
    font-size: 1.3rem;
    color: #8a8f98;
    /* Linear's secondary text color */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.contact-grid-container {
    max-width: 960px;
    /* Linear's width is usually contained */
    margin: 0 auto 100px auto;
    padding: 0 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    /* Tighter gap */
    margin-bottom: 48px;
}

.contact-card {
    background: #ffffff;
    /* Exact Linear card bg */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
    transition: background-color 0.2s ease;
}

.contact-card:hover {
    background: #1c1c1f;
    /* Slight lighten on hover */
    border-color: rgba(0, 0, 0, 0.06);
    /* Border stays same mostly */
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-card-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #ededed;
    /* Brighter title */
    margin-bottom: 4px;
}

.contact-card p {
    color: #8a8f98;
    /* Secondary text */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.04);
    /* Button tag style */
    color: #ededed;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    width: fit-content;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

.contact-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}

.contact-secondary-item {
    padding: 12px 0;
}

.contact-secondary-item h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #ededed;
    margin-bottom: 6px;
}

.contact-secondary-item p {
    font-size: 0.95rem;
    color: #8a8f98;
    line-height: 1.5;
    margin-bottom: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ededed;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.25);
}


@media (max-width: 768px) {

    .contact-grid,
    .contact-secondary-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-card {
        height: auto;
    }
}

/* --- Search Overlay Styles --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
}

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

.search-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    display: flex;
    align-items: center;
    transform: translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-icon {
    position: absolute;
    left: 0;
    color: #8a8f98;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

#search-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    font-weight: 500;
    color: #1a1a1a;
    padding: 10px 60px;
    /* Space for icon and close btn */
    outline: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

#search-input::placeholder {
    color: #9ca3af;
    transition: color 0.2s ease;
}

#search-input:focus::placeholder {
    color: #d1d5db;
}

.search-close-btn {
    position: absolute;
    right: 0;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8f98;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

.search-quick-links {
    margin-top: 60px;
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.search-overlay.active .search-quick-links {
    opacity: 1;
    transform: translateY(0);
}

.quick-link-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 16px;
    display: block;
    font-weight: 500;
}

.quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-link {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #ededed;
    padding: 8px 16px;
    border-radius: 99px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-link:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

/* --- Section Backgrounds --- */
.section-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* --- Enhanced Feature Graphics (Glass/Monitor Look) --- */
.linear-card-icon-container.enhanced-graphic {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.06), transparent 80%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.03));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.linear-card-icon-container.enhanced-graphic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.3) 3px);
    pointer-events: none;
    opacity: 0.3;
}

.linear-card-icon-container.enhanced-graphic svg {
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
    opacity: 0.9;
}

/* --- Grid Layout Handling --- */
.linear-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    /* Increased gap */
    width: 100%;
    margin-top: 40px;
}

/* Specific override for Solution section (2 columns) */
.linear-feature-grid.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
    .linear-feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {

    .linear-feature-grid,
    .linear-feature-grid.grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* --- Split Layout for Beta Signup --- */
.signup-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 100%;
}

.signup-video-container {
    width: 100%;
}

@media (max-width: 900px) {
    .signup-split-layout {
        grid-template-columns: 1fr;
    }

    .signup-video-container iframe {
        height: 250px;
    }
}

/* --- Section Spacing --- */
section {
    padding-top: 100px;
    padding-bottom: 60px;
}

#hero {
    padding-top: 0;
    /* Hero handles its own spacing */
}

/* --- Section Label Highlights --- */
/* Base label style (ensure it exists) */
.section-label {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.03);
    /* Default fallback */
    color: var(--text-secondary);
}

/* Problem Highlight (Cyan) */
#problem .section-label {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Solution Highlight (Purple) */
#solution .section-label {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Platform Highlight (Blue) */
#platform .section-label {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Beta Highlight (Indigo) */
#beta-signup .section-label {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Book a Demo Highlight (Blue) */
#book-demo .section-label {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* --- Section Background Glows (Ambient Tint) --- */
#problem {
    position: relative;
}

#problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(6, 182, 212, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

#solution {
    position: relative;
}

#solution::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(168, 85, 247, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

#platform {
    position: relative;
}

#platform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

#beta-signup {
    position: relative;
}

#beta-signup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top center, rgba(99, 102, 241, 0.08), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* --- Linear Card Spotlight Update --- */
.linear-feature-card {
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    /* Slight fill */
    overflow: hidden;
    /* Important for containment */
}

/* The Spotlight Glow */
.linear-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 0, 0, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.linear-feature-card:hover::before {
    opacity: 1;
}

/* Add a subtle border highlight on hover too */
.linear-feature-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    /* Deep shadow */
}

/* ==========================================================
   DEMO BOOKING SUCCESS MODAL
   ========================================================== */

.demo-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: successOverlayIn 0.3s ease forwards;
}

@keyframes successOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes successOverlayOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.demo-success-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 28px;
    padding: 48px 40px 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: successCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.08),
        0 0 100px rgba(56, 189, 248, 0.04);
}

@keyframes successCardIn {
    from { opacity: 0; transform: translateY(56px) scale(0.88); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Animated top gradient beam */
.demo-success-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    animation: beamSweep 3s linear infinite;
}

@keyframes beamSweep {
    0%   { background-position: 0%   0%; }
    100% { background-position: 200% 0%; }
}

/* Subtle ambient glow in card background */
.demo-success-card::after {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(56,189,248,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- Illustration ---- */
.success-illustration {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
}

.success-glow-aura {
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.18) 0%, transparent 65%);
    animation: auraPulse 2.4s ease-in-out infinite;
}

@keyframes auraPulse {
    0%, 100% { transform: scale(1);    opacity: 0.6; }
    50%       { transform: scale(1.18); opacity: 1;   }
}

.success-icon-ring {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(139,92,246,0.12) 100%);
    border: 1.5px solid rgba(56,189,248,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ringPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
    box-shadow: 0 0 30px rgba(56,189,248,0.15), inset 0 0 20px rgba(56,189,248,0.05);
}

@keyframes ringPop {
    from { transform: scale(0) rotate(-90deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* Calendar SVG */
.success-cal-svg {
    width: 58px;
    height: 58px;
    position: relative;
    z-index: 1;
}

/* Animated checkmark draw-on */
.cal-check-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.55s ease forwards 0.55s;
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* ---- Sparkles ---- */
.sparkle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}
.sp1 { width: 7px;  height: 7px;  background: #38bdf8; top: -4px;  left: 50%;  animation: sparkle 0.55s ease 0.7s  both; }
.sp2 { width: 5px;  height: 5px;  background: #8b5cf6; top: 18px;  right: -3px; animation: sparkle 0.55s ease 0.78s both; }
.sp3 { width: 6px;  height: 6px;  background: #ec4899; bottom: 8px; right: 8px;  animation: sparkle 0.55s ease 0.84s both; }
.sp4 { width: 5px;  height: 5px;  background: #38bdf8; bottom: -2px; left: 22px; animation: sparkle 0.55s ease 0.9s  both; }
.sp5 { width: 4px;  height: 4px;  background: #8b5cf6; top: 22px;  left: -3px;  animation: sparkle 0.55s ease 0.74s both; }

@keyframes sparkle {
    0%  { transform: scale(0);   opacity: 0; }
    60% { transform: scale(1.6); opacity: 1; }
    100%{ transform: scale(1);   opacity: 0.75; }
}

/* ---- Text content ---- */
.success-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    letter-spacing: -0.025em;
    animation: fadeUp 0.4s ease 0.25s both;
}

.success-subtitle {
    font-size: 0.92rem;
    color: rgba(0,0,0,0.5);
    line-height: 1.65;
    margin: 0 0 26px;
    animation: fadeUp 0.4s ease 0.35s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ---- Booking details grid ---- */
.success-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    animation: fadeUp 0.4s ease 0.45s both;
}

.success-info-item {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 13px 14px;
    text-align: left;
}

.success-info-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(0,0,0,0.25);
    margin-bottom: 4px;
}

.success-info-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ---- Email note badge ---- */
.success-email-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56,189,248,0.08);
    border: 1px solid rgba(56,189,248,0.22);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.82rem;
    color: rgba(56,189,248,0.9);
    margin-bottom: 26px;
    animation: fadeUp 0.4s ease 0.5s both;
}

/* ---- CTA button ---- */
.success-cta {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeUp 0.4s ease 0.55s both;
    box-shadow: 0 0 28px rgba(59,130,246,0.35);
    position: relative;
    overflow: hidden;
}

.success-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.14) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shimmerBtn 2.5s linear infinite;
}

@keyframes shimmerBtn {
    0%   { background-position: -100% 0; }
    100% { background-position: 300%  0; }
}

.success-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(59,130,246,0.5), 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 480px) {
    .demo-success-card { padding: 36px 24px 28px; }
    .success-title     { font-size: 1.35rem; }
    .success-info-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   AUTH PAGE (/auth)
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 24px 40px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
}
.auth-orb--1 {
  width: 480px;
  height: 480px;
  background: rgba(56, 189, 248, 0.14);
  top: -120px;
  right: -80px;
}
.auth-orb--2 {
  width: 380px;
  height: 380px;
  background: rgba(168, 85, 247, 0.12);
  bottom: -80px;
  left: -60px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(12px);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  text-decoration: none;
}

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

.auth-logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.auth-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth-subheading {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ---- Provider Buttons ---- */
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font-inter);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-btn--github {
  background: #24292e;
  border-color: #24292e;
  color: #ffffff;
}
.auth-btn--github:hover {
  background: #2f363d;
  border-color: #2f363d;
  color: #ffffff;
}

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.auth-divider-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Email Form ---- */
.auth-email-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-inter);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.auth-email-input::placeholder {
  color: var(--text-muted);
}
.auth-email-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.auth-email-submit {
  width: 100%;
  padding: 12px 20px;
  font-family: var(--font-inter);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}
.auth-email-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.auth-email-submit:active {
  transform: translateY(0);
}

/* ---- Status Messages ---- */
.auth-message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-message--success {
  display: block;
  background: rgba(52, 168, 83, 0.1);
  border: 1px solid rgba(52, 168, 83, 0.25);
  color: #16a34a;
}
.auth-message--error {
  display: block;
  background: rgba(234, 67, 53, 0.1);
  border: 1px solid rgba(234, 67, 53, 0.25);
  color: #dc2626;
}

/* Loading states */
.auth-btn--loading,
.auth-email-submit--loading {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Footer ---- */
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-footer a:hover {
  color: var(--primary-blue);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .auth-card {
    padding: 32px 20px;
    border-radius: 12px;
  }
  .auth-heading {
    font-size: 1.25rem;
  }
}
