:root {
    /* Backgrounds */
    --bg-primary: #1A1A1F;
    /* Lightened from #0A0A0F */
    --bg-secondary: #24242B;
    /* Lightened from #12121A */
    --bg-tertiary: #2D2D38;
    /* Lightened from #1A1A25 */

    /* Accent — Electric Cyan (science/neural feel) */
    --accent-primary: #00D4FF;
    --accent-glow: rgba(0, 212, 255, 0.25);
    /* Increased glow */

    /* Secondary accent — Soft violet (consciousness theme) */
    --accent-secondary: #7B61FF;

    /* Text */
    --text-primary: #FFFFFF;
    /* Pure white for visibility */
    --text-secondary: #B0B0C0;
    /* Softer grey */
    --text-muted: #707085;
    /* Visible on grey-ish background */

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.15);
    /* Increased from 0.06 */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #00D4FF 0%, #7B61FF 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

section {
    padding: 120px 0;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

/* Navigation */
nav {
    position: absolute;
    /* Unfrozen: scrolls with page */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.logo-sub {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 0.25em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

#hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
}

#hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.subheading {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 2rem 0 3rem 0;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-hero);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 20px -10px var(--accent-secondary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px var(--accent-secondary);
}

.btn-secondary {
    border: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Metrics */
.metric-bar {
    gap: 3rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

.metric {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.metric span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-right: 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
}

/* Visuals */
.hero-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#loc-vector-visual {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

/* Section Shared */
.section-header {
    margin-bottom: 5rem;
}

.section-title {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.3;
}

/* Problem Section */
.problem-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.problem-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    background-image: var(--gradient-card);
    opacity: 0;
    transform: translateY(20px);
}

.problem-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.problem-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
}

/* How It Works */
.workflow-flow {
    gap: 3rem;
    justify-content: space-between;
}

.workflow-step {
    flex: 1;
    position: relative;
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    background-image: var(--gradient-card);
    transition: all 0.3s ease;
}

.workflow-step:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.workflow-step h3 {
    margin-bottom: 1rem;
}

/* Dimensions Grid */
.dimensions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dim-cluster h4 {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.dim-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dim-card span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bar-bg {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
    width: 0 !important;
    /* Initial state */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill.animate {
    /* The width is set via inline style in HTML, we just need to allow it here */
    /* Wait, if I set width: 0 !important, the inline style won't work. */
}

/* Use Cases */
.use-case-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.use-case {
    background: var(--bg-secondary);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    background-image: var(--gradient-card);
}

.uc-metric {
    display: inline-block;
    margin-top: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Competitor Comparison */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td.highlight {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Newsletter */
.newsletter-box {
    background: var(--bg-secondary);
    padding: 5rem 3rem;
    border-radius: 32px;
    border: 1px solid var(--accent-primary);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.newsletter-box h2 {
    margin-bottom: 1rem;
}

.newsletter-box p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

#subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

#email-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

#email-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.privacy-note {
    font-size: 0.8rem;
    margin-top: 2rem !important;
}

@media (max-width: 968px) {
    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .subheading {
        margin: 2rem auto 3rem auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .metric-bar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    #hero {
        height: auto;
        padding-bottom: 60px;
    }

    .problem-grid,
    .dimensions-grid {
        grid-template-columns: 1fr;
    }

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

    #subscribe-form {
        flex-direction: column;
    }
}