:root {
    /* Brand */
    --primary: #008ba3;
    --secondary: #006f81;
    --accent: #00b5d5;
    --accent-2: #00b4d8;
    /* gradient alt */
    --primary-dark: #005d6c;
    --primary-darker: #004d5a;
    --teal-soft: #45c4cd;
    /* soft text teal */
    --teal-deep: #006d77;
    /* deep accent teal */
    --brand-dark-2: #005f6b;
    /* alt dark teal */

    /* Neutrals */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e5e7eb;
    --gray-300: #e2e8f0;
    --slate-500: #64748b;
    --gray-700: #4a5568;
    --gray-666: #666666;

    /* Surfaces */
    --footer-bg: #1F2937;
    --hero-bg: #0A1A2F;
    --code-bg: #edf6fa;
    --paper-tint: #fcfeff;
    --warn: #f59e42;
    --warn-bg: #fff7e5;

    /* Alphas */
    --shadow-05: rgba(0, 0, 0, 0.05);
    --shadow-10: rgba(0, 0, 0, 0.10);
    --shadow-15: rgba(0, 0, 0, 0.15);
    --shadow-20: rgba(0, 0, 0, 0.20);
    --primary-shadow-20: rgba(0, 139, 163, 0.20);

    --white-90: rgba(255, 255, 255, 0.90);
    --white-0: rgba(255, 255, 255, 0);
    --shimmer-45: rgba(255, 255, 255, 0.45);

    --icon-primary-bg: rgba(0, 139, 163, 0.10);
    --icon-secondary-bg: rgba(0, 180, 216, 0.10);
    --icon-accent-bg: rgba(0, 109, 119, 0.10);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: linear-gradient(to bottom, var(--gray-50), var(--gray-100)); 
}

body {
    font-family: "sohne-var", "Helvetica Neue", "Arial", -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

main {
    width: 100%;    
}

#mobile-menu,
.mobile-menu {
    transition: all 0.3s ease;
    z-index: 9999;
}



/* Nav */
.nav-link {
    position: relative;
    color: var(--primary-dark);
    font-weight: 500;
    padding: 0.75rem 0.25rem 0 0.25rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -0.70rem;
    height: 0.15rem;
    background: var(--primary);
    border-radius: 0.25rem;
    z-index: 2;
}

/* Gradients & text */
.gradient-bg {
    background: linear-gradient(155deg, var(--primary) 0%, var(--accent) 30%, var(--primary-darker) 100%);
}

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

/* Sections / tabs */
.active-section {
    color: var(--primary);
    font-weight: 600;
}

/* no border-bottom to avoid double underline */
.section-content {
    display: none;
}

.section-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.card-hover {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-05);
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px var(--shadow-10);
}

.next-step {
    transition: all 0.3s ease;
}

.next-step:hover {
    transform: translateX(5px);
}

.section-card {
    border-left: 4px solid var(--primary);
}

.highlight-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.section-header {
    position: relative;
    padding-left: 1.5rem;
}

.section-header:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent-2));
    border-radius: 2px;
}

/* Icon chips */
.icon-primary {
    color: var(--primary);
    background-color: var(--icon-primary-bg);
}

.icon-secondary {
    color: var(--accent-2);
    background-color: var(--icon-secondary-bg);
}

.icon-accent {
    color: var(--teal-deep);
    background-color: var(--icon-accent-bg);
}

/* Tab bar */
.tab-button {
    font-size: 1.1rem;
    font-weight: 600;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.tab-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tab-container {
    display: flex;
    gap: 1.55rem;
    width: max-content;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    white-space: nowrap;
    padding-bottom: 8px;
    padding-right: 6.5rem;
    padding-left: 5rem;
    /* space for arrows */
    scroll-behavior: smooth;
}

.tab-container::-webkit-scrollbar {
    display: none;
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-2));
    transition: all 0.3s ease;
}

/* Tab scroll arrows */
.scroll-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-arrow.left {
    right: 50px;
    background: linear-gradient(90deg, var(--white-90) 0%, var(--white-0) 100%);
}

.scroll-arrow.right {
    right: 0;
    background: linear-gradient(270deg, var(--white-90) 0%, var(--white-0) 100%);
}

.scroll-arrow.visible {
    opacity: 1;
}

.scroll-arrow i {
    background-color: var(--white);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px var(--shadow-10);
    color: var(--primary);
    transition: all 0.2s ease;
}

.scroll-arrow:hover i {
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow-15);
}

/* Scene items (screenshots/cards) */
.scene-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
}

.scene-item:hover {
    box-shadow: 0 8px 22px var(--shadow-10);
    border-color: var(--gray-200) !important;
    background-color: var(--paper-tint);
}

.scene-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, var(--shimmer-45) 50%, transparent 100%);
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

.scene-item:hover::after {
    opacity: 1;
    animation: sp-shimmer 900ms linear forwards;
}

@keyframes sp-shimmer {
    to {
        transform: translateX(120%)
    }
}

/* Misc animations */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0)
    }

    40% {
        transform: translateY(-10px)
    }

    60% {
        transform: translateY(-5px)
    }
}

