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

    /* Backgrounds */
    --bg-dark: #080808;
    --bg-alt: #0a0a0c;
    /* Slightly lighter for alternating sections */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-primary: #ededed;
    --text-secondary: #8a8a93;
    --text-muted: #52525b;

    /* Borders */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(255, 255, 255, 0.2);

    /* 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;
}

/* 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, #ffffff, #a0a0a0);
    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: white;
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.btn-beam {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    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(255, 255, 255, 0.2),
            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: 24px 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Updated Logo Style */
.logo-img {
    height: 48px;
    /* 1.5x larger */
    width: auto;
    /* Removed filters as we now have a proper dark mode logo */
}

.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: 160px 0 120px 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.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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;
}

/* Dark Overlay for Readability */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(8, 8, 8, 0.9) 0%,
            rgba(8, 8, 8, 0.7) 50%,
            rgba(8, 8, 8, 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.4) 0%, rgba(168, 85, 247, 0.2) 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(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
    overflow: hidden;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 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(255, 255, 255, 0.05);
    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: #0B0B0C;
    /* 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: #121212;
    border: 1px solid #222;
    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(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.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: white;
    /* 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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.1);
    color: white;
}

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

.linear-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    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;
}

.linear-modal {
    width: 90%;
    max-width: 700px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);

}

/* End of .linear-modal nesting */

/* --- 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.3);
    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(255, 255, 255, 0.05);
}

.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(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.2s;
}

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

.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);
}

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;
}

.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.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

.linear-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    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.3);
    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: #0f0f11;
    /* Slightly lighter than pure black */
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    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(255, 255, 255, 0.05);
    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(255, 255, 255, 0.08);
}

.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(255, 255, 255, 0.1);
    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(255, 255, 255, 0.05);
}

.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.3);
    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(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 15%,
            rgba(255, 255, 255, 0.15) 85%,
            rgba(255, 255, 255, 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: #0f0f11;
    border: 1px solid rgba(255, 255, 255, 0.1);
    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: #161618;
    /* Exact Linear card bg */
    border: 1px solid rgba(255, 255, 255, 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(255, 255, 255, 0.08);
    /* 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(255, 255, 255, 0.06);
    /* 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(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

.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: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}


@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: #fff;
    padding: 10px 60px;
    /* Space for icon and close btn */
    outline: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

#search-input::placeholder {
    color: #4a4d55;
    transition: color 0.2s ease;
}

#search-input:focus::placeholder {
    color: #2a2c30;
}

.search-close-btn {
    position: absolute;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.2);
    color: #fff;
}

.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(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    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(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

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

.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.08), transparent 80%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    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(255, 255, 255, 0.05);
    /* 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);
}

/* --- 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(255, 255, 255, 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(255, 255, 255, 0.06), 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(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
}