/* completengine.com - Luxury Aerospace Command Center */
/* Colors: #2C1810 Deep Espresso, #8B6914 Champagne Gold, #F5F0E6 Aged Ivory, #4A3728 Warm Umber, #EDE5D4 Parchment, #C8B88A Brushed Gold, #9B9580 Aged Sage */

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

html {
    scroll-behavior: smooth;
    background: #2C1810;
}

body {
    font-family: 'Inter', sans-serif;
    background: #2C1810;
    color: #EDE5D4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================== HUD OVERLAY ===================== */
.hud-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
}

.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(200, 184, 138, 0.4);
    border-style: solid;
    border-width: 0;
}

.hud-corner-tl {
    top: 24px;
    left: 24px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.hud-corner-tr {
    top: 24px;
    right: 24px;
    border-top-width: 1px;
    border-right-width: 1px;
}

.hud-corner-bl {
    bottom: 24px;
    left: 24px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.hud-corner-br {
    bottom: 24px;
    right: 24px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

.hud-line {
    position: absolute;
    background: rgba(200, 184, 138, 0.15);
}

.hud-line-top {
    top: 24px;
    left: 64px;
    right: 64px;
    height: 1px;
}

.hud-line-bottom {
    bottom: 24px;
    left: 64px;
    right: 64px;
    height: 1px;
}

.hud-line-left {
    left: 24px;
    top: 64px;
    bottom: 64px;
    width: 1px;
}

.hud-line-right {
    right: 24px;
    top: 64px;
    bottom: 64px;
    width: 1px;
}

.hud-crosshair {
    position: absolute;
    background: rgba(200, 184, 138, 0.08);
}

.hud-crosshair-h {
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    transform: translateY(-50%);
}

.hud-crosshair-v {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
}

.hud-status {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-status-tl {
    top: 32px;
    left: 72px;
}

.hud-status-tr {
    top: 32px;
    right: 72px;
    text-align: right;
}

.hud-status-bl {
    bottom: 32px;
    left: 72px;
}

.hud-status-br {
    bottom: 32px;
    right: 72px;
    text-align: right;
}

.hud-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(200, 184, 138, 0.4);
    text-transform: uppercase;
}

.hud-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #C8B88A;
}

/* ===================== PARTICLE CANVAS ===================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

/* ===================== SECTIONS ===================== */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 80px 60px;
}

.section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================== HERO ===================== */
.section-hero {
    flex-direction: column;
}

.hero-eyebrow {
    margin-bottom: 24px;
    overflow: hidden;
}

.ticker {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: #C8B88A;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.3s forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #F5F0E6;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
}

.title-line-1 {
    font-size: clamp(48px, 10vw, 140px);
    animation: fadeInUp 1s 0.5s forwards;
}

.title-line-2 {
    font-size: clamp(48px, 10vw, 140px);
    color: #8B6914;
    animation: fadeInUp 1s 0.7s forwards;
}

.hero-subtitle {
    margin-top: 32px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 300;
    line-height: 1.7;
    color: #9B9580;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.9s forwards;
}

.hero-metrics {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(200, 184, 138, 0.2);
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    color: #C8B88A;
    letter-spacing: -0.02em;
}

.metric-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(155, 149, 128, 0.7);
}

.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, #C8B88A, transparent);
    animation: scrollPulse 2s infinite;
}

/* ===================== ABOUT ===================== */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.section-number {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #8B6914;
    margin-bottom: 16px;
}

.section-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #F5F0E6;
}

.section-headline em {
    font-style: italic;
    color: #C8B88A;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 300;
    line-height: 1.8;
    color: #9B9580;
    margin-bottom: 24px;
}

.divider-gold {
    width: 60px;
    height: 1px;
    background: #8B6914;
    margin-top: 16px;
}

/* ===================== CAPABILITIES ===================== */
.section-header-center {
    text-align: center;
    margin-bottom: 64px;
}

.section-headline-center {
    display: inline-block;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.capability-card {
    padding: 40px;
    border: 1px solid rgba(200, 184, 138, 0.15);
    background: rgba(44, 24, 16, 0.6);
    backdrop-filter: blur(10px);
    transition: border-color 0.4s ease, transform 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.capability-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.4s ease;
}

.capability-card:hover {
    border-color: rgba(139, 105, 20, 0.5);
    transform: translateY(-4px);
}

.capability-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.capability-icon svg {
    width: 100%;
    height: 100%;
}

.capability-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: #F5F0E6;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.capability-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #9B9580;
}

/* ===================== ARCHITECTURE ===================== */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.arch-layer {
    display: grid;
    grid-template-columns: 160px 1fr 120px;
    gap: 16px;
    align-items: center;
    opacity: 0;
    transform: translateX(-20px);
}

.arch-layer.revealed {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.arch-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #C8B88A;
}

.arch-bar {
    height: 4px;
    background: rgba(200, 184, 138, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.arch-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8B6914, #C8B88A);
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.arch-stat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    color: #9B9580;
    text-align: right;
}

.arch-code-block {
    background: rgba(44, 24, 16, 0.8);
    border: 1px solid rgba(200, 184, 138, 0.15);
    padding: 24px 32px;
    overflow-x: auto;
}

.arch-code-block pre {
    margin: 0;
}

.arch-code-block code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #9B9580;
}

.code-keyword { color: #C8B88A; }
.code-prop { color: #EDE5D4; }
.code-num { color: #8B6914; }
.code-string { color: #9B9580; font-style: italic; }

/* ===================== CTA ===================== */
.section-cta {
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 80px);
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #F5F0E6;
    margin-top: 16px;
    margin-bottom: 24px;
}

.cta-headline em {
    color: #8B6914;
}

.cta-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 300;
    line-height: 1.7;
    color: #9B9580;
    max-width: 480px;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 64px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary {
    background: #8B6914;
    color: #F5F0E6;
    border: 1px solid #8B6914;
}

.btn-primary:hover {
    background: transparent;
    color: #C8B88A;
}

.btn-arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: #C8B88A;
    border: 1px solid rgba(200, 184, 138, 0.3);
}

.btn-secondary:hover {
    border-color: #C8B88A;
    color: #F5F0E6;
}

/* ===================== TICKER ===================== */
.cta-ticker {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    border-top: 1px solid rgba(200, 184, 138, 0.15);
    border-bottom: 1px solid rgba(200, 184, 138, 0.15);
    padding: 14px 0;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-track span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: rgba(200, 184, 138, 0.4);
    flex-shrink: 0;
}

/* ===================== FOOTER ===================== */
.site-footer {
    position: relative;
    z-index: 10;
    padding: 32px 60px;
    border-top: 1px solid rgba(200, 184, 138, 0.1);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-style: italic;
    color: #C8B88A;
}

.footer-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: rgba(155, 149, 128, 0.5);
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    .section {
        padding: 60px 32px;
    }

    .section-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 24px;
    }

    .arch-layer {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .arch-stat {
        text-align: left;
    }

    .hud-corner,
    .hud-line,
    .hud-crosshair,
    .hud-status {
        display: none;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 48px 20px;
    }

    .site-footer {
        padding: 24px 20px;
    }
}


/* ===================== ZOOM ENTER EFFECT ===================== */
.zoom-enter {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-enter.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Display title alternate sizing: font-size up to 12vw for hero on large screens */
@media (min-width: 1400px) {
    .title-line-1,
    .title-line-2 {
        font-size: min(12vw, 160px);
    }
}
