:root {
    /* Colors - Inspired by Zoox reference */
    --color-bg-light: #f4f6f5;
    --color-bg-dark: #121413;
    --color-white: #ffffff;
    --color-text-main: #121413;
    --color-text-dim: #5a5f5d;
    --color-text-white: #ffffff;
    --color-primary: #121413;
    /* Black/Dark Navy */
    --color-accent: #00d1b2;
    /* Mint/Teal */
    --color-accent-dim: #e6f9f7;
    --color-border: #e0e4e2;

    /* Layout */
    --container-width: 1100px;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --spacing-section: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    /* Global word unit line breaks */
    overflow-wrap: break-word;
    /* Safety for long non-spaced strings */
}

h1,
h2,
h3,
p,
li,
.eyebrow {
    word-break: keep-all;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
.eyebrow {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Utilities */
.section {
    padding: var(--spacing-section) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.text-white {
    color: var(--color-text-white);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pb-10 {
    padding-bottom: 7rem;
}

.max-w-800 {
    max-width: 800px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.items-center {
    align-items: center;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

.gap-10 {
    gap: 6rem;
}

.inline-block {
    display: inline-block;
}

.justify-center {
    justify-content: center;
}

/* Grid System */
.grid {
    display: grid;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-2-equal {
    grid-template-columns: 0.9fr 1.1fr;
}

.grid-stack {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {

    .grid-3,
    .grid-4,
    .grid-2-equal {
        grid-template-columns: 1fr;
    }

    .grid-2-mobile {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 60px 0;
    }
}

/* Typography */
h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.subhead {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text-dim);
}

.description {
    font-size: 1.25rem;
    color: var(--color-text-dim);
}

.hero-h2 {
    font-size: 3.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 2.5rem;
    min-width: 220px;
    width: auto;
    text-align: center;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    font-size: 1rem;
}

.icon-cta {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .btn {
        min-width: 100%;
        /* Full width on small mobile */
        padding: 1rem 1.5rem;
    }
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #00bfa5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 209, 178, 0.2);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-main);
}

.btn-secondary:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.8rem 1.8rem;
}

.btn-lg {
    padding: 1.4rem 3.5rem;
    font-size: 1.1rem;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section - Split Layout */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-dark);
    padding: 100px 0;
}

.hero-split {
    z-index: 2;
    grid-template-columns: 0.8fr 1.2fr;
    /* Text narrower, Visual wider */
}

.hero-text-content {
    color: var(--color-text-white);
}

.hero-text-content h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    word-break: keep-all;
    /* Break only at word boundaries */
}

.spline-container {
    width: 100%;
    height: 500px;
    /* Reduced vertical ratio */
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-content h1 {
        font-size: 2.5rem;
    }

    .spline-container {
        height: 400px;
        margin-top: 2rem;
    }

    .cta-group {
        justify-content: center;
    }
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    /* Prevent overflow */
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (max-width: 600px) {
    .cta-group {
        flex-direction: column;
        /* Stack vertically on mobile */
    }
}

/* Metric Cards */
.metric-card {
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-card .value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: 'Outfit';
}

.metric-card .label {
    font-size: 1.1rem;
    color: var(--color-text-dim);
    margin-top: 0.5rem;
}

/* Engine Grid */
.engine-card {
    background: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.engine-card:hover {
    background: var(--color-accent-dim);
    border-color: var(--color-accent);
}

.engine-title {
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.engine-card:hover .engine-title {
    color: var(--color-accent);
}

.engine-detail {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--color-text-dim);
    display: none;
}

.engine-card.active .engine-detail {
    display: block;
}

/* Value Proposition Cards */
.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.value-icon {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-family: 'Outfit';
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(0, 209, 178, 0.3);
    border-radius: 100px;
}

.value-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--color-white);
}

.value-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.15rem;
    line-height: 1.5;
}

/* Features */
.feature-visual {
    background-color: #e0e4e2;
    border-radius: var(--radius-lg);
}

.feature-visual-height {
    height: 450px;
}

.full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overflow-hidden {
    overflow: hidden;
}

.reverse {
    direction: rtl;
}

.reverse .feature-content {
    direction: ltr;
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--color-border);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
}

.timeline-item .month {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-accent);
    font-family: 'Outfit';
}

.timeline-item .content {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Archive Cards - Premium Glassmorphism */
.archive-card {
    background: rgba(18, 20, 19, 0.03);
    border: 1px solid var(--color-border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bg-dark .archive-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.archive-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 209, 178, 0.1);
    background: var(--color-white);
}

.bg-dark .archive-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.archive-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}

.archive-icon svg {
    width: 100%;
    height: 100%;
}

.archive-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    background: var(--color-bg-light);
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

.tag-mint {
    background: var(--color-accent-dim);
    color: var(--color-accent);
}

.archive-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.archive-card p {
    color: var(--color-text-main);
}

.bg-dark .archive-card p {
    color: var(--color-text-white);
}

.archive-card .description.small {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

.bg-dark .archive-card .description.small {
    color: rgba(255, 255, 255, 0.5);
}

.not-item {
    padding: 2.5rem 2rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.not-item:hover {
    background: var(--color-white);
    color: var(--color-text-dim);
    border-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-not {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.4rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.not-item:hover .icon-not {
    opacity: 1;
    transform: scale(1);
}


.border-teal {
    border: 2px solid var(--color-accent);
}

.text-dim {
    color: rgba(255, 255, 255, 0.3);
}

.border-top-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flash Text Animation */
.flash-item {
    display: inline-block;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.5s ease-out;
    filter: blur(5px);
}

.flash-sequence.visible .flash-item {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Sequential Delays (Up to 7 items) */
.flash-item:nth-child(1) {
    transition-delay: 1s;
}

.flash-item:nth-child(2) {
    transition-delay: 2s;
}

.flash-item:nth-child(3) {
    transition-delay: 3s;
}

.flash-item:nth-child(4) {
    transition-delay: 4s;
}

.flash-item:nth-child(5) {
    transition-delay: 5s;
}

.flash-item:nth-child(6) {
    transition-delay: 6s;
}

.flash-item:nth-child(7) {
    transition-delay: 7s;
}

.flash-sequence.visible .flash-item {
    animation: text-flash 0.8s ease forwards;
}

@keyframes text-flash {
    0% {
        opacity: 0;
        color: var(--color-accent);
        filter: blur(10px);
    }

    50% {
        opacity: 1;
        color: var(--color-accent);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        color: inherit;
    }
}

/* Drop-down Flash Animation */
.drop-flash {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.drop-flash.visible {
    opacity: 1;
    transform: translateY(0);
    animation: drop-text-flash 1s ease forwards;
}

@keyframes drop-text-flash {
    0% {
        opacity: 0;
        transform: translateY(-30px);
        color: var(--color-accent);
        filter: blur(10px);
    }

    50% {
        opacity: 1;
        color: var(--color-accent);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        color: inherit;
    }
}

/* Sequential Delays for Risk Section */
.delay-1 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.5s;
    animation-delay: 0.5s;
}

.delay-3 {
    transition-delay: 0.8s;
    animation-delay: 0.8s;
}

.delay-4 {
    transition-delay: 1.1s;
    animation-delay: 1.1s;
}

/* Credibility Visual Content */
.credibility-visual-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.brand-logo-large {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    mix-blend-mode: multiply;
}

/* Footer Refinement */
#main-footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.business-details p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem;
}

.business-details span {
    display: inline-block;
    width: 100px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.footer-contact .contact-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: baseline;
}

.footer-contact .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 60px;
}

.footer-contact .value {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .value:hover {
    color: var(--color-accent);
}

.footer-bottom {
    margin-top: 3rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .business-details span {
        width: 100px;
    }
}