/* ==========================================================================
   SKYLOG — Operations Center Theme
   ========================================================================== */

:root {
    /* Base palette */
    --bg-deep:       #060e1c;
    --bg-primary:    #0a1628;
    --bg-secondary:  #0f1d35;
    --bg-card:       #132040;
    --bg-elevated:   #1a2a4e;

    /* Accent */
    --accent:        #e89830;
    --accent-glow:   rgba(232, 152, 48, 0.25);
    --accent-dim:    #b07020;
    --teal:          #38b8a0;
    --teal-glow:     rgba(56, 184, 160, 0.2);

    /* Text */
    --text-primary:  #dce0ea;
    --text-secondary:#7a86a0;
    --text-muted:    #4a5670;

    /* Borders & Lines */
    --border:        #1e2e50;
    --border-light:  #2a3c62;

    /* Semantic */
    --danger:        #d04040;
    --danger-bg:     rgba(208, 64, 64, 0.08);
    --danger-border: rgba(208, 64, 64, 0.25);

    /* Typography */
    --font-display:  'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body:     'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono:     'IBM Plex Mono', 'Consolas', monospace;

    /* Spacing */
    --section-pad:   6rem;
    --container-max: 1120px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-deep);
    overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-elevated);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    color: var(--accent);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================================================
   Section Primitives
   ========================================================================== */

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section__label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section__label--center { text-align: center; }

.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.section__title--center { text-align: center; }

.section__body {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav--scrolled {
    background: rgba(6, 14, 28, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
    padding: 0.6rem 0;
}

.nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav__logo-icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.nav__logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__links a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav__links a:hover { color: var(--text-primary); }

.nav__cta {
    background: var(--accent);
    color: var(--bg-deep) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.15s !important;
}

.nav__cta:hover {
    background: #f0a838 !important;
    color: var(--bg-deep) !important;
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    transition: transform 0.3s, opacity 0.3s;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-deep);
}

.btn--primary:hover {
    background: #f0a838;
    color: var(--bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn--ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-deep);
}

/* Grid Background */
.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 70%);
}

/* Pulse ring */
.hero__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: hero-pulse 4s ease-out infinite;
    pointer-events: none;
}

.hero__pulse::after {
    content: '';
    position: absolute;
    inset: -80px;
    border-radius: 50%;
    border: 1px solid var(--teal);
    opacity: 0;
    animation: hero-pulse 4s ease-out infinite 1.5s;
}

@keyframes hero-pulse {
    0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 1.5rem;
}

.hero__badge {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid rgba(56, 184, 160, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.15s both;
}

.hero__title-line { display: block; }

.hero__title-accent {
    color: var(--accent);
    position: relative;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.45s both;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero__scroll-hint span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Overview
   ========================================================================== */

.section--overview {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.overview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview__stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.stat__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Terminal */
.terminal {
    background: #0c0c0c;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 2px 0 var(--border),
        0 20px 60px rgba(0, 0, 0, 0.5);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1rem;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}

.terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal__dot--red    { background: #e05050; }
.terminal__dot--yellow { background: #e0b030; }
.terminal__dot--green  { background: #40c040; }

.terminal__title {
    font-size: 0.75rem;
    color: #666;
    margin-left: 0.5rem;
}

.terminal__body {
    padding: 1.2rem;
    line-height: 1.8;
    min-height: 260px;
}

.terminal__line {
    white-space: nowrap;
}

.t-prompt { color: var(--teal); }
.t-cmd    { color: var(--accent); }
.t-response { color: #6a7a90; padding-left: 1.2em; }

.t-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ==========================================================================
   Features
   ========================================================================== */

.section--features {
    background: var(--bg-deep);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 2rem;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--teal);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card__icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.feature-card:hover .feature-card__icon { color: var(--teal); }

.feature-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.feature-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Use Cases
   ========================================================================== */

.section--use-cases {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.use-cases__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.3s;
}

.use-case:hover { border-color: var(--border-light); }

.use-case__number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--bg-elevated);
    line-height: 1;
    margin-bottom: 1rem;
}

.use-case:hover .use-case__number { color: var(--accent-dim); }

.use-case__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.use-case__text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.use-case__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.use-case__tags li {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-glow);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(56, 184, 160, 0.15);
}

/* ==========================================================================
   How It Works (Flow)
   ========================================================================== */

.section--how {
    background: var(--bg-deep);
}

.flow {
    margin-top: 3rem;
    max-width: 640px;
}

.flow__step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.flow__number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bg-deep);
    background: var(--accent);
    border-radius: 50%;
}

.flow__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.flow__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.flow__connector {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    margin-left: 21px;
}

/* ==========================================================================
   Roles
   ========================================================================== */

.section--roles {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.roles__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem 2rem;
    width: 200px;
    text-align: center;
    transition: border-color 0.3s, transform 0.25s;
}

.role-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.role-card__level {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.role-card__desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.section--contact {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.contact__inner {
    max-width: 540px;
}

.contact__email {
    display: inline-flex;
    flex-direction: column;
    margin-top: 2rem;
    padding: 1.5rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.contact__email:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.contact__email-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact__email-addr {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 0.2rem;
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.section--disclaimer {
    background: var(--bg-primary);
    padding: 3rem 0;
}

.disclaimer {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: 8px;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.disclaimer__icon {
    width: 28px;
    height: 28px;
    color: var(--danger);
}

.disclaimer__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--danger);
}

.disclaimer__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.disclaimer__text--emphasis {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__logo-icon {
    font-size: 1.1rem;
    color: var(--accent);
}

.footer__logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    :root { --section-pad: 4rem; }

    .overview__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .use-cases__grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 680px) {
    :root { --section-pad: 3rem; }

    .nav__links { display: none; }
    .nav__links--open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6, 14, 28, 0.96);
        backdrop-filter: blur(12px);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav__toggle { display: flex; }

    .hero__title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .overview__stats {
        flex-direction: column;
        gap: 1.2rem;
    }

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

    .roles__grid {
        flex-direction: column;
        align-items: stretch;
    }

    .role-card {
        width: auto;
    }
}
