:root {
    --bg: #020617;
    --bg-alt: #030712;
    --bg-elevated: #050816;
    --card: rgba(15, 23, 42, 0.96);
    --border-subtle: rgba(148, 163, 184, 0.25);

    --accent-1: #22d3ee;
    --accent-2: #a855f7;
    --accent-soft: rgba(56, 189, 248, 0.12);

    --text: #e5e7eb;
    --text-strong: #f9fafb;
    --text-muted: #9ca3af;

    --radius-lg: 18px;
    --radius-xl: 26px;

    --shadow-soft: 0 32px 80px rgba(15, 23, 42, 0.85);
    --shadow-subtle: 0 18px 45px rgba(15, 23, 42, 0.6);

    --container-max: 1120px;
}

/* Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(
            circle at top left,
            rgba(34, 197, 235, 0.08),
            transparent 55%
        ),
        radial-gradient(
            circle at top right,
            rgba(129, 140, 248, 0.09),
            transparent 55%
        ),
        radial-gradient(
            circle at bottom,
            rgba(56, 189, 248, 0.04),
            transparent 50%
        ),
        #020617;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.center {
    text-align: center;
}

/* Layout */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow {
    max-width: 720px;
    margin: 0 auto;
}

.section {
    padding: 4.2rem 0;
    position: relative;
}

.section-tight {
    padding-top: 2rem;
}

.section.alt {
    background: radial-gradient(
        circle at top,
        rgba(15, 23, 42, 0.75),
        rgba(15, 23, 42, 0.96)
    );
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section + .section {
    border-top: 1px solid rgba(15, 23, 42, 0.7);
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 2rem;
    gap: 2rem;
}

.pillars-grid {
    display: grid;
    padding-top: 3rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}

.strip-3 {
    display: grid;
    padding-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

/* Typography */

.section-heading {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.section-underline {
    position: relative;
    display: inline-block;
}

.section-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 64px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0.8;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    margin-top: 1.4rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.lede.center {
    margin-left: auto;
    margin-right: auto;
    max-width: 44rem;
}

.bullets {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    counter-reset: bullet-counter;
}

.bullets li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    padding-left: 2rem;
    position: relative;
    padding: 1rem 1.2rem 1rem 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.2s ease;
}

.bullets li::before {
    content: counter(bullet-counter);
    counter-increment: bullet-counter;
    position: absolute;
    left: 0.8rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.2),
        rgba(168, 85, 247, 0.2)
    );
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.75rem;
}

.bullets li:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateX(4px);
}

.bullets li strong {
    color: var(--text-strong);
    margin-right: 0.5rem;
}

.muted {
    color: var(--text-muted);
}

.small {
    font-size: 0.85rem;
}

.tiny {
    font-size: 0.76rem;
}

/* Nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.nav--scrolled {
    background: rgba(3, 7, 18, 0.98);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
    border-color: rgba(30, 64, 175, 0.8);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.brand img {
    width: 26px;
    height: 26px;
}

.nav nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.9rem;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    color: var(--text-muted);
    cursor: pointer;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    user-select: none;
}

.nav-dropdown-trigger::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.7;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
    margin-left: 0.25rem;
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--text-strong);
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
    opacity: 1;
    border-top-color: var(--text-strong);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 160px;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition:
        color 0.18s ease,
        background 0.18s ease;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    color: var(--text-strong);
    background: rgba(34, 197, 235, 0.1);
}

/* Nested dropdown items with submenus */
.nav-dropdown-item {
    position: relative;
}

.nav-dropdown-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 2rem;
}

.nav-dropdown-item > a::after {
    content: "›";
    font-size: 1.2rem;
    opacity: 0.6;
    margin-left: auto;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.nav-dropdown-item:hover > a::after {
    transform: translateX(2px);
    opacity: 1;
}

.nav-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.9);
    z-index: 60;
    margin-left: 0.5rem;
}

/* Position submenu to the left for items that might overflow */
.nav-dropdown-menu .nav-dropdown-item:last-child .nav-submenu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.5rem;
    transform: translateX(8px);
}

.nav-dropdown-menu .nav-dropdown-item:last-child:hover .nav-submenu {
    transform: translateX(0);
}

