/* ===== CSS Variables ===== */
:root {
    --off-white: #F5F5F2;
    --highlight-orange: #FCA220;
    --blue-light: #94A1A8;
    --blue-medium: #71879B;
    --blue-deep: #566F89;
    --grey-dark: #343236;
    --grey-darker: #212023;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

html, body {
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 200;
    background-color: var(--off-white);
    color: var(--grey-darker);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Wave Background ===== */
.wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave-1 path {
    fill: var(--blue-deep);
}

.wave-2 path {
    fill: var(--blue-medium);
}

.wave-3 path {
    fill: var(--blue-light);
}

/* Gentle wave animations */
.wave-1 {
    animation: wave-drift 20s ease-in-out infinite;
}

.wave-2 {
    animation: wave-drift 17s ease-in-out infinite reverse;
    animation-delay: -3s;
}

.wave-3 {
    animation: wave-drift 15s ease-in-out infinite;
    animation-delay: -7s;
}

@keyframes wave-drift {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50%);
    }
}

/* ===== Frosted Overlay ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(245, 245, 242, 0.85) 0%,
        rgba(245, 245, 242, 0.6) 50%,
        rgba(245, 245, 242, 0.4) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: rgba(245, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(86, 111, 137, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-nav {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-nav {
    font-size: 1.125rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: var(--grey-darker);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--grey-darker);
    font-size: 0.9375rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--highlight-orange);
}

.contact-btn-nav {
    display: inline-block;
    padding: 0.4rem 2rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--off-white);
    background-color: var(--blue-deep);
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 1rem;
}

.contact-btn-nav:hover {
    background-color: var(--highlight-orange);
    color: var(--grey-darker);
    transform: translateY(-2px);
}

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

/* ===== Hamburger Menu ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 11;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--grey-darker);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 32, 35, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.mobile-nav {
    width: 100%;
    max-width: 400px;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--off-white);
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background-color: rgba(245, 245, 242, 0.1);
    color: var(--highlight-orange);
    transform: translateX(4px);
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(245, 245, 242, 0.2);
    margin: 1.5rem 0;
}

.mobile-contact-link {
    background-color: var(--blue-deep);
    color: var(--off-white);
    margin-top: 0.5rem;
}

.mobile-contact-link:hover,
.mobile-contact-link:focus {
    background-color: var(--highlight-orange);
    color: var(--grey-darker);
    transform: translateX(0) translateY(-2px);
}

/* ===== Main Content ===== */
.content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    flex: 1;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    color: var(--grey-darker);
    margin-bottom: 2rem;
}

.section-content {
    max-width: 864px;
}

.section-content p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
    line-height: 1.7;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* ===== Problems Table ===== */
.problems-table {
    max-width: 960px;
    width: 100%;
}

.problem-row {
    display: flex;
    align-items: stretch;
    text-align: left;
    border-top: 1px solid rgba(86, 111, 137, 0.15);
}

.problem-row:last-child {
    border-bottom: 1px solid rgba(86, 111, 137, 0.15);
}

.problem-number {
    flex-shrink: 0;
    width: 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
    font-size: 1.5rem;
    font-weight: 200;
    color: var(--blue-deep);
    letter-spacing: 0.05em;
    border-right: 1px solid rgba(86, 111, 137, 0.15);
}

.problem-content {
    flex: 1;
    padding: 2rem 0 2rem 2rem;
}

.problem-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--grey-darker);
    margin-bottom: 0.875rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.problem-content p {
    font-size: 1rem;
    font-weight: 200;
    color: var(--grey-darker);
    line-height: 1.75;
    margin: 0;
    letter-spacing: 0.01em;
}

