:root {
    --bg-deep: #070a13;
    --bg-surface: #0f1426;
    --bg-glass: rgba(15, 19, 34, 0.4);
    --border-glass: rgba(255, 255, 255, 0.06);
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-brand-orange: #f97316;
    --color-brand-glow: rgba(249, 115, 22, 0.15);
    --font-stack: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    color: var(--color-text-main);
    background-color: var(--bg-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.brand-accent {
    color: var(--color-brand-orange);
    text-shadow: 0 0 20px var(--color-brand-glow);
}

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

/* --- Shared Typography & Layout Globals --- */
.center-heading {
    text-align: center;
    margin-bottom: 5rem;
}

.section-lead {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Navigation UI Element --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(7, 10, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-wrapper {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

.nav-anchor {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-anchor:hover {
    border-color: var(--color-brand-orange);
    color: var(--color-text-main);
    box-shadow: 0 0 15px var(--color-brand-glow);
}

.nav-btn {
    text-decoration: none;
    color: var(--bg-deep);
    background: var(--color-text-main);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background: var(--color-brand-orange);
    color: var(--color-text-main);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

/* --- Hero Section Presentation Block --- */
.hero-section {
    position: relative;
    padding: 8rem 0 10rem 0;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    filter: blur(40px);
}

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

.hero-left {
    text-align: left;
}

.kicker-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: rgba(249, 115, 22, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    margin-bottom: 2rem;
}

.hero-display {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 0 3rem 0;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background-color: var(--color-text-main);
    color: var(--bg-deep);
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--color-brand-orange);
    color: var(--color-text-main);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.25);
}

/* --- Hardware Device UI Mockup Container --- */
.mockup-container {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2rem;
    height: 420px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-footer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.05em;
}

/* --- Narrative Origin Block --- */
.story-section {
    padding: 8rem 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 2rem 0;
    letter-spacing: -0.04em;
}

.paragraph {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0 0 2rem 0;
    text-align: justify;
}

.pillars-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pillar-card {
    background: var(--bg-glass);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--border-glass);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateX(8px);
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.02);
}

.icon-box {
    font-size: 1.5rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-brand-orange);
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    line-height: 1;
    border: 1px solid rgba(249, 115, 22, 0.15);
}

.pillar-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.pillar-desc {
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* --- Features Component Layout --- */
.features-section {
    padding: 8rem 0;
    background-color: var(--bg-deep);
    border-bottom: 1px solid var(--border-glass);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 15px 35px var(--color-brand-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
}

.feature-desc {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Technical Edge Section UI --- */
.tech-section {
    padding: 8rem 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-glass);
}

.tech-specs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spec-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: 16px;
}

.spec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.spec-header h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

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

.spec-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding-left: 2.2rem;
}

/* --- Product Deployment Timeline Layout --- */
.roadmap-section {
    padding: 8rem 0;
    background-color: var(--bg-deep);
    border-bottom: 1px solid var(--border-glass);
}

.roadmap-center-heading {
    text-align: center;
    margin-bottom: 5rem;
}

.roadmap-lead {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.roadmap-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.roadmap-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--color-brand-orange);
    padding: 2.5rem;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.roadmap-meta {
    display: flex;
    flex-direction: column;
}

.roadmap-phase {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-brand-orange);
}

.roadmap-tag {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.roadmap-content {
    display: flex;
    flex-direction: column;
}

.roadmap-title {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.roadmap-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- Parent Trust Banner Element --- */
.trust-section {
    padding: 6rem 0;
    background-color: var(--bg-deep);
    border-bottom: 1px solid var(--border-glass);
}

.trust-banner {
    background: radial-gradient(100% 100% at 0% 0%, rgba(249, 115, 22, 0.04) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid rgba(249, 115, 22, 0.15);
    padding: 4rem;
    border-radius: 28px;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
}

.trust-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: var(--color-brand-orange);
    letter-spacing: -0.02em;
}

.trust-text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- Creator Profiles Section --- */
.team-section {
    padding: 8rem 0;
}

.team-center-heading {
    text-align: center;
    margin-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.card-top {
    margin-bottom: 2rem;
}

.avatar-box {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-glass);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 0.3rem 0;
    letter-spacing: -0.03em;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.team-bio {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* --- FAQ Dropdown Items --- */
.faq-section {
    padding: 8rem 0;
    background-color: var(--bg-deep);
    border-bottom: 1px solid var(--border-glass);
}

.faq-stack {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.faq-item[open] {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.faq-answer {
    margin: 1rem 0 0 0;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Corporate Strategy Vision Block --- */
.vision-banner {
    padding: 8rem 0;
    background: radial-gradient(circle at center, #0f1426 0%, var(--bg-deep) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    text-align: center;
}

.vision-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand-orange);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.vision-quote {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.04em;
    color: var(--color-text-main);
}

/* --- Waitlist Call to Action & Desk Link --- */
.cta-section {
    padding: 10rem 0;
    background-color: var(--bg-deep);
}

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

.cta-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
}

.cta-desc {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 540px;
    margin: 0 auto 4rem auto;
    background: var(--bg-surface);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

.cta-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 1.5rem;
    color: var(--color-text-main);
    font-family: var(--font-stack);
    font-size: 1rem;
}

.cta-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.cta-submit-btn {
    padding: 0.9rem 2rem;
    cursor: pointer;
    white-space: nowrap;
}

.contact-wrapper {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    border-top: 1px dashed var(--border-glass);
    padding-top: 2.5rem;
    display: inline-block;
}

.contact-link {
    color: var(--color-brand-orange);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--color-brand-glow);
}

/* --- Base System Footer Component --- */
.footer-system {
    padding: 6rem 0 4rem 0;
    background-color: var(--bg-surface);
    text-align: center;
    border-top: 1px solid var(--border-glass);
}

.footer-heading {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.footer-subtext {
    color: var(--color-text-muted);
    margin: 0 auto 4rem auto;
    max-width: 480px;
    font-size: 1rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

/* --- System Responsive Viewport Adjustments --- */
@media (max-width: 900px) {
    .hero-grid, .grid-split, .team-grid, .roadmap-item {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .hero-left, .team-center-heading, .roadmap-center-heading {
        text-align: center;
    }
    .hero-lead {
        margin: 0 auto 3rem auto;
    }
}

@media (max-width: 760px) {
    .cta-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 1rem;
    }
    .cta-input {
        background: var(--bg-surface);
        border: 1px solid var(--border-glass);
        padding: 1.2rem;
        border-radius: 12px;
    }
    .trust-banner {
        padding: 2.5rem 1.5rem;
    }
    .nav-links {
        display: none; /* Simplifies layout for smaller device contexts */
    }
}

/* ============================================================= */
/* --- Cinematic Intro Veil ("Explore Bariki") --- */
/* ============================================================= */
.intro-veil {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background:
        radial-gradient(circle at 50% 42%, rgba(249, 115, 22, 0.14) 0%, rgba(7, 10, 19, 0) 55%),
        var(--bg-deep);
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

/* Soft drifting aurora behind the words */
.intro-veil::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, rgba(7, 10, 19, 0) 60%);
    filter: blur(60px);
    animation: introAurora 6s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

.intro-veil.intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.4em;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    font-size: clamp(3rem, 11vw, 8.5rem);
    padding: 0 1.5rem;
    text-align: center;
}

.intro-word {
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity, filter;
}

/* "Explore" glides up from below */
.intro-word--1 {
    transform: translateY(0.6em) scale(0.9);
    filter: blur(16px);
    animation: introRise 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* "Bariki" pops in with an accent glow and a soft overshoot */
.intro-word--2 {
    color: var(--color-brand-orange);
    transform: translateY(0.3em) scale(0.4);
    filter: blur(20px);
    text-shadow: 0 0 40px rgba(249, 115, 22, 0.5);
    animation: introPop 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards;
}

.intro-scroll-cue {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0;
    animation: introCueIn 1s ease-out 1.5s forwards;
}

.intro-chevron {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--color-brand-orange);
    border-bottom: 2px solid var(--color-brand-orange);
    transform: rotate(45deg);
    animation: introBounce 1.8s ease-in-out infinite;
}

/* Lock scroll only while the veil is active */
body.intro-lock {
    overflow: hidden;
    height: 100vh;
}

@keyframes introRise {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes introPop {
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.08);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes introCueIn {
    to { opacity: 1; }
}

@keyframes introAurora {
    0%   { transform: translate(-52%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-48%, -50%) scale(1.15); opacity: 1; }
}

@keyframes introBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50%      { transform: rotate(45deg) translate(4px, 4px); }
}

/* ============================================================= */
/* --- Scroll-Reveal & Liveliness --- */
/* ============================================================= */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Staggered children reveal for card grids */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }

/* Hero entrance — held hidden until the intro veil lifts, then flies in */
.hero-left > * {
    opacity: 0;
    transform: translateY(28px);
}
body.intro-done .hero-left > * {
    animation: heroRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
body.intro-done .hero-left > *:nth-child(1) { animation-delay: 0.1s; }
body.intro-done .hero-left > *:nth-child(2) { animation-delay: 0.24s; }
body.intro-done .hero-left > *:nth-child(3) { animation-delay: 0.38s; }
body.intro-done .hero-left > *:nth-child(4) { animation-delay: 0.52s; }
/* Device mockup also slides in once we enter */
body.intro-done .hero-right {
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.hero-right { opacity: 0; }
body.intro-done .hero-right { opacity: 1; }

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

/* Gentle float on the hero device mockup */
.mockup-container {
    animation: mockupFloat 6s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mockup-container:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(-4deg);
    box-shadow: 0 30px 60px -15px rgba(249, 115, 22, 0.25);
}

@keyframes mockupFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* Lift feature cards on hover for extra life */
.feature-card {
    transition: var(--transition-smooth);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 20px 40px -20px rgba(249, 115, 22, 0.3);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .intro-word,
    .intro-scroll-cue,
    .intro-chevron,
    .intro-veil::before,
    .hero-left > *,
    .mockup-container {
        animation: none !important;
    }
    .intro-word {
        opacity: 1;
        transform: none;
        filter: none;
    }
    .intro-scroll-cue { opacity: 1; }
    .hero-left > * { opacity: 1; transform: none; }
    .hero-right { opacity: 1 !important; animation: none !important; }
    .reveal,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================================= */
/* --- Site-wide ambient motion (keeps the whole page alive) --- */
/* ============================================================= */

/* Thin scroll-progress bar at the very top */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 3500;
    background: linear-gradient(90deg, var(--color-brand-orange), #fbbf24);
    box-shadow: 0 0 12px var(--color-brand-glow);
    transition: width 0.12s linear;
    pointer-events: none;
}

/* Keep real content above the drifting orbs */
.container {
    position: relative;
    z-index: 1;
}

/* Give sections a stage for ambient orbs */
.story-section,
.features-section,
.tech-section,
.roadmap-section,
.trust-section,
.team-section,
.cta-section {
    position: relative;
    overflow: hidden;
}

/* Slowly drifting glow orbs — one per section, varied placement */
.story-section::after,
.features-section::before,
.tech-section::after,
.roadmap-section::before,
.trust-section::before,
.team-section::before,
.cta-section::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.10) 0%, rgba(7, 10, 19, 0) 70%);
    animation: orbDrift 16s ease-in-out infinite alternate;
}

.story-section::after      { top: -80px; left: -60px; }
.features-section::before  { bottom: -120px; right: -80px; animation-duration: 19s; }
.tech-section::after       { top: 20%; right: -100px; animation-duration: 22s;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, rgba(7, 10, 19, 0) 70%); }
.roadmap-section::before   { top: 10%; left: -100px; animation-duration: 18s; }
.trust-section::before     { top: 50%; left: 50%; animation-duration: 20s; }
.team-section::before      { top: -100px; right: -60px; animation-duration: 21s;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.07) 0%, rgba(7, 10, 19, 0) 70%); }
.cta-section::before       { bottom: -140px; left: -80px; animation-duration: 17s; }

@keyframes orbDrift {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%  { transform: translate(40px, -30px) scale(1.12); opacity: 1; }
    100% { transform: translate(-30px, 25px) scale(1.05); opacity: 0.8; }
}

/* Breathing glow on the little kicker badges */
.kicker-badge {
    animation: badgePulse 3.6s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 rgba(249, 115, 22, 0); }
    50%      { box-shadow: 0 0 22px rgba(249, 115, 22, 0.28); }
}

/* Softly pulsing accent text */
.brand-accent {
    animation: accentGlow 3.2s ease-in-out infinite alternate;
}
@keyframes accentGlow {
    0%   { text-shadow: 0 0 14px rgba(249, 115, 22, 0.10); }
    100% { text-shadow: 0 0 26px rgba(249, 115, 22, 0.35); }
}

/* Gentle continuous float on the various section icons */
.feature-icon,
.spec-icon,
.icon-box {
    display: inline-block;
    animation: iconFloat 4.5s ease-in-out infinite;
}
.spec-icon  { animation-duration: 5s;   animation-delay: 0.4s; }
.icon-box   { animation-duration: 5.5s; animation-delay: 0.8s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Make on-scroll reveals a touch more cinematic */
.reveal {
    transform: translateY(46px) scale(0.985);
}
.reveal.is-visible {
    transform: translateY(0) scale(1);
}

/* Roadmap rows glide in from the left with a growing accent edge */
.roadmap-item {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-left-color 0.5s ease;
}
.roadmap-item:hover {
    transform: translateX(10px);
    box-shadow: -8px 18px 40px -22px rgba(249, 115, 22, 0.35);
    border-left-color: #fbbf24;
}

/* Reduced-motion: silence all the ambient continuous motion too */
@media (prefers-reduced-motion: reduce) {
    .story-section::after,
    .features-section::before,
    .tech-section::after,
    .roadmap-section::before,
    .trust-section::before,
    .team-section::before,
    .cta-section::before,
    .kicker-badge,
    .brand-accent,
    .feature-icon,
    .spec-icon,
    .icon-box {
        animation: none !important;
    }
    .scroll-progress { display: none; }
}

/* ============================================================= */
/* --- PREMIUM FINALE: an unforgettable bottom of the page --- */
/* ============================================================= */
:root {
    --grad-warm: linear-gradient(120deg, #f97316 0%, #fbbf24 55%, #f97316 100%);
}

/* ---------- The promise to parents & teachers ---------- */
.trust-section { padding: 7rem 0; }
.trust-banner {
    position: relative;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(249, 115, 22, 0.10) 0%, rgba(7, 10, 19, 0) 55%),
        radial-gradient(120% 140% at 100% 100%, rgba(96, 165, 250, 0.06) 0%, rgba(7, 10, 19, 0) 55%),
        rgba(15, 19, 34, 0.6);
    border: 1px solid rgba(249, 115, 22, 0.18);
    padding: 4.5rem 3.5rem;
    border-radius: 32px;
    max-width: 980px;
    box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.trust-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 55%;
    height: 1px;
    background: var(--grad-warm);
    opacity: 0.7;
}
.trust-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-text-main);
}
.trust-text { font-size: 1.15rem; }

/* ---------- Founders / partnership cards ---------- */
.team-card {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 19, 34, 0.92) 0%, rgba(9, 12, 22, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 3.4rem;
    overflow: hidden;
}
.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--grad-warm);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.team-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: 0 45px 80px -35px rgba(249, 115, 22, 0.28);
}
.team-card:hover::after { opacity: 0.9; }
.avatar-box {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    border-radius: 20px;
    background: linear-gradient(140deg, rgba(249, 115, 22, 0.24) 0%, rgba(251, 191, 36, 0.10) 100%);
    border: 1px solid rgba(249, 115, 22, 0.32);
    box-shadow: 0 12px 32px -12px rgba(249, 115, 22, 0.45);
}
.team-name { font-size: 1.65rem; }

