/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    --bg-deep: #050A14;
    --bg-panel: #0B1221;
    --primary-glow: #00E5FF;
    --primary-dim: #008c9e;
    --text-main: #E0E6ED;
    --text-muted: #94A3B8;
    --border-color: #1E293B;
    --font-body: 'Inter', sans-serif;
    --font-tech: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

    /* NEW VARIABLES FOR SIMULATOR */
    --accent: #00E5FF;
    --warning: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --border: #1E293B;
    --cyan-dim-alpha: rgba(0, 229, 255, 0.05);
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Smooth Anchor Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.font-mono {
    font-family: var(--font-tech);
}

.text-glow {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary-glow);
    color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.btn-primary:hover {
    background: var(--primary-glow);
    color: var(--bg-deep);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    border-color: var(--text-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary-glow);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, #131d33 0%, var(--bg-deep) 70%);
    padding: 4rem 0;
}

/* Ambient Orbitals */
.orbital {
    position: absolute;
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    animation: spin 60s linear infinite;
    border-top-color: rgba(0, 229, 255, 0.3);
}

.orb-2 {
    width: 900px;
    height: 900px;
    animation: spin 90s linear infinite reverse;
    border-bottom-color: rgba(0, 229, 255, 0.2);
}

.hero-content {
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.logo-wrapper {
    margin-bottom: 2rem;
    /* REMOVED the drop-shadow here because it creates the glowing box outline */
    animation: float 6s ease-in-out infinite;
}

.logo-wrapper img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;

    /* 1. Blend it */
    mix-blend-mode: screen;

    /* 2. CRUSH the black: This forces dark grey pixels to pure black so they vanish */
    filter: contrast(150%) brightness(85%);

    /* 3. Fade the edges: This creates a vignette to hide any remaining hard lines */
    -webkit-mask-image: radial-gradient(closest-side, black 60%, transparent 100%);
    mask-image: radial-gradient(closest-side, black 60%, transparent 100%);
}

.tagline {
    color: var(--primary-glow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subhead {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- CREDIBILITY STRIP --- */
.cred-strip {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    overflow: hidden;
}

.cred-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cred-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cred-item i {
    color: var(--primary-glow);
}

/* --- OUTCOMES (Grid) --- */
.section-std {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 700px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.outcome-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: 0.3s var(--ease-out);
}

.outcome-card:hover {
    border-color: var(--primary-glow);
    transform: translateY(-5px);
    background: rgba(0, 229, 255, 0.02);
}

.outcome-card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.outcome-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- FLIP CARDS (Pillars) --- */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.flip-card {
    background-color: transparent;
    height: 300px;
    /* Fixed height for flip */
    perspective: 1000px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-inner,
.flip-card:focus-within .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.flip-front {
    background-color: var(--bg-panel);
}

.flip-front h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: var(--primary-glow);
}

.flip-back {
    background-color: #0d1626;
    transform: rotateY(180deg);
    border-color: var(--primary-glow);
}

.flip-back p {
    font-size: 1rem;
    color: var(--text-main);
}

.flip-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* --- VELOCITY PIPELINE --- */
.pipeline-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    margin-top: 3rem;
}

@media(min-width: 768px) {
    .pipeline-steps {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Connector Line */
    .pipeline-steps::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
        z-index: 0;
    }
}

.step-card {
    background: var(--bg-deep);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.step-num {
    background: var(--bg-deep);
    border: 2px solid var(--primary-glow);
    color: var(--primary-glow);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* --- ARCHITECTURE DIAGRAM (CSS Only) --- */
.arch-viz {
    position: relative;
    height: 400px;
    background: radial-gradient(circle at center, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 3rem;
    overflow: hidden;
}

.nexus-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: #000;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #0B1221;
    border: 1px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.node-1 {
    top: 20%;
    left: 20%;
}

.node-2 {
    top: 20%;
    right: 20%;
}

.node-3 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
}

/* Connecting Lines (SVG) */
.arch-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.arch-lines line {
    stroke: var(--primary-dim);
    stroke-width: 1;
    stroke-dasharray: 5;
    animation: dash 30s linear infinite;
}

/* --- FAQ / ACCORDION --- */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

details summary {
    padding: 1.5rem 0;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    font-family: var(--font-tech);
    color: var(--primary-glow);
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '-';
}

details p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    border-left: 2px solid var(--primary-glow);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* --- FOOTER CTA --- */
.final-cta {
    background: linear-gradient(180deg, var(--bg-deep) 0%, #001524 100%);
    padding: 8rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

/* --- ANIMATIONS --- */
@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero {
        text-align: center;
        padding-top: 6rem;
    }

    .cred-list {
        flex-direction: column;
        gap: 1rem;
    }

    .node {
        transform: scale(0.8);
    }
}