@media (max-width: 767px) {
    .problem-row {
        flex-direction: column;
    }

    .problem-number {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(86, 111, 137, 0.08);
        padding: 1.25rem 0;
        justify-content: flex-start;
        padding-left: 1.5rem;
    }

    .problem-content {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .problem-number {
        width: 5rem;
        font-size: 1.75rem;
    }

    .problem-title {
        font-size: 1.1875rem;
    }

    .problem-content p {
        font-size: 1.0625rem;
    }
}

@media (min-width: 1024px) {
    .problems-table {
        max-width: 1032px;
    }

    .problem-number {
        width: 6rem;
        font-size: 2rem;
    }

    .problem-content {
        padding: 2.5rem 0 2.5rem 2.5rem;
    }

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

    .problem-content p {
        font-size: 1.0625rem;
    }
}

/* ===== Logo & Brand ===== */
.logo-container {
    margin-bottom: 3rem;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.25rem;
}

.brand {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    color: var(--grey-darker);
}

/* ===== Description ===== */
.description {
    max-width: 768px;
    margin-bottom: 3rem;
}

.description p {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
}

.description .hero-line {
    font-weight: 400;
}

.description p:first-child {
    font-size: 1.125rem;
}

.description p:last-child {
    margin-bottom: 0;
}

/* ===== Contact Button ===== */
.contact-btn {
    display: inline-block;
    padding: 0.875rem 2.5rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--off-white);
    background-color: var(--blue-deep);
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-btn:hover {
    background-color: var(--highlight-orange);
    color: var(--grey-darker);
    transform: translateY(-2px);
}

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

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .navbar {
        padding: 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.5rem;
        min-height: 60px;
    }

    .nav-links {
        display: none;
    }

    .contact-btn-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .content {
        padding-top: 60px;
    }

    .section {
        padding: 4rem 1.5rem 2rem;
        scroll-margin-top: 60px;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer {
        display: none;
    }
}

@media (min-width: 768px) {
    .logo {
        width: 140px;
    }

    .brand {
        font-size: 2.5rem;
    }

    .section-content {
        max-width: 960px;
    }

    .description {
        max-width: 864px;
    }

    .description p {
        font-size: 1.125rem;
    }

    .description p:first-child {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .logo {
        width: 160px;
    }

    .brand {
        font-size: 2.75rem;
        letter-spacing: 0.2em;
    }

    .section-content {
        max-width: 1032px;
    }

    .description {
        max-width: 936px;
    }

    .description p {
        font-size: 1.1875rem;
        line-height: 1.8;
    }

    .description p:first-child {
        font-size: 1.3125rem;
    }
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 2;
    background-color: rgba(245, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(86, 111, 137, 0.1);
    padding: 2rem 1.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.footer-links a {
    text-decoration: none;
    color: var(--grey-darker);
    font-size: 0.9375rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--highlight-orange);
}

.footer-copyright {
    color: var(--blue-medium);
    font-size: 0.875rem;
    font-weight: 300;
}

.footer-copyright p {
    margin: 0;
}

/* ===== Atlas Section - High Density Layout ===== */
.atlas-screenshot {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(86, 111, 137, 0.2);
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.atlas-grid {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    -webkit-grid-gap: 2rem;
    gap: 2rem;
    margin-bottom: 2rem;
}

.atlas-compact-section {
    margin-bottom: 1.5rem;
}

.atlas-compact-section h3 {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0 0 0.75rem;
    letter-spacing: 0.05em;
    text-align: left;
}

.atlas-compact-section h4 {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: var(--grey-darker);
}

.atlas-compact-section p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
    text-align: left;
}

.atlas-compact-section ul,
.atlas-compact-section ol {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0.5rem 0 1rem 1.5rem;
    text-align: left;
}

.atlas-compact-section li {
    margin-bottom: 0.5rem;
}

/* ===== Atlas Waitlist (Embedded form) ===== */
.atlas-waitlist {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(86, 111, 137, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
}

.atlas-waitlist-form {
    margin-top: 0.75rem;
}

.atlas-waitlist-embed {
    margin-top: 0.75rem;
}

.atlas-waitlist-embed iframe,
.atlas-waitlist-embed form {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== Atlas Slide-in (Waitlist) ===== */
.atlas-slidein-trigger {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: var(--blue-deep);
    color: var(--off-white);
    border: 1px solid rgba(245, 245, 242, 0.25);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(33, 32, 35, 0.18);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.atlas-slidein-trigger:hover {
    background: var(--highlight-orange);
    color: var(--grey-darker);
    transform: translateY(-2px);
}

.atlas-slidein-backdrop {
    position: fixed;
    inset: 0;
    z-index: 59;
    background: rgba(33, 32, 35, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.atlas-slidein {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(440px, 92vw);
    z-index: 61;
    background: rgba(245, 245, 242, 0.92);
    border-left: 1px solid rgba(86, 111, 137, 0.18);
    box-shadow: -12px 0 30px rgba(33, 32, 35, 0.18);
    padding: 1.25rem 1.25rem 1.5rem;
    transform: translateX(110%);
    transition: transform 0.22s ease-out;
    overflow-y: auto;
}

.atlas-slidein.is-open {
    transform: translateX(0);
}

.atlas-slidein-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.atlas-slidein-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: left;
}

.atlas-slidein-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(86, 111, 137, 0.2);
    background: rgba(255, 255, 255, 0.6);
    color: var(--grey-darker);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.atlas-slidein-close:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.atlas-slidein-subtitle {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(33, 32, 35, 0.85);
    text-align: left;
}

.atlas-waitlist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 1rem;
}

.atlas-waitlist-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.atlas-waitlist-label {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(33, 32, 35, 0.9);
}

.atlas-waitlist-input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(86, 111, 137, 0.22);
    background: rgba(245, 245, 242, 0.85);
    color: var(--grey-darker);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.atlas-waitlist-input:focus {
    border-color: rgba(252, 162, 32, 0.9);
    box-shadow: 0 0 0 4px rgba(252, 162, 32, 0.18);
    background: rgba(255, 255, 255, 0.85);
}

.atlas-waitlist-input::placeholder {
    color: rgba(33, 32, 35, 0.55);
}

.atlas-waitlist-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.atlas-waitlist-note {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(33, 32, 35, 0.75);
}

.atlas-waitlist-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .atlas-waitlist-grid {
        grid-template-columns: 1fr;
    }
}

.grasp-grid {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: repeat(5, 1fr);
    grid-template-columns: repeat(5, 1fr);
    -webkit-grid-gap: 1rem;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.grasp-item {
    text-align: left;
    padding: 1rem;
    background: rgba(86, 111, 137, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(86, 111, 137, 0.1);
}

.grasp-item h4 {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    color: var(--grey-darker);
}

.grasp-item p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.atlas-intro {
    text-align: left;
    margin-bottom: 1.5rem;
}

.atlas-intro .hero-line {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.atlas-intro p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.atlas-features {
    display: -webkit-grid;
    display: grid;
    -webkit-grid-template-columns: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    -webkit-grid-gap: 0.75rem;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    font-size: 0.9375rem;
}

.atlas-features li {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
}

.atlas-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue-deep);
}

.atlas-core-concepts {
    margin-top: 2rem;
}

.atlas-concepts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

/* Horizontal scrolling container for concept cards */
.atlas-concepts-scroll-container {
    margin-top: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    /* Hide scrollbar for cleaner look, but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(86, 111, 137, 0.3) transparent;
    /* Fade out edges */
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 80px,
        black calc(100% - 80px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 80px,
        black calc(100% - 80px),
        transparent 100%
    );
}

.atlas-concepts-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.atlas-concepts-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.atlas-concepts-scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(86, 111, 137, 0.3);
    border-radius: 4px;
}

.atlas-concepts-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(86, 111, 137, 0.5);
}

.atlas-concepts-scroll {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem max(calc(50vw - 300px), 1.5rem) 0.5rem 1.5rem;
    min-width: min-content;
}

.atlas-concepts-scroll .atlas-concept-card {
    flex: 0 0 auto;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.atlas-concepts-scroll .atlas-concept-card:focus {
    outline: 2px solid var(--highlight-orange);
    outline-offset: 4px;
}

.atlas-concept-card {
    text-align: left;
    padding: 1.25rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(86, 111, 137, 0.06) 100%
    );
    border-radius: 8px;
    border: 1px solid rgba(86, 111, 137, 0.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.atlas-concept-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(
        650px 220px at 10% 0%,
        rgba(252, 162, 32, 0.14) 0%,
        rgba(252, 162, 32, 0.0) 55%
    );
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.atlas-concept-card:hover {
    transform: translateY(-3px);
    border-color: rgba(86, 111, 137, 0.22);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

.atlas-concept-card:hover::before {
    opacity: 1;
}

.atlas-concept-card h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--grey-darker);
    letter-spacing: 0.02em;
}

.atlas-concept-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.atlas-concept-card p:last-child {
    margin-bottom: 0;
}

.atlas-concept-note {
    color: var(--blue-deep);
    font-size: 0.875rem;
}

/* ===== Atlas Core Concepts - Visual Hierarchy Panel ===== */
.atlas-concepts-visual {
    margin-top: 1.25rem;
    text-align: left;
    border-radius: 14px;
    border: 1px solid rgba(86, 111, 137, 0.18);
    background: radial-gradient(
            1000px 420px at 10% 0%,
            rgba(252, 162, 32, 0.14) 0%,
            rgba(252, 162, 32, 0.0) 60%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(245, 245, 242, 0.35) 60%,
            rgba(86, 111, 137, 0.06) 100%
        );
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.atlas-visual-header {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(86, 111, 137, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.atlas-visual-title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--grey-darker);
    margin-bottom: 0.25rem;
}

.atlas-visual-subtitle {
    font-size: 0.875rem;
    color: rgba(33, 32, 35, 0.75);
}

.atlas-visual-canvas {
    padding: 1rem 1.25rem;
}

.atlas-hierarchy-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Node styling with proper SVG hover */
.atlas-node rect {
    transition: fill 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
}

.atlas-node {
    cursor: pointer;
}

.atlas-node:hover rect {
    stroke: rgba(252, 162, 32, 0.65);
    fill: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 4px 12px rgba(252, 162, 32, 0.2));
}

.atlas-node:hover text {
    fill: var(--grey-darker);
}

/* Instance dots - gentle opacity pulse, no movement */
.atlas-instance-dots circle {
    animation: atlas-dot-glow 2.4s ease-in-out infinite;
}

.atlas-instance-dots circle:nth-child(1) {
    animation-delay: 0s;
}
.atlas-instance-dots circle:nth-child(2) {
    animation-delay: 0.4s;
}
.atlas-instance-dots circle:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes atlas-dot-glow {
    0%, 100% {
        opacity: 0.5;
        filter: drop-shadow(0 0 2px rgba(252, 162, 32, 0.3));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(252, 162, 32, 0.7));
    }
}

/* Connectors */
.atlas-conn {
    fill: none;
    stroke-linecap: round;
}

.atlas-conn-base {
    stroke: rgba(86, 111, 137, 0.22);
    stroke-width: 2.5;
}

/* Staggered flow animation across all connectors */
.atlas-conn-flow {
    stroke: var(--highlight-orange);
    stroke-width: 2.5;
    stroke-dasharray: 8 500;
    stroke-dashoffset: 0;
    opacity: 0.85;
}

.atlas-conn-flow.flow-1 {
    animation: atlas-flow-1 4s ease-in-out infinite;
}
.atlas-conn-flow.flow-2 {
    animation: atlas-flow-2 4s ease-in-out infinite;
}
.atlas-conn-flow.flow-3 {
    animation: atlas-flow-3 4s ease-in-out infinite;
}
.atlas-conn-flow.flow-4 {
    animation: atlas-flow-4 4s ease-in-out infinite;
}

@keyframes atlas-flow-1 {
    0%, 15% { stroke-dashoffset: 50; opacity: 0; }
    20% { opacity: 0.9; }
    30%, 100% { stroke-dashoffset: -50; opacity: 0; }
}

@keyframes atlas-flow-2 {
    0%, 25% { stroke-dashoffset: 60; opacity: 0; }
    30% { opacity: 0.9; }
    45%, 100% { stroke-dashoffset: -60; opacity: 0; }
}

@keyframes atlas-flow-3 {
    0%, 40% { stroke-dashoffset: 120; opacity: 0; }
    45% { opacity: 0.9; }
    65%, 100% { stroke-dashoffset: -120; opacity: 0; }
}

@keyframes atlas-flow-4 {
    0%, 60% { stroke-dashoffset: 50; opacity: 0; }
    65% { opacity: 0.9; }
    80%, 100% { stroke-dashoffset: -50; opacity: 0; }
}

.atlas-visual-footer {
    padding: 0.75rem 1.25rem 1.1rem;
    border-top: 1px solid rgba(86, 111, 137, 0.12);
}

.atlas-visual-legend {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.atlas-legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(86, 111, 137, 0.18);
    background: rgba(255, 255, 255, 0.6);
    color: rgba(33, 32, 35, 0.82);
}

.atlas-legend-design {
    border-color: rgba(86, 111, 137, 0.22);
}

.atlas-legend-runtime {
    border-color: rgba(252, 162, 32, 0.35);
}

.atlas-legend-note {
    font-size: 0.8125rem;
    color: rgba(33, 32, 35, 0.7);
}

.atlas-visual-caption {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(33, 32, 35, 0.78);
}

@media (max-width: 1023px) {
    .atlas-grid {
        -webkit-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
        -webkit-grid-gap: 1.5rem;
        gap: 1.5rem;
    }
    
    .grasp-grid {
        -webkit-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
        -webkit-grid-gap: 0.75rem;
        gap: 0.75rem;
    }
    
    .atlas-features {
        -webkit-grid-template-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .atlas-concepts-grid {
        grid-template-columns: 1fr;
    }

    .atlas-concepts-scroll .atlas-concept-card {
        min-width: 280px;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .atlas-concepts-scroll .atlas-concept-card {
        min-width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atlas-concept-card,
    .atlas-concept-card::before,
    .atlas-node rect,
    .atlas-conn-flow,
    .atlas-instance-dots circle {
        transition: none !important;
        animation: none !important;
    }
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .wave-1,
    .wave-2,
    .wave-3 {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== 3D Agent Triangle Visualization ===== */
.agent-triangle-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(86, 111, 137, 0.15);
    border-bottom: 1px solid rgba(86, 111, 137, 0.15);
}

/* Wrapper container for triangle and modals */
.triangle-wrapper-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(33, 32, 35, 0.9);
    border-radius: 12px;
    min-height: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.triangle-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 0.75rem;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--grey-darker);
}

.triangle-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--grey-darker);
    max-width: 600px;
}

/* 3D Triangle Container */
.triangle-3d-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    width: 400px;
    height: 380px;
    max-width: 400px;
    max-height: 380px;
    flex-shrink: 0;
    perspective: 1000px;
    cursor: pointer;
}

.triangle-3d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(0deg);
    transition: transform 0.1s linear;
    transform-origin: center center;  /* Keep rotation centered */
}

.triangle-3d.paused {
    transition: transform 0.3s ease-out;
}

.triangle-shape {
    width: 100%;
    height: 100%;
}

/* Static vertex labels overlay */
.vertex-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* SVG Vertex Dots */
.vertex-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.vertex-dot:hover {
    fill: var(--highlight-orange);
    filter: drop-shadow(0 0 8px rgba(252, 162, 32, 0.6));
}

/* Floating Vertex Labels */
.vertex {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 20;
}

.vertex:hover .vertex-label {
    color: var(--highlight-orange);
    transform: scale(1.1);
}

.vertex-label {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--grey-darker);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(245, 245, 242, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Styles - Popup style for hover */
.vertex-modal {
    position: absolute;
    top: 3rem;
    right: 3rem;
    bottom: 3rem;
    width: calc(100% - 480px); /* triangle width + gap + padding */
    min-width: 300px;
    max-width: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vertex-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: transparent;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
    transform: scale(0.98);
    transition: transform 0.15s ease;
    text-align: left; /* Fixes strange centering */
}

.vertex-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    color: var(--off-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(245, 245, 242, 0.2);
    color: var(--highlight-orange);
}

.vertex-modal .modal-content h3 {
    font-size: 2rem;
    font-weight: 300;
    margin: 0 0 1.5rem;
    letter-spacing: 0.05em;
    color: var(--off-white);
    padding-right: 2rem;
}

.vertex-modal .modal-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 0 1rem;
    color: var(--off-white);
}

.vertex-modal .modal-content .modal-lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--highlight-orange);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.vertex-modal .modal-content ul,
.vertex-modal .modal-content ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.vertex-modal .modal-content li {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: var(--off-white);
}

.vertex-modal .modal-content strong {
    font-weight: 500;
    color: var(--off-white);
}

.modal-examples {
    background: rgba(245, 245, 242, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-left: 3px solid var(--highlight-orange);
}

.modal-examples p {
    margin-bottom: 0.75rem;
}

.modal-examples ul {
    margin-bottom: 0;
}

.modal-summary {
    font-style: italic;
    color: var(--highlight-orange);
    border-top: 1px solid rgba(245, 245, 242, 0.3);
    padding-top: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Responsive 3D Triangle */
@media (min-width: 1400px) {
    .triangle-3d-container {
        max-width: 400px;
        max-height: 380px;
    }
}

@media (max-width: 1023px) {
    .triangle-title {
        font-size: 1.25rem;
    }
    
    .triangle-wrapper-container {
        flex-direction: column;
        align-items: center;
        min-height: auto;
    }
    
    .triangle-3d-container {
        width: 350px;
        height: 330px;
        max-width: 350px;
        max-height: 330px;
    }
    
    .vertex-modal {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 2rem;
    }
    
    .modal-content {
        height: auto;
        max-height: 60vh;
    }
}

@media (max-width: 767px) {
    .agent-triangle-section {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .triangle-wrapper-container {
        padding: 1.5rem;
    }
    
    .triangle-3d-container {
        width: 300px;
        height: 290px;
        max-width: 300px;
        max-height: 290px;
        padding: 1rem;
    }
    
    .vertex-label {
        font-size: 0.75rem;
    }
    
    .vertex-point {
        width: 18px;
        height: 18px;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-height: 60vh;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    .modal-content p,
    .modal-content li {
        font-size: 0.9375rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .triangle-3d {
        animation: none !important;
        transform: rotateX(15deg) rotateY(-15deg) !important;
    }
    
    .vertex-modal,
    .modal-content {
        transition: none;
    }
}

/* ===== Team & Funding Modals ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 32, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal:not(.vertex-modal) .modal-content {
    position: relative;
    background: var(--off-white);
    border-radius: 12px;
    padding: 2.5rem;
    padding-top: 2.5rem;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.modal.active:not(.vertex-modal) .modal-content {
    transform: translateY(0) scale(1);
}

.modal:not(.vertex-modal) .modal-close {
    position: sticky;
    top: 1rem;
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(245, 245, 242, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.75rem;
    color: var(--blue-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    margin: -2.5rem 0 1rem 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.modal:not(.vertex-modal) .modal-close:hover {
    background: rgba(86, 111, 137, 0.1);
    color: var(--grey-darker);
}

.modal:not(.vertex-modal) .section-title {
    margin-top: 0;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

/* Team Member Styles */
.team-members {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-member {
    text-align: left;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--blue-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover {
    border-color: var(--blue-medium);
    box-shadow: 0 2px 8px rgba(86, 111, 137, 0.1);
}

.team-member-coming-soon:hover {
    border-color: var(--blue-deep);
    box-shadow: 0 2px 12px rgba(86, 111, 137, 0.15);
}

.apply-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--blue-deep);
    color: #F5F5F2 !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.apply-button:hover,
.apply-button:visited,
.apply-button:active,
.apply-button:focus {
    color: #F5F5F2 !important;
    background: var(--blue-medium);
}

.apply-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(86, 111, 137, 0.3);
}

.team-headshot {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    display: block;
    border: 3px solid var(--blue-medium);
    flex-shrink: 0;
}

.team-headshot-placeholder {
    background: var(--blue-light);
    border: 3px solid var(--blue-light);
}

.team-member-content {
    flex: 1;
}

.team-member h3 {
    font-size: 1.75rem;
    font-weight: 300;
    margin: 0 0 0.5rem;
    letter-spacing: 0.05em;
    color: var(--grey-darker);
}

.team-role {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--blue-deep);
    margin: 0 0 1.5rem;
    letter-spacing: 0.02em;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--grey-darker);
    transition: color 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--highlight-orange);
    background: rgba(86, 111, 137, 0.05);
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Funding modal specific styles */
.modal-content a[href^="mailto:"] {
    color: var(--blue-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(86, 111, 137, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.modal-content a[href^="mailto:"]:hover {
    color: var(--highlight-orange);
    border-bottom-color: var(--highlight-orange);
}

.modal-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    background: rgba(86, 111, 137, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
    word-break: break-all;
}

.modal-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.modal-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.modal-content hr {
    border: none;
    border-top: 1px solid rgba(86, 111, 137, 0.2);
    margin: 2rem 0;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    .modal .section-title {
        font-size: 1.75rem;
    }
    
    .team-member {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .team-headshot {
        width: 120px;
        height: 120px;
    }
    
    .team-member-content {
        text-align: center;
    }
    
    .team-member h3 {
        font-size: 1.5rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content h3 {
        font-size: 1.25rem;
    }
    
    .modal-content code {
        font-size: 0.85em;
        word-break: break-all;
    }
    
    .apply-button {
        color: #F5F5F2 !important;
        background: var(--blue-deep) !important;
        font-weight: 500 !important;
        letter-spacing: 0.05em;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
    }
    
    .apply-button:hover,
    .apply-button:visited,
    .apply-button:active,
    .apply-button:focus {
        color: #F5F5F2 !important;
    }
}

