@charset "UTF-8";

/* ==========================================================================
   QWERP Neo Cyber Hub 4.0 Design System
   Futuristic Cyberpunk HUD & Realtime Telemetry Command Center
   Dual Theme (Deep Obsidian Void Default / Cyber Lab Responsive)
   ========================================================================== */

:root,
:root[data-theme="dark"] {
    color-scheme: dark;
    --v4-bg: #05050a;
    --v4-bg-subtle: #090c18;
    --v4-surface: #0e1224;
    --v4-surface-card: #11162d;
    --v4-surface-hover: #171e3d;
    --v4-border: rgba(168, 85, 247, 0.22);
    --v4-border-strong: rgba(0, 245, 255, 0.4);
    --v4-text: #f3f4f6;
    --v4-text-soft: #9ca3af;
    --v4-text-faint: #6b7280;
    --v4-purple: #a855f7;
    --v4-purple-glow: rgba(168, 85, 247, 0.35);
    --v4-cyan: #00f5ff;
    --v4-cyan-glow: rgba(0, 245, 255, 0.35);
    --v4-pink: #ff007a;
    --v4-green: #10b981;
    --v4-header-bg: rgba(5, 5, 10, 0.92);
    --v4-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    --v4-max-width: 1240px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --v4-bg: #f4f6fb;
    --v4-bg-subtle: #eaedf7;
    --v4-surface: #ffffff;
    --v4-surface-card: #ffffff;
    --v4-surface-hover: #f0f3fd;
    --v4-border: rgba(124, 58, 237, 0.16);
    --v4-border-strong: rgba(2, 132, 199, 0.35);
    --v4-text: #0f172a;
    --v4-text-soft: #475569;
    --v4-text-faint: #64748b;
    --v4-purple: #7c3aed;
    --v4-purple-glow: rgba(124, 58, 237, 0.2);
    --v4-cyan: #0284c7;
    --v4-cyan-glow: rgba(2, 132, 199, 0.2);
    --v4-pink: #db2777;
    --v4-green: #059669;
    --v4-header-bg: rgba(244, 246, 251, 0.94);
    --v4-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body.cyber-body {
    background-color: var(--v4-bg);
    color: var(--v4-text);
    font-family: "Plus Jakarta Sans", "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.v4-mono {
    font-family: "JetBrains Mono", "SF Mono", monospace;
    letter-spacing: 0.02em;
}

/* Cyber Background Grid */
.cyber-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--v4-border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--v4-border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Container */
.v4-container {
    width: 100%;
    max-width: var(--v4-max-width);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

/* Top Telemetry Live Bar */
.v4-telemetry-bar {
    background: var(--v4-bg-subtle);
    border-bottom: 1px solid var(--v4-border);
    padding: 6px 0;
    font-size: 11px;
    color: var(--v4-cyan);
    letter-spacing: 0.06em;
    position: relative;
    z-index: 101;
}

.v4-telemetry-bar .v4-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v4-telemetry-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.v4-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--v4-cyan);
    box-shadow: 0 0 8px var(--v4-cyan);
    animation: v4Pulse 1.5s infinite ease-in-out;
}

@keyframes v4Pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.4; }
}

/* Header */
.v4-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: var(--v4-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--v4-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.v4-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.v4-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--v4-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.v4-brand__glitch {
    color: var(--v4-cyan);
    text-shadow: 0 0 10px var(--v4-cyan-glow);
}

.v4-brand__badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--v4-purple);
    color: var(--v4-purple);
    box-shadow: 0 0 8px var(--v4-purple-glow);
}

.v4-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.v4-nav a {
    color: var(--v4-text-soft);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.v4-nav a:hover {
    color: var(--v4-cyan);
    text-shadow: 0 0 8px var(--v4-cyan-glow);
}

.v4-nav__mobile-link {
    display: none;
}

.v4-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Button System */
.v4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 42px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.v4-btn--primary {
    background: linear-gradient(135deg, var(--v4-purple), #9333ea);
    color: #ffffff;
    border-color: var(--v4-purple);
    box-shadow: 0 0 18px var(--v4-purple-glow);
}

.v4-btn--primary:hover {
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.v4-btn--cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #ffffff;
    border-color: #06b6d4;
    box-shadow: 0 0 18px var(--v4-cyan-glow);
}

.v4-btn--cyan:hover {
    box-shadow: 0 0 28px rgba(0, 245, 255, 0.6);
    transform: translateY(-2px);
}

.v4-btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--v4-text-soft);
    border-color: var(--v4-border);
}