/* ---------- FAQ ---------- */
.faq-item {
    background: rgba(15, 19, 34, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 1.6rem 1.85rem;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-brand-orange);
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-item[open] {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 24px 45px -32px rgba(249, 115, 22, 0.45);
}
.faq-answer { font-size: 1rem; }

/* ---------- Vision — the showstopper ---------- */
.vision-banner {
    position: relative;
    padding: 12rem 0;
    background:
        radial-gradient(60% 90% at 50% 42%, rgba(249, 115, 22, 0.14) 0%, rgba(7, 10, 19, 0) 60%),
        radial-gradient(circle at center, #0f1426 0%, var(--bg-deep) 100%);
    overflow: hidden;
}
.vision-banner::before {
    content: '\201C';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(12rem, 30vw, 24rem);
    line-height: 1;
    font-weight: 900;
    color: rgba(249, 115, 22, 0.06);
    pointer-events: none;
    z-index: 0;
}
.vision-meta {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 0.5rem 1.35rem;
    border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.06);
}
.vision-quote {
    position: relative;
    z-index: 1;
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.5rem;
    line-height: 1.3;
    font-weight: 900;
    background: linear-gradient(120deg, #ffffff 0%, #fed7aa 42%, #ffffff 72%);
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: visionSheen 9s linear infinite;
}
.vision-quote .brand-accent {
    -webkit-text-fill-color: var(--color-brand-orange);
    background: none;
}
@keyframes visionSheen {
    to { background-position: 200% center; }
}

/* ---------- CTA grand finale ---------- */
.cta-section {
    position: relative;
    padding: 11rem 0;
}
.cta-box {
    position: relative;
    padding: 5rem 3rem;
    border-radius: 36px;
    background:
        radial-gradient(100% 130% at 50% 0%, rgba(249, 115, 22, 0.12) 0%, rgba(7, 10, 19, 0) 60%),
        rgba(15, 19, 34, 0.55);
    border: 1px solid rgba(249, 115, 22, 0.15);
    box-shadow: 0 55px 110px -55px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 880px;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg,
        rgba(249, 115, 22, 0) 0deg,
        rgba(249, 115, 22, 0.12) 90deg,
        rgba(251, 191, 36, 0.06) 180deg,
        rgba(249, 115, 22, 0) 300deg);
    animation: ctaSpin 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
@keyframes ctaSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.cta-form {
    background: rgba(7, 10, 19, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.cta-form:focus-within {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 34px rgba(249, 115, 22, 0.25);
}

/* ---------- Footer brand signature ---------- */
.footer-system {
    padding: 6rem 0 3rem 0;
    overflow: hidden;
}
.footer-wordmark {
    font-size: clamp(4.5rem, 21vw, 16rem);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.85;
    text-align: center;
    margin: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.38) 0%, rgba(249, 115, 22, 0.02) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}
.footer-copyright {
    border-top: none;
    padding-top: 0;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

/* Reduced-motion safety for the premium finale */
@media (prefers-reduced-motion: reduce) {
    .vision-quote,
    .cta-box::before {
        animation: none !important;
    }
    .vision-quote {
        background: none;
        -webkit-text-fill-color: var(--color-text-main);
    }
    .vision-quote .brand-accent { -webkit-text-fill-color: var(--color-brand-orange); }
}

/* Responsive polish for the finale */
@media (max-width: 760px) {
    .trust-banner { padding: 3rem 1.75rem; border-radius: 24px; }
    .team-card { padding: 2.5rem; }
    .vision-banner { padding: 8rem 0; }
    .cta-box { padding: 3rem 1.5rem; border-radius: 26px; }
    .footer-wordmark { letter-spacing: -0.05em; }
}

/* ============================================================= */
/* --- OLED CANVAS: true black, zero divider lines, glass depth --- */
/* ============================================================= */
:root {
    --bg-deep: #000000;
    --bg-surface: #05060a;
    --border-glass: rgba(255, 255, 255, 0.05);
}

body { background: #000000; }

/* One seamless black canvas — no section bands, no 1px splits anywhere */
.navbar,
.hero-section,
.story-section,
.features-section,
.tech-section,
.roadmap-section,
.trust-section,
.team-section,
.faq-section,
.footer-system {
    background-color: transparent;
    border-top: none;
    border-bottom: none;
}
.vision-banner {
    border-top: none;
    border-bottom: none;
}
.navbar {
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.9);
}

/* Cards become borderless glass that float on the black */
.feature-card,
.team-card,
.spec-card,
.pillar-card,
.faq-item,
.mockup-container {
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.95),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Roadmap rows: drop the grey outline, keep only a soft glowing accent edge */
.roadmap-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: none;
    border-left: 2px solid rgba(249, 115, 22, 0.6);
    box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.95);
}

/* Hover states now glow instead of drawing a line */
.feature-card:hover,
.pillar-card:hover,
.spec-card:hover {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 34px 70px -30px rgba(249, 115, 22, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.faq-item[open] { border-color: transparent; }

/* Remove the last dividers: dashed contact rule + spec-card lines */
.contact-wrapper { border-top: none; padding-top: 0; }
.spec-card { border-radius: 18px; }

/* ============================================================= */
/* --- CORNER-LEAP REVEALS: cards fly in from opposite corners --- */
/* ============================================================= */
.reveal-stagger > * {
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.95s cubic-bezier(0.34, 1.4, 0.5, 1);
    will-change: transform, opacity;
}

/* Each card starts thrown out to a different corner, then snaps home */
.reveal-stagger > *:nth-child(4n+1) { transform: translate(-90px, -90px) scale(0.82) rotate(-2deg); }
.reveal-stagger > *:nth-child(4n+2) { transform: translate(90px, 90px) scale(0.82) rotate(2deg); }
.reveal-stagger > *:nth-child(4n+3) { transform: translate(90px, -90px) scale(0.82) rotate(2deg); }
.reveal-stagger > *:nth-child(4n)   { transform: translate(-90px, 90px) scale(0.82) rotate(-2deg); }

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0);
}

/* Stagger the arrivals for a lively cascade */
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.27s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.38s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.49s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-stagger > * {
        transform: none !important;
        transition: none !important;
    }
}

/* ---------- Attributions: a quiet, elegant sign-off ---------- */
.attributions {
    max-width: 620px;
    margin: 4.5rem auto 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.attributions-thanks {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.75);
}
.attributions-fine {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.32);
}
@media (max-width: 760px) {
    .attributions { margin-top: 3rem; }
    .attributions-fine { font-size: 0.75rem; }
}

