:root {
    --primary-color: #111111;
    --bg-color: #F3F3F1;
    --card-bg: #FFFFFF;
    --accent-color: #333333;
    --text-color: #111111;
    --text-light: #444444;
    /* Darkened for better readability */
    --border-color: #E5E5E5;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;
    --transition-speed: 0.3s;
    --transition-buttery: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 8px 8px 0px rgba(0, 0, 0, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
}

/* Noise Texture Overlay Removed */

#grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.02em;
    scroll-margin-top: 120px;
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    background-color: rgba(255, 246, 173, 0.4);
    padding: 2px 4px;
    margin-left: -4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.75rem;
        /* Further increased for better breathing room */
    }
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(243, 243, 241, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
        /* Reduced padding for mobile header */
    }

    .logo-image {
        height: 40px;
        /* Slightly smaller logo on mobile */
    }
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 49px;
    width: auto;
    display: block;
}

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

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition: color var(--transition-speed);
}

/* Navigation link underline - Exclude buttons */
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #06B6D4;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

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

.nav-links a:not(.btn):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Navbar button override - Remove pseudo-element reset */
.nav-links .btn-primary {
    color: white;
    text-decoration: none;
}

.nav-links .btn-primary:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-links .btn-outline {
    text-decoration: none;
}

.nav-links .btn-outline:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #333;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}


/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* For scroll indicator */
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll-indicator .scroll-down-btn {
    margin-top: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: #06B6D4;
    text-decoration-thickness: 4px;
    text-underline-offset: 10px;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
        /* Scaled down for mobile */
        text-underline-offset: 6px;
        text-decoration-thickness: 3px;
    }
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

@media (max-width: 768px) {
    .subheadline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3.5rem;
    max-width: 600px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Canvas */
.hero-visual {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-hover);
}


/* Sections */
.section {
    padding: 10rem 0;
}

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

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

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-buttery);
    box-shadow: none;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.quote-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    font-style: italic;
    line-height: 1.4;
}

.quote-card p {
    color: var(--primary-color);
    /* Override default light text */
    margin: 0;
}

.image-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--border-color);
}

.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-2-uneven {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

/* What is Atlas */
.minimal-card {
    text-align: left;
}

.icon-line {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all var(--transition-buttery);
    /* Sync with card transition */
    transform: scale(1) translateZ(0);
    /* Initialize and hardware accelerate */
}

/* Icon Background & Color Variants */
.icon-bg-1 {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: #0891B2;
}

.icon-bg-2 {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: #4F46E5;
}

.icon-bg-3 {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
    color: #E11D48;
}

.icon-bg-4 {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #059669;
}

.icon-bg-5 {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #D97706;
}

.icon-bg-6 {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
    color: #CA8A04;
}

.card:hover .icon-line {
    transform: scale(1.05) translateZ(0);
}

.card:hover .icon-bg-1 {
    background: rgba(6, 182, 212, 0.15);
}

.card:hover .icon-bg-2 {
    background: rgba(99, 102, 241, 0.15);
}

.card:hover .icon-bg-3 {
    background: rgba(244, 63, 94, 0.15);
}

.card:hover .icon-bg-4 {
    background: rgba(16, 185, 129, 0.15);
}

.card:hover .icon-bg-5 {
    background: rgba(245, 158, 11, 0.15);
}

.card:hover .icon-bg-6 {
    background: rgba(234, 179, 8, 0.15);
}

.minimal-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.minimal-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}



/* The Atlas Process */
.process-steps {
    display: grid;
    gap: 2rem;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-buttery);
}

.process-step:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}


.step-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.step-content .outcome {
    background: #F3F3F1;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border-left: 2px solid var(--primary-color);
    margin-bottom: 0;
    font-family: var(--font-mono);
}

/* Precision Care */


/* Join Options */
.join-card {
    text-align: center;
    padding: 3rem;
}

.join-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.join-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Feature Lists (Outcomes & Who Is For) */
.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    font-size: 1.05rem;
}

.feature-list li::before {
    content: '>';
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 0;
}

.feature-list strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.feature-list p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* OS Features & Dashboard Mockup */
.os-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
    border: 2px solid var(--primary-color);
    display: flex;
    overflow: hidden;
    position: relative;
}

.mockup-sidebar {
    width: 60px;
    background: #F3F3F1;
    border-right: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
}

.sidebar-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #FFFFFF;
    border: 1px solid var(--primary-color);
}

.sidebar-icon.active {
    background: var(--primary-color);
}

.sidebar-icon.bottom {
    margin-top: auto;
    margin-bottom: 20px;
}

.mockup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    height: 50px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #FFFFFF;
}

.header-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.header-profile {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #CBD5E1;
}

.mockup-content {
    padding: 20px;
    height: 100%;
    position: relative;
}

/* Quadrant Layout */
.quadrant-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    position: relative;
}