.v4-btn--ghost:hover {
    color: var(--v4-text);
    border-color: var(--v4-cyan);
    box-shadow: 0 0 12px var(--v4-cyan-glow);
}

.v4-btn--lg {
    height: 50px;
    padding: 0 28px;
    font-size: 14.5px;
}

.v4-btn--block {
    width: 100%;
}

.v4-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--v4-surface);
    border: 1px solid var(--v4-border);
    color: var(--v4-text-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.v4-theme-toggle:hover {
    color: var(--v4-cyan);
    border-color: var(--v4-cyan);
    box-shadow: 0 0 10px var(--v4-cyan-glow);
}

.v4-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--v4-surface);
    border: 1px solid var(--v4-border);
    padding: 0 8px;
    cursor: pointer;
}

.v4-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--v4-cyan);
    border-radius: 2px;
}

/* Hero Section */
.v4-hero {
    padding: 90px 0 80px;
    position: relative;
}

.v4-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--v4-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--v4-border-strong);
    background: rgba(0, 245, 255, 0.05);
    box-shadow: 0 0 14px var(--v4-cyan-glow);
}

.v4-hero__title {
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--v4-text);
    margin-bottom: 22px;
}

.v4-glow-purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

.v4-glow-cyan {
    background: linear-gradient(135deg, #00f5ff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v4-hero__desc {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.7;
    color: var(--v4-text-soft);
    max-width: 680px;
    margin-bottom: 36px;
}

.v4-hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* Command Center Terminal Box */
.v4-terminal {
    border: 1px solid var(--v4-border);
    border-radius: 12px;
    background: var(--v4-surface);
    box-shadow: 0 0 35px var(--v4-purple-glow), var(--v4-shadow);
    overflow: hidden;
    position: relative;
}

.v4-terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--v4-cyan);
    border-left: 2px solid var(--v4-cyan);
    pointer-events: none;
}

.v4-terminal::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid var(--v4-purple);
    border-right: 2px solid var(--v4-purple);
    pointer-events: none;
}

.v4-terminal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--v4-bg-subtle);
    border-bottom: 1px solid var(--v4-border);
    font-size: 11.5px;
    color: var(--v4-text-soft);
}

.v4-terminal__dots {
    display: flex;
    gap: 6px;
}

.v4-terminal__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--v4-border);
}

.v4-terminal__dots span:nth-child(1) { background: #ff5f56; }
.v4-terminal__dots span:nth-child(2) { background: #ffbd2e; }
.v4-terminal__dots span:nth-child(3) { background: #27c93f; }

.v4-terminal__body {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    gap: 28px;
    padding: 32px;
    height: 520px;
    min-height: 520px;
    max-height: 520px;
    box-sizing: border-box;
    align-items: stretch;
}

.v4-log-stream {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--v4-text-soft);
    height: 456px;
    max-height: 456px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    overscroll-behavior: contain;
    overscroll-behavior-y: contain;
    overflow-anchor: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.3) rgba(0, 242, 254, 0.04);
}

.v4-log-stream::-webkit-scrollbar {
    width: 6px;
}

.v4-log-stream::-webkit-scrollbar-track {
    background: rgba(0, 242, 254, 0.04);
}

.v4-log-stream::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 4px;
}

.v4-log-stream::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.6);
}

.v4-log-line {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 2px 0;
    white-space: nowrap;
}

.v4-log-line .tag-cyan { color: var(--v4-cyan); }
.v4-log-line .tag-purple { color: var(--v4-purple); }
.v4-log-line .tag-pink { color: var(--v4-pink); }
.v4-log-line .tag-green { color: var(--v4-green); }

.v4-telemetry-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    height: 100%;
}

.v4-metric-tile {
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--v4-bg-subtle);
    border: 1px solid var(--v4-border);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.2s ease;
}

.v4-metric-tile:hover {
    border-color: var(--v4-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
    transform: translateY(-2px);
}

.v4-metric-tile__label {
    display: block;
    font-size: 11px;
    color: var(--v4-text-faint);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.v4-metric-tile__val {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--v4-cyan);
    letter-spacing: -0.02em;
}

/* Sections */
.v4-section {
    padding: 96px 0;
    border-top: 1px solid var(--v4-border);
    position: relative;
}

.v4-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 56px;
}