.nav-dropdown-item:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-submenu a {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: block;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.nav-submenu a:hover {
    color: var(--text-strong);
    background: rgba(34, 197, 235, 0.1);
}

.nav nav a:first-child {
    margin-right: -0.5rem;
}

.nav nav a {
    color: var(--text-muted);
    transition:
        color 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s ease;
}

.nav nav a:hover {
    color: var(--text-strong);
    transform: translateY(-1px);
}

/* Navigation button styling - override for better visibility */
.nav nav .btn-primary {
    color: #000000 !important;
    font-weight: 600;
    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

.nav nav .btn-primary:hover {
    /* Maintain readability on hover - keep same text styling */
    color: #000000 !important;
    font-weight: 600;
    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.01em;
    /* Only allow transform and box-shadow changes from parent */
}

/* Floating Home Button */
.floating-home-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 0% 0%, #22d3ee, transparent 55%),
        linear-gradient(135deg, #22c1ee, #a855f7);
    border: 2px solid rgba(148, 163, 184, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 18px 45px rgba(8, 47, 73, 0.9),
        0 8px 20px rgba(15, 23, 42, 0.8);
    z-index: 100;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    cursor: pointer;
    overflow: hidden;
}

.floating-home-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.2),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.floating-home-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 24px 60px rgba(30, 64, 175, 0.9),
        0 12px 30px rgba(15, 23, 42, 1);
    border-color: rgba(94, 234, 212, 0.8);
}

.floating-home-btn:hover::before {
    opacity: 1;
}

.floating-home-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.floating-home-btn img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    position: relative;
    z-index: 1;
    transition: transform 0.25s ease;
}

.floating-home-btn:hover img {
    transform: scale(1.1);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text);
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.btn:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(94, 234, 212, 0.7);
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
}

.btn-primary {
    background:
        radial-gradient(circle at 0% 0%, #22d3ee, transparent 55%),
        linear-gradient(135deg, #22c1ee, #a855f7);
    border-color: transparent;
    color: #000000;
    font-weight: 600;
    box-shadow: 0 18px 45px rgba(8, 47, 73, 0.9);
    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 22px 60px rgba(30, 64, 175, 0.9);
    color: #000000;
    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 0.8rem 1.75rem;
    font-size: 0.95rem;
}

/* Hero */

.hero.hero--minimal {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
}

.hero-title {
    background-size: 200% 200%;
    animation: gradientShift 16s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-animation {
    position: absolute;
    inset: -160px -220px auto;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(56, 189, 248, 0.32),
            transparent 55%
        ),
        radial-gradient(
            circle at 80% 10%,
            rgba(129, 140, 248, 0.38),
            transparent 55%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(56, 189, 248, 0.2),
            transparent 55%
        );
    opacity: 0.85;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: heroGlow 18s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.7;
        filter: blur(0px);
    }
    50% {
        opacity: 0.9;
        filter: blur(4px);
    }
    100% {
        opacity: 0.75;
        filter: blur(1px);
    }
}

.hero-animation::after {
    content: "";
    position: absolute;
    inset: 14% 18%;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    opacity: 0.35;
}

.hero-diagram {
    position: absolute;
    inset: auto 50% 4.5rem auto;
    transform: translateX(32%);
    opacity: 0.14;
    pointer-events: none;
}

.hero-diagram img {
    max-width: 360px;
    filter: drop-shadow(0 22px 60px rgba(15, 23, 42, 0.9));
}

.hero-stack {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.logo-hero.tiny {
    width: 280px;
    margin-bottom: 0.75rem;
    margin-top: -1rem;
    filter: drop-shadow(0 22px 55px rgba(15, 23, 42, 0.9));
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.logo-hero.tiny:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 26px 70px rgba(15, 23, 42, 1));
}

.hero h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin: 0;
}

.hero .btn-lg {
    margin-top: 2rem;
}

/* Cards / panels */

.feature-card,
.panel,
.card,
.team-card {
    border-radius: var(--radius-lg);
    background:
        radial-gradient(
            circle at top left,
            rgba(148, 163, 184, 0.12),
            transparent 55%
        ),
        rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-subtle);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.2s ease;
}

.feature-card::before,
.panel::before,
.team-card::before {
    content: "";
    position: absolute;
    inset: -40% 40% auto auto;
    background: radial-gradient(
        circle at top right,
        rgba(34, 211, 238, 0.25),
        transparent 60%
    );
    opacity: 0.12;
}

.feature-card:hover,
.panel:hover,
.card:hover,
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(94, 234, 212, 0.8);
    background:
        radial-gradient(
            circle at top left,
            rgba(34, 197, 235, 0.09),
            transparent 60%
        ),
        rgba(15, 23, 42, 0.98);
}