/* Quadrant Cards */
.quadrant-card {
    background: #FFFFFF;
    border-radius: 4px;
    padding: 12px;
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.quadrant-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.quadrant-icon {
    font-size: 1.2rem;
}

.quadrant-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.quadrant-score {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.quadrant-bar {
    height: 6px;
    background: #F3F3F1;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.quadrant-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Individual Quadrant Colors */
.body-quadrant .quadrant-score {
    color: #F87171;
}

.body-quadrant .quadrant-fill {
    background: linear-gradient(90deg, #F87171, #EF4444);
}

.mind-quadrant .quadrant-score {
    color: #60A5FA;
}

.mind-quadrant .quadrant-fill {
    background: linear-gradient(90deg, #60A5FA, #3B82F6);
}

.emotion-quadrant .quadrant-score {
    color: #A78BFA;
}

.emotion-quadrant .quadrant-fill {
    background: linear-gradient(90deg, #A78BFA, #8B5CF6);
}

.spirit-quadrant .quadrant-score {
    color: #34D399;
}

.spirit-quadrant .quadrant-fill {
    background: linear-gradient(90deg, #34D399, #10B981);
}




/* Final CTA */
.final-cta {
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.final-cta .cta-group {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.microcopy {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: #06B6D4;
}

.footer-tagline {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, -10px);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000), transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(243, 243, 241, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-overlay a {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    min-height: 48px;
    /* Better touch target */
    display: flex;
    align-items: center;
    transition: color var(--transition-speed);
}

.mobile-menu-overlay .btn {
    width: 80%;
    max-width: 300px;
    margin-top: 1rem;
    color: white !important;
    /* Ensure visibility */
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay a:hover {
    color: #06B6D4;
}

/* Responsive */

/* Extra Small Devices (320px - 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Hero Section */
    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .subheadline {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-visual {
        height: 280px;
        margin-bottom: 2rem;
        /* Add space for smoother transition */
    }

    /* Buttons */
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
        min-height: 48px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sm {
        padding: 0.7rem 1.25rem;
        font-size: 0.75rem;
        min-height: 44px;
    }

    .cta-group {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    /* Sections */
    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.75rem, 6vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    .minimal-card h3 {
        font-size: 1rem;
    }

    .minimal-card p {
        font-size: 0.9rem;
    }

    /* Grids */
    .grid-3,
    .grid-2,
    .grid-2x2,
    .grid-2-uneven {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Process Steps */
    .process-steps {
        gap: 1.5rem;
    }

    .process-step {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-number {
        min-width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    /* Dashboard Mockup */
    .dashboard-mockup {
        max-width: 100%;
        height: 280px;
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
    }

    .mockup-sidebar {
        width: 45px;
        padding-top: 15px;
        gap: 10px;
    }

    .sidebar-icon {
        width: 24px;
        height: 24px;
    }

    .mockup-header {
        height: 40px;
        padding: 0 12px;
    }

    .header-title {
        font-size: 0.75rem;
    }

    .header-profile {
        width: 22px;
        height: 22px;
    }

    .mockup-content {
        padding: 12px;
    }

    .quadrant-layout {
        gap: 8px;
    }

    .quadrant-card {
        padding: 8px;
    }

    .quadrant-icon {
        font-size: 1rem;
    }

    .quadrant-name {
        font-size: 0.65rem;
    }

    .quadrant-score {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .quadrant-bar {
        height: 4px;
    }

    /* Footer */
    .footer {
        padding: 3rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-tagline {
        font-size: 0.8rem;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    /* CTA Blocks */
    .final-cta .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .cta-block {
        width: 100%;
    }

    /* Testimonials */
    .testimonial-card p {
        font-size: 1.1rem;
    }

    /* Feature Lists */
    .feature-list li {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
}

/* Small Devices (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 9rem 0 5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }

    .subheadline {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-visual {
        height: 320px;
        margin-bottom: 2.5rem;
    }

    .btn {
        min-height: 48px;
    }

    .cta-group {
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .section {
        padding: 5rem 0;
    }

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

    .grid-3,
    .grid-2,
    .grid-2x2,
    .grid-2-uneven {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .dashboard-mockup {
        height: 300px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* Medium Devices (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 10rem 0 6rem;
    }

    .hero-text h1 {
        font-size: clamp(2.75rem, 5vw, 3.25rem);
    }

    .hero-visual {
        height: 400px;
    }

    .section {
        padding: 8rem 0;
    }

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

    .grid-2-uneven {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .dashboard-mockup {
        height: 320px;
    }
}

/* Tablet and Small Desktop Adjustments */
@media (max-width: 1023px) {
    body {
        background-size: 30px 30px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Ensure all interactive elements have proper touch targets */
    .btn,
    .nav-links a,
    .mobile-menu-toggle,
    .mobile-menu-overlay a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Make cards tappable with active state instead */
    .card:active {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .process-step:hover {
        transform: none;
        box-shadow: none;
    }

    .process-step:active {
        transform: scale(0.98);
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

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

.modal-container {
    background-color: var(--bg-color);
    /* Match site bg */
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    width: 95%;
    max-width: 800px;
    /* Increased width for better form fit */
    height: 90vh;
    max-height: 95vh;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#modal-grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: white;
    /* Clear background for visibility */
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    z-index: 100;
    /* Ensure it's always on top */
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .btn-swap-text:hover {
        color: inherit !important;
        /* Prevent text hiding on mobile "hover" */
    }

    .btn-swap-text::after {
        display: none !important;
        /* Disable swap effect on mobile */
    }

    .btn-primary.btn-swap-text:hover {
        color: white !important;
    }
}

.modal-content {
    flex: 1;
    overflow: hidden !important;
    /* Explicitly prevent parent scrolling */
    padding: 1rem 0 0;
    /* Minimal padding, close button handles its own space */
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Button Text Swap Effect - Enhanced Reliability */
.btn-swap-text {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}

.btn-swap-text:hover {
    background-color: #06B6D4 !important;
    border-color: #06B6D4 !important;
    color: transparent !important;
    /* Force original text to hide */
}

.btn-swap-text::after {
    content: attr(data-hover) !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    font-weight: 700 !important;
    display: block !important;
    z-index: 10;
}

.btn-swap-text:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
}



/* Ensure iframe fills container and scrolls internally */
.modal-content iframe {
    flex: 1;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    border: none;
    display: block;
    background: transparent;
}

@media (max-width: 768px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
    }

    .modal-content {
        padding: 4rem 1rem 4rem;
    }

    .modal-close {
        top: 20px;
        /* Adjusted for safe areas */
        right: 20px;
        width: 44px;
        height: 44px;
        /* Larger touch target */
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        border-radius: 50%;
    }
}

/* Shared Page Styles (Pricing, Practitioners) */
.hero-centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-centered .hero-text {
    margin: 0 auto;
}

.hero-centered .subheadline {
    margin-left: auto;
    margin-right: auto;
}

.hero-centered .cta-group {
    justify-content: center;
}

.hero-label {
    font-family: var(--font-mono);
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

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

.flex-wrap-center {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Pricing Card specific styles */
.pricing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.pricing-tier {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.pricing-cost {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
    text-align: left;
}

.pricing-features h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.best-for {
    margin-top: auto;
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.best-for h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.best-for p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.pricing-cta {
    width: 100%;
    text-align: center;
}

/* Mobile Adjustments for New Classes */
@media (max-width: 768px) {
    .content-box {
        padding: 1.5rem;
    }

    .modal-content iframe {
        min-height: 500px;
        /* Allow smaller height on mobile to fit screen */
    }

    /* Ensure modal fits on landscape phones or small screens */
    .modal-container {
        max-height: 95vh;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* Scroll Down Button */
.scroll-down-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.scroll-down-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-down-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(5px);
}

.scroll-down-btn:hover::before {
    opacity: 1;
}

.scroll-down-btn svg {
    transition: transform 0.3s ease;
    z-index: 1;
}

.scroll-down-btn:hover svg {
    transform: translateY(2px);
}

#pricing-start {
    scroll-margin-top: 120px;
}

/* Pricing Table Styles */
@media (min-width: 1024px) {
    .pricing-desktop-only {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        border: 1px solid var(--border-color);
        background: #fff;
        border-radius: 4px;
        overflow: visible;
        margin-bottom: 3rem;
        margin-top: 1rem;
    }

    .pricing-cell {
        padding: 0.85rem 1rem;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        font-size: 0.95rem;
        color: var(--text-color);
        transition: background-color 0.2s ease;
    }

    /* Row Hover Effect - target cells that are NOT headers */
    .pricing-desktop-only:hover .pricing-cell:not(:hover) {
        opacity: 0.7;
    }

    .pricing-desktop-only:hover .pricing-cell:hover {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.02);
    }

    /* Core cell specific hover override */
    .pricing-desktop-only:hover .pricing-cell.core-cell:hover {
        background-color: #F3F3F1;
    }

    .pricing-col-header {
        padding: 2rem 1rem 1.25rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-bottom: 2px solid var(--border-color);
        background: #fff;
    }

    .pricing-col-header.feature-col {
        justify-content: flex-end;
        border-right: 1px solid var(--border-color);
    }

    .pricing-col-header h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .pricing-col-header .btn {
        margin-top: auto;
        width: 100%;
    }

    .pricing-price {
        font-family: var(--font-mono);
        font-size: 1.1rem;
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }

    .pricing-subtitle {
        font-size: 0.85rem;
        color: var(--text-light);
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .pricing-cell.feature-name {
        font-weight: 500;
        border-right: 1px solid var(--border-color);
    }

    .pricing-cell.centered {
        justify-content: center;
        text-align: center;
        font-family: var(--font-mono);
        font-weight: bold;
        font-size: 1.1rem;
    }

    .pricing-cell.core-cell {
        background-color: #FAFAFA;
        border-left: 2px solid var(--primary-color);
        border-right: 2px solid var(--primary-color);
        position: relative;
        z-index: 1;
    }

    /* Target the very last Core cell (2nd to last div in the grid) */
    .pricing-desktop-only>div:nth-last-child(2) {
        border-bottom: 2px solid var(--primary-color);
        border-radius: 0 0 8px 8px;
    }

    .pricing-col-header.core-header {
        background-color: #FAFAFA;
        border-top: 2px solid var(--primary-color);
        border-left: 2px solid var(--primary-color);
        border-right: 2px solid var(--primary-color);
        border-radius: 8px 8px 0 0;
        position: relative;
        z-index: 2;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }



    .pricing-mobile-only {
        display: none;
    }
}

@media (max-width: 1023px) {
    .pricing-desktop-only {
        display: none;
    }

    .pricing-mobile-only {
        display: block;
    }

    /* Mobile Card Cards */
    .pricing-mobile-only .card {
        margin-bottom: 3.5rem;
        padding: 2rem;
        border-radius: 8px;
        position: relative;
    }

    .pricing-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .pricing-tier {
        display: block;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 0.5rem;
    }

    .pricing-cost {
        font-size: 1.5rem;
        font-weight: 700;
        font-family: var(--font-mono);
        color: var(--primary-color);
    }

    .pricing-cta {
        margin-top: 1rem;
    }

    .pricing-features h4 {
        margin-bottom: 1rem;
        font-size: 0.9rem;
        text-transform: uppercase;
        color: var(--text-light);
        letter-spacing: 0.05em;
    }

    .pricing-mobile-only .feature-list li {
        padding-left: 1.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .pricing-mobile-only .feature-list li::before {
        content: '✔';
        font-size: 0.85rem;
        top: 2px;
        color: var(--primary-color);
        font-weight: bold;
    }

    /* Hide excluded items on mobile to save space */
    .pricing-mobile-only .feature-list li.excluded {
        display: block;
        text-decoration: line-through;
        opacity: 0.5;
    }

    .pricing-mobile-only .feature-list li.excluded::before {
        content: "×";
        color: var(--text-light);
    }

    .pricing-mobile-only .feature-list li.optional::before {
        content: "☐";
        color: var(--text-light);
    }
}

/* Page Specific Overrides */
#pricing-start {
    padding-top: 5rem;
}

/* Practitioners page - reduce gap after hero */
.hero+#main-content .section:first-child {
    padding-top: 5rem;
}

/* V2 Pricing Experiment Styles */
.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.core-header {
    position: relative;
    background: rgba(6, 182, 212, 0.03) !important;
    border-left: 1px solid rgba(6, 182, 212, 0.1);
    border-right: 1px solid rgba(6, 182, 212, 0.1);
}

.core-cell {
    background: rgba(6, 182, 212, 0.02) !important;
    border-left: 1px solid rgba(6, 182, 212, 0.05);
    border-right: 1px solid rgba(6, 182, 212, 0.05);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

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

.testimonial-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pricing-explainer {
    background: #F8FAFC;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.explainer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.explainer-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.explainer-item h3 svg {
    color: var(--primary-color);
}

.explainer-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Utility Classes --- */
.m-0 {
    margin: 0 !important;
}

.mt-0-5 {
    margin-top: 0.5rem !important;
}

.mt-1 {
    margin-top: 1rem !important;
}


.mt-2 {
    margin-top: 2rem !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-1-5 {
    margin-bottom: 1.5rem !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-4 {
    margin-bottom: 4rem !important;
}

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

.text-left {
    text-align: left !important;
}

.text-lg {
    font-size: 1.25rem !important;
}

@media (max-width: 768px) {
    .text-lg {
        font-size: 1.1rem !important;
        /* Scale down for mobile readability */
    }
}

.text-md {
    font-size: 1.1rem !important;
}

.text-sm {
    font-size: 0.9rem !important;
}

.text-xs {
    font-size: 0.85rem !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.lh-1-6 {
    line-height: 1.6 !important;
}

.flex-column-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.status-cell-lg {
    font-size: 1.1rem !important;
}

.status-cell-sm {
    font-size: 0.9rem !important;
}

.w-100 {
    width: 100% !important;
}

.d-inline {
    display: inline !important;
}

.d-block {
    display: block !important;
}

.italic {
    font-style: italic !important;
}

/* Mobile text contrast optimization */
@media (max-width: 768px) {
    .text-light {
        color: #333333 !important;
    }
}