.v4-section-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--v4-purple);
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.v4-section-title {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    color: var(--v4-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.v4-section-desc {
    font-size: 14.5px;
    color: var(--v4-text-soft);
    max-width: 480px;
    line-height: 1.7;
}

/* Cyber Cards Grid */
.v4-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.v4-cyber-card {
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--v4-border);
    background: var(--v4-surface);
    position: relative;
    transition: all 0.25s ease;
}

.v4-cyber-card:hover {
    border-color: var(--v4-cyan);
    box-shadow: 0 0 24px var(--v4-cyan-glow);
    transform: translateY(-3px);
}

.v4-card-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--v4-cyan);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.v4-cyber-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--v4-text);
    margin-bottom: 10px;
}

.v4-cyber-card p {
    font-size: 13.5px;
    color: var(--v4-text-soft);
    line-height: 1.65;
}

/* Pipeline Flow */
.v4-pipeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.v4-pipe-box {
    padding: 28px 22px;
    border-radius: 10px;
    border: 1px solid var(--v4-border);
    background: var(--v4-surface);
    position: relative;
    transition: all 0.2s ease;
}

.v4-pipe-box:hover {
    border-color: var(--v4-purple);
    box-shadow: 0 0 20px var(--v4-purple-glow);
}

.v4-pipe-phase {
    font-size: 11px;
    font-weight: 800;
    color: var(--v4-purple);
    margin-bottom: 12px;
}

.v4-pipe-box h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--v4-text);
    margin-bottom: 8px;
}

.v4-pipe-box p {
    font-size: 13px;
    color: var(--v4-text-soft);
    line-height: 1.6;
}

/* Pricing Section */
.v4-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.v4-price-pod {
    padding: 36px 30px;
    border-radius: 12px;
    border: 1px solid var(--v4-border);
    background: var(--v4-surface);
    position: relative;
    transition: all 0.25s ease;
}

.v4-price-pod--active {
    border-color: var(--v4-cyan);
    box-shadow: 0 0 35px var(--v4-cyan-glow);
}

.v4-price-badge {
    position: absolute;
    top: 18px;
    right: 20px;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--v4-cyan);
    color: #05050a;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.v4-price-pod h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--v4-text);
    margin-bottom: 6px;
}

.v4-price-desc {
    font-size: 13px;
    color: var(--v4-text-soft);
    margin-bottom: 20px;
    min-height: 38px;
}

.v4-price-val {
    font-size: 36px;
    font-weight: 800;
    color: var(--v4-text);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.v4-price-val small {
    font-size: 13.5px;
    color: var(--v4-text-soft);
}

.v4-price-features {
    list-style: none;
    margin: 24px 0 28px;
    border-top: 1px solid var(--v4-border);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v4-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--v4-text);
}

.v4-price-features li svg {
    color: var(--v4-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

/* Footer */
.v4-footer {
    padding: 72px 0 40px;
    border-top: 1px solid var(--v4-border);
    background: var(--v4-bg-subtle);
    position: relative;
    z-index: 1;
}

.v4-footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.v4-footer__brand p {
    font-size: 13px;
    color: var(--v4-text-soft);
    margin-top: 12px;
    max-width: 360px;
}

.v4-footer__links {
    display: flex;
    gap: 56px;
}

.v4-footer__col h4 {
    font-size: 11px;
    font-weight: 800;
    color: var(--v4-cyan);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.v4-footer__col a {
    display: block;
    color: var(--v4-text-soft);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.v4-footer__col a:hover {
    color: var(--v4-cyan);
}

.v4-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--v4-border);
    font-size: 12px;
    color: var(--v4-text-faint);
}

/* Responsive */
@media (max-width: 1024px) {
    .v4-terminal__body {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    .v4-log-stream {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }
    .v4-telemetry-metrics {
        grid-template-rows: auto;
    }
    .v4-grid-3,
    .v4-pricing-grid,
    .v4-pipeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .v4-header {
        height: 64px;
    }
    .v4-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--v4-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 20px;
        display: none;
    }
    .v4-nav.is-open {
        display: flex;
    }
    .v4-nav__mobile-link {
        display: block;
    }
    .v4-menu-toggle {
        display: flex;
    }
    .v4-grid-3,
    .v4-pricing-grid,
    .v4-pipeline {
        grid-template-columns: 1fr;
    }
    .v4-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }
    .v4-footer__inner {
        flex-direction: column;
        gap: 32px;
    }
    .v4-footer__links {
        flex-wrap: wrap;
        gap: 32px;
    }
    .v4-telemetry-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .v4-metric-tile {
        padding: 12px 10px;
    }
    .v4-metric-tile__label {
        font-size: 10px;
        letter-spacing: 0.05em;
    }
    .v4-metric-tile__val {
        font-size: 18px;
    }
}