.checklist {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 0%,
        var(--accent-1),
        var(--accent-2)
    );
}

/* Pillars & strip */

.pillar {
    padding: 1.4rem 1.2rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(30, 64, 175, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
}

.pillar-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
    transition:
        transform 0.3s ease,
        filter 0.3s ease,
        opacity 0.3s ease;
}

.challenge-card:hover .pillar-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.8));
    opacity: 1;
}

.pillar h4 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.pillar p {
    margin: 0;
    color: var(--text-muted);
}

/* Challenge cards animations */
.challenge-card {
    opacity: 0;
    transform: translateY(30px);
    animation: challengeFadeIn 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.challenge-card h4 {
    transition:
        color 0.3s ease,
        transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.challenge-card:hover h4 {
    color: var(--accent-1);
    transform: translateX(2px);
}

.challenge-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--accent-1),
        var(--accent-2),
        var(--accent-1)
    );
    background-size: 200% 200%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

.challenge-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 24px 60px rgba(34, 211, 238, 0.25),
        0 18px 40px rgba(15, 23, 42, 0.9);
    border-color: rgba(34, 211, 238, 0.6);
}

.challenge-card:hover::before {
    opacity: 0.6;
}

.challenge-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(34, 211, 238, 0.15),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.challenge-card:hover::after {
    opacity: 1;
}

@keyframes challengeFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGlow {
    0%,
    100% {
        background-position: 0% 50%;
        opacity: 0;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.4;
    }
}

.strip-3 > div {
    padding: 1.4rem 1.3rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(30, 64, 175, 0.5);
}

.strip-3 h4 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.strip-3 p {
    margin: 0;
    color: var(--text-muted);
}

.strip-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

.strip-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* Architecture diagram */

.architecture-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

.architecture-diagram {
    margin: 0;
    max-width: 600px;
}

.architecture-diagram img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(
        circle at top,
        rgba(148, 163, 184, 0.18),
        transparent 55%
    );
    cursor: pointer;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.architecture-diagram img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Scroll indicator */

.scroll-indicator {
    position: fixed;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0.8;
    z-index: 30;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
}

.scroll-indicator span {
    display: block;
    width: 3px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
    opacity: 0;
}

.scroll-indicator-animate {
    animation: scrollPulse 2s ease-in-out infinite;
    opacity: 1 !important;
}

@keyframes scrollPulse {
    0% {
        transform: translateY(4px);
        opacity: 0;
    }
    20% {
        transform: translateY(8px);
        opacity: 1;
    }
    80% {
        transform: translateY(18px);
        opacity: 1;
    }
    100% {
        transform: translateY(22px);
        opacity: 0;
    }
}

/* Scroll arrow */
.scroll-arrow {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    opacity: 0.7;
    animation: arrowBounce 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 30;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.scroll-arrow.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    animation: none;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.5));
}

@keyframes arrowBounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: 1;
    }
}

/* Page hero (About/Product) */

.page-hero {
    position: relative;
    padding: 6rem 0 5rem;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-muted);
}

.page-title {
    margin: 1.3rem 0 0.9rem;
    font-size: clamp(2.4rem, 3.6vw, 3rem);
    letter-spacing: -0.055em;
}

.page-hero .lede {
    max-width: 34rem;
    font-size: 1rem;
}

.hero-email-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-email-section .section-heading {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.hero-email-section p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.page-hero-glow {
    position: absolute;
    inset: 10% 10% auto;
    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(56, 189, 248, 0.25),
            transparent 60%
        ),
        radial-gradient(
            circle at 100% 0%,
            rgba(129, 140, 248, 0.25),
            transparent 60%
        );
    opacity: 0.6;
    filter: blur(10px);
    pointer-events: none;
}

/* About specifics */

.mission-block {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(
            circle at top left,
            rgba(34, 211, 238, 0.12),
            transparent 60%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(168, 85, 247, 0.1),
            transparent 60%
        ),
        rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.mission-block::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.3),
        rgba(168, 85, 247, 0.3)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.mission-block h2 {
    position: relative;
    z-index: 1;
}

.mission-block p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
}

.principles {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-muted);
}

.principles li {
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.2s ease;
}

.principles li:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateX(4px);
}