/* Footer / hero backgrounds */
.footer-bg {
    background: var(--footer-bg);
    background-image: url('footer.webp');
    background-size: cover;
}



.join_us-gradient-bg {
    background: linear-gradient(155deg, var(--primary) 0%, var(--primary-dark) 30%, var(--primary-darker) 100%);
}

.advantages-gradient-bg,
.developers-gradient-bg {
    background: linear-gradient(-135deg, #f9fafb 10%, #f3f4f6 50%, var(--gray-200) 90%);
}

/* Construction placeholder */
.construction-icon {
    font-size: 4rem;
    color: var(--slate-500);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.construction-container {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px var(--shadow-05);
}

/* Optional tab navigator (separate from main tab-container) */
.tab-navigator {
    display: flex;
    justify-content: center;
    position: sticky;
    z-index: 0;
}

.tab-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    color: var(--slate-500);
    font-weight: 500;
    position: relative;
}

.tab-item:hover {
    color: var(--primary);
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-item i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--gray-300);
    color: var(--gray-700);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    box-shadow: 0 1px 2px var(--shadow-05);
}

/* Doc blocks */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tip,
.note,
.security {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin: 1.25rem 0;
    border-left: 0.25rem solid var(--primary);
    background: #e5f6fa;
}

.note {
    border-left-color: var(--accent);
    background: var(--gray-50);
}

.security {
    border-left-color: var(--warn);
    background: var(--warn-bg);
}

.screenshot {
    margin: 1.5rem 0;
    padding: 0.5rem;
    background: var(--white);
    border: 1.5px dashed var(--primary-dark);
    border-radius: 0.4rem;
    text-align: center;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

code,
pre {
    font-family: 'Fira Mono', 'Consolas', monospace;
    background: var(--code-bg);
    color: var(--primary-dark);
    padding: 2px 5px;
    border-radius: 0.3em;
}

/* Pathways / articles */
.pathway-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    will-change: transform, box-shadow;
    background: var(--white);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pathway-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px var(--primary-shadow-20);
    border-color: transparent;
}

.pathway-card:hover::before {
    opacity: 1;
}

.pathway-card.expanded {
    position: relative;
    grid-column: 1 / -1;
    overflow-y: visible;
    background: var(--white);
}

.pathway-card.expanded img {
    max-height: 600px;
    object-fit: contain;
    margin-bottom: 0;
    border-radius: 8px;
}

.pathway-card.expanded .prose {
    max-width: none;
}

.pathway-card.expanded .prose ul {
    list-style: none;
    padding: 0;
}

.card-grid {
    position: relative;
}

.detail-view-mode .pathway-card {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.detail-view-mode .pathway-card.expanded {
    display: block;
}

.close-details {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-666);
}

.announcement-banner {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px var(--primary-shadow-20);
}

@media (prefers-reduced-motion) {

    .announcement-banner::before,
    .pathway-card:hover {
        animation: none;
        transform: none;
    }
}

.article-card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow-05);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px var(--shadow-10);
}

.article-card img {
    width: auto;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
    border-bottom: 1px solid var(--gray-200);
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 0.5rem;
}

.article-content h2,
.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}
/* hero section */

.hero-gradient-bg {
    background: var(--hero-bg);
    background-image: url('wallpaper.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    color: var(--white);
    position: relative;
}

/* Decorative V subsection INSIDE hero (second subsection) */
.hero-v-subsection {
    display: none;
}

/* Hide hero canvas below true desktop so text can keep 2-words/line layout */
@media (max-width: 1279.98px) {
    #hero_canvas {
        display: none !important;
    }
}

/* Desktop-only V, shallower / less spiky */
@media (min-width: 1280px) {
    .hero-v-subsection {
        display: block;
        position: relative;
        height: 2rem;
        overflow: hidden;
        pointer-events: none;
    }

    .hero-v-subsection::before,
    .hero-v-subsection::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 50%;
        height: 100%;
        background: linear-gradient(to bottom, var(--gray-50), var(--gray-100));
    }

    /* Left white side – flatter angle */
    .hero-v-subsection::before {
        left: 0;
        clip-path: polygon(
            0 40%,    /* shoulder (higher => flatter) */
            100% 100%,
            0 100%
        );
    }

    /* Right white side – mirror */
    .hero-v-subsection::after {
        right: 0;
        clip-path: polygon(
            0 100%,
            100% 40%,
            100% 100%
        );
    }
}

/* Hero / Title */
.title {
    background-image: url('back-min.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.logo-text,
.logo-text-cap,
.logo-text-alt {
    font-size: 2.5rem;
    font-weight: 825;
    /* keep original weight to avoid regression */
    letter-spacing: -0.5px;
    -webkit-background-clip: text;
    background-clip: text;
    font-kerning: auto;
}
.logo-text {
    color: #0F3751;
}

.logo-text-alt {
    color: #174C68;
}

.logo-text-cap {
    color:#174C68;
}
    
.teal-text {
    color: var(--teal-soft);
}

.teal-bg {
    background-color: var(--primary);
}