/* ============================================================= */
/* --- MOBILE HARDENING: keep everything tight on small screens --- */
/* ============================================================= */

/* Never allow sideways scroll, no matter what animates */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
img, svg, video { max-width: 100%; height: auto; }

@media (max-width: 760px) {
    /* Calm the paddings so the page isn't an endless scroll */
    .hero-section { padding: 5rem 0 5.5rem; }
    .story-section,
    .features-section,
    .tech-section,
    .roadmap-section,
    .team-section,
    .faq-section { padding: 5rem 0; }
    .trust-section { padding: 4.5rem 0; }
    .cta-section { padding: 6rem 0; }
    .vision-banner { padding: 7rem 0; }
    .container { padding: 0 1.35rem; }

    /* KEY FIX: on phones the cards rise straight up — no sideways throw
       that could shove content off-screen or feel broken. */
    .reveal-stagger > *,
    .reveal-stagger > *:nth-child(4n+1),
    .reveal-stagger > *:nth-child(4n+2),
    .reveal-stagger > *:nth-child(4n+3),
    .reveal-stagger > *:nth-child(4n) {
        transform: translateY(34px) scale(1) rotate(0);
    }
    .reveal-stagger.is-visible > * { transform: translateY(0) scale(1); }
    .reveal { transform: translateY(28px) scale(1); }
    .reveal.is-visible { transform: translateY(0) scale(1); }

    /* Sign-up form: clean stacked fields, full-width button */
    .cta-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.9rem;
        width: 100%;
    }
    .cta-input {
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.10);
        padding: 1.1rem 1rem;
        border-radius: 14px;
    }
    .cta-submit-btn {
        width: 100%;
        padding: 1.1rem 1rem;
    }

    /* Tame oversized display type */
    .footer-wordmark { font-size: clamp(3.5rem, 30vw, 7rem); }
    .vision-banner::before { font-size: 44vw; top: 3rem; }
    .team-card { padding: 2.25rem 1.75rem; }
    .spec-card,
    .pillar-card { padding: 1.6rem; }
    .feature-card { padding: 2.25rem 1.75rem; }

    /* Roadmap: stack the phase label above the content neatly */
    .roadmap-item { padding: 2rem 1.5rem; gap: 1rem; }
}

/* Extra-small phones */
@media (max-width: 400px) {
    .container { padding: 0 1.1rem; }
    .cta-box { padding: 2.5rem 1.25rem; }
    .trust-banner { padding: 2.5rem 1.25rem; }
}