.principles strong {
    color: var(--text-strong);
    margin-right: 0.5rem;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

/* Team */

.page.container {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.team-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.9rem;
}

.team-card .avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.5);
    margin-bottom: 0.9rem;
}

.team-card .details h3 {
    margin: 0 0 0.15rem;
    font-size: 1rem;
}

.team-card .muted.small {
    font-size: 0.85rem;
}

.team-card .bio {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-email {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
    text-align: center;
}

.email-link {
    font-size: 1.3rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
    display: inline-block;
}

.email-link:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Waitlist */

.page.container.narrow {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.waitlist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.6rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.field input {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
}

.field input[type="file"] {
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    cursor: pointer;
}

.field input[type="file"]::file-selector-button {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-right: 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.field input[type="file"]::file-selector-button:hover {
    background: rgba(34, 197, 235, 0.15);
    border-color: rgba(34, 197, 235, 0.5);
}

.field textarea {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.field textarea::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.field-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

.field input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.field select {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%9ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.5rem;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.field select:hover {
    border-color: rgba(148, 163, 184, 0.5);
    background-color: rgba(15, 23, 42, 0.95);
}

.field select:focus {
    outline: none;
    border-color: rgba(34, 197, 235, 0.6);
    background-color: rgba(15, 23, 42, 0.98);
}

.careers-form {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.6rem;
}

.span-2 {
    grid-column: span 2;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.toast {
    position: fixed;
    inset: auto 1.5rem 1.5rem auto;
    max-width: 320px;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(34, 197, 235, 0.6);
    color: var(--text);
    font-size: 0.85rem;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.95);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.25s ease-out,
        transform 0.25s ease-out;
    z-index: 50;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* CTA row + final CTA */

.cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

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

/* Footer */

.footer {
    margin-top: 2rem;
    padding: 2.5rem 0 2.2rem;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    background: rgba(3, 7, 18, 0.98);
}

.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.brand-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.brand-inline img {
    width: 24px;
    height: 24px;
}

.footer .right {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer .right a:hover {
    color: var(--text-strong);
}

.divider {
    margin: 1.5rem 0 1rem;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(148, 163, 184, 0.35),
        transparent
    );
}

/* Scroll-in animation utility */

.animate-in {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    filter: blur(2px);
    transition:
        opacity 0.65s ease-out,
        transform 0.65s ease-out,
        filter 0.65s ease-out;
}

.animate-in.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Responsive */

@media (max-width: 1200px) {
    /* Position all submenus to the left on medium screens to prevent overflow */
    .nav-submenu {
        left: auto !important;
        right: 100% !important;
        margin-left: 0 !important;
        margin-right: 0.5rem !important;
        transform: translateX(8px) !important;
    }

    .nav-dropdown-item:hover .nav-submenu {
        transform: translateX(0) !important;
    }
}

@media (max-width: 900px) {
    .card-row,
    .pillars-grid,
    .strip-3,
    .two-col,
    .team-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section {
        padding: 4.8rem 0; /* was 4.2rem */
    }

    .section.alt {
        padding: 4.8rem 0;
    }

    .section-heading {
        font-size: 1.6rem; /* was 1.5rem */
        margin-bottom: 1.4rem; /* was 1.25rem */
    }

    .section .narrow > p,
    .section .narrow > ul,
    .section .narrow > ol {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .page-hero {
        padding: 4.5rem 0 3rem;
        min-height: auto;
        align-items: flex-start;
    }

    .page-hero-inner {
        text-align: center;
    }

    .page-hero .cta-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav nav {
        display: none; /* (optional) you can swap for a burger later */
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }

    .nav-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-left: 0;
        margin-top: 0.5rem;
        border-left: 2px solid rgba(148, 163, 184, 0.2);
        padding-left: 1rem;
        box-shadow: none;
    }

    .hero.hero--minimal {
        padding-top: 4rem;
        min-height: auto;
    }

    .logo-hero.tiny {
        width: 220px;
    }

    .footer-grid {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .waitlist-grid,
    .careers-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .span-2 {
        grid-column: span 1;
    }

    .floating-home-btn {
        width: 56px;
        height: 56px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .floating-home-btn img {
        width: 28px;
        height: 28px;
    }

    .nav-dropdown-menu {
        min-width: 140px;
    }
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.image-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

.image-modal-close:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: scale(1.1);
}

.image-modal-close:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .image-modal-content {
        padding: 1rem;
    }

    .image-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

.spacer {
    height: 2rem;
}
