:root {
    --bg-main: #070b10;
    --bg-elevated: #0c131a;
    --accent: #5fb3ff;
    --accent-soft: rgba(95, 179, 255, 0.15);
    --text-primary: #eaf2ff;
    --text-secondary: #9fb3cc;
    --border-soft: rgba(255, 255, 255, 0.08);
    --glow: rgba(95, 179, 255, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(60% 40% at 70% 10%, rgba(95, 179, 255, 0.08), transparent 60%),
        radial-gradient(40% 30% at 20% 80%, rgba(95, 179, 255, 0.06), transparent 60%),
        var(--bg-main);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(6px);
}

.logo {
    font-weight: 800;
    letter-spacing: 0.2em;
    font-size: 0.95rem;
    color: var(--accent);
}

nav a {
    margin-left: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

nav a:hover {
    color: var(--text-primary);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    padding: 5rem 3rem 6rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-secondary);
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: 0.9rem;
}

.button.primary {
    background: linear-gradient(180deg, var(--accent), #3a86d1);
    color: #04101d;
    border-color: transparent;
    box-shadow: 0 0 0 0 var(--glow);
}

.button.primary:hover {
    box-shadow: 0 0 24px var(--glow);
}

.hero-visual {
    position: relative;
    padding: 2.5rem;
    border-radius: 1.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        var(--bg-elevated);
    border: 1px solid var(--border-soft);
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(95, 179, 255, 0.15);
}

.hero-visual img {
    width: 100%;
    display: block;
    opacity: 0.9;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 3rem;
}

.section-title h2 {
    font-size: 2.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 44rem;
    margin: 0 auto;
}

/* ----------------------------- */
/* Pipeline Section              */
/* ----------------------------- */

.pipeline {
    padding: 6rem 0;
    overflow: hidden;
}

.pipeline-inner {
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
}

.pipeline-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
}

.pipeline-panel {
    flex: 0 0 100%;
    padding: 4rem 3rem;
    opacity: 0.35;
    transform: scale(0.92);
    text-align: center;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.pipeline-panel.active {
    opacity: 1;
    transform: scale(1);
}

.pipeline-icon {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pipeline-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.pipeline-panel p {
    max-width: 42rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pipeline-panel p {
    text-align: center;
    margin: 0 auto;
}

.pipeline-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.75rem;
}

.pipeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-soft);
    transition:
        background 0.3s ease,
        transform 0.3s ease;
    cursor: pointer;
}

.pipeline-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.philosophy {
    padding: 6rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.belief {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.belief.visible {
    opacity: 1;
    transform: translateY(0);
}

.belief h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.belief p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 48rem;
}

.belief-icon {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.9rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.philosophy-layout {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.philosophy-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.philosophy-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-spine {
    width: 4px;
    height: 80%;
    background: linear-gradient(var(--accent), transparent);
    border-radius: 4px;
    position: relative;
}

.philosophy-word {
    position: absolute;
    left: 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.philosophy-word.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .philosophy-layout {
        grid-template-columns: 1fr;
    }
    .philosophy-right {
        display: none;
    }
}

footer {
    padding: 2.5rem 3rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.philosophy-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boundary-line {
    width: 4px;
    height: 80%;
    background: linear-gradient(var(--accent), transparent);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.boundary-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--bg-elevated);
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.boundary-node.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
}

.boundary-pulse {
    position: absolute;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: pulseDown 3s linear infinite;
}

.features-layout {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.features-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.feature-block {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.feature-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-block h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.feature-block p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 48rem;
}

/* Left-side diagram */
.features-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subsystem-line {
    width: 4px;
    height: 80%;
    background: linear-gradient(var(--accent), transparent);
    border-radius: 4px;
    position: relative;
}

.subsystem-node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--bg-elevated);
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.subsystem-node.active {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
}

.subsystem-label {
    position: absolute;
    left: calc(50% - 3rem);
    transform: translateX(-100%);
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.subsystem-label.active {
    opacity: 1;
}

@media (max-width: 900px) {
    .features-layout {
        grid-template-columns: 1fr;
    }
    .features-left {
        display: none;
    }
}

@keyframes pulseDown {
    0% {
        top: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .philosophy-right {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .pipeline-panel {
        padding: 3rem 1.5rem;
    }

    .section-title {
        padding: 0 1.5rem;
    }
}
