/* ============================================
   ClipShield 2.0 - TACTICAL DEFENSE THEME
   Military-Grade / Cyber-Security Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* --- PALETTE: VOID & NEON --- */
    --bg-void: #030304;
    --bg-panel: #0a0a0f;
    --bg-grid: #0f0f16;
    
    --neon-blue: #00f3ff;
    --neon-green: #00ff9d;
    --neon-red: #ff2a2a;
    --neon-amber: #ffae00;

    --text-primary: #ffffff;
    --text-dim: #8892b0;
    --text-mono: #64ffda;

    /* --- BORDERS & GLOWS --- */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-active: rgba(0, 243, 255, 0.5);
    --glow-blue: 0 0 10px rgba(0, 243, 255, 0.3);
    --glow-green: 0 0 10px rgba(0, 255, 157, 0.3);

    /* --- TYPOGRAPHY --- */
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* --- DIMENSIONS --- */
    --container: 1200px;
    --nav-height: 80px;
}

/* ================== BASE ================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-void);
}

body {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; /* Grid Lines */
    background-position: center top;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.mono { font-family: var(--font-mono); }
.uppercase { text-transform: uppercase; letter-spacing: 1px; }

.gradient-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Glitch hover effect overlay */
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn:hover::before { left: 100%; }

.btn-primary {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

.btn-primary:hover {
    background: var(--neon-blue);
    color: var(--bg-void);
    box-shadow: 0 0 20px var(--neon-blue);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large { font-size: 16px; padding: 18px 36px; }

/* ================== NAVIGATION ================== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    height: var(--nav-height);
    background: rgba(3, 3, 4, 0.85); /* Blurred Glass */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -1px;
}

.logo-ai { color: var(--neon-blue); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--neon-blue); }

/* ================== HERO SECTION ================== */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* System Status Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border: 1px solid var(--neon-green);
    background: rgba(0, 255, 157, 0.05);
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 64px;
    line-height: 0.95;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 540px;
    margin-bottom: 48px;
    font-family: var(--font-mono);
}

.hero-actions {
    display: flex;
    gap: 24px;
    margin-bottom: 64px;
}

/* HUD Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.stat { display: flex; flex-direction: column; }
.stat-value {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ================== TERMINAL / HUD VISUAL ================== */
.hero-visual {
    position: relative;
}

.terminal-window {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--border-active);
    box-shadow: var(--glow-blue);
    border-radius: 0; /* Sharp corners */
    position: relative;
}

/* Decorative corner markers */
.terminal-window::before, .terminal-window::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--neon-blue);
    transition: 0.3s;
}
.terminal-window::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.terminal-window::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.terminal-header {
    background: rgba(0, 243, 255, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-active);
}

.terminal-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; background: #333; border-radius: 50%; opacity: 0.5; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neon-blue);
    text-transform: uppercase;
}

.terminal-body {
    padding: 30px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    color: var(--text-dim);
    height: 300px; /* Fixed height for consistency */
    overflow-y: auto; /* Enable scrolling */
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Terminal Lines */
.terminal-line { margin-bottom: 12px; display: flex; gap: 10px; }
.prompt { color: var(--neon-blue); }
.command { color: var(--text-primary); }
.success { color: var(--neon-green); }
.warning { color: var(--neon-red); }

.detection {
    border-left: 2px solid var(--neon-red);
    background: rgba(255, 42, 42, 0.05);
    padding: 8px 12px;
    margin: 16px 0;
    color: var(--neon-red);
}

/* ================== WORKFLOW / LAYERS ================== */
.workflow { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 80px; }

.section-title {
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.section-subtitle {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 14px;
}

.workflow-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Connecting Line */
.workflow-line {
    position: absolute;
    top: 60px; left: 0; width: 100%; height: 1px;
    background: var(--border-subtle);
    z-index: 0;
}

.workflow-step { position: relative; z-index: 1; }

.step-number {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    background: var(--bg-void);
    padding: 4px 12px;
    border: 1px solid var(--neon-blue);
    width: fit-content;
    margin-bottom: 24px;
    font-size: 12px;
}

.step-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    height: 100%;
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: var(--glow-blue);
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 18px;
    text-transform: uppercase;
}

.step-card p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
    font-family: var(--font-mono);
    line-height: 1.5;
}

.step-icon .material-symbols-outlined { font-size: 32px; color: var(--text-primary); margin-bottom: 16px; }

.tech-stack span {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-right: 6px;
}

/* ================== THREAT GRID ================== */
.features { background: #050508; padding: 120px 0; border-top: 1px solid var(--border-subtle); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-void);
    border: 1px solid var(--border-subtle);
    padding: 32px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Hover "Scan" Effect */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: var(--neon-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s;
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card:hover { border-color: var(--neon-green); }

.feature-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
}

.feature-card h3 { font-size: 18px; margin-bottom: 12px; text-transform: uppercase; }
.feature-card p { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }


/* ================== DEPLOY SECTION ================== */
.download { padding: 120px 0; border-top: 1px solid var(--border-subtle); }

.download-grid-launch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.download-card-launch {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card-launch:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.02);
}

.os-icon { margin-bottom: 24px; color: var(--text-primary); transform: scale(1.5); }
.download-card-launch h4 { margin-bottom: 8px; color: var(--text-primary); }
.version-tag { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-bottom: 24px; display: block; }
.btn-text { font-family: var(--font-mono); color: var(--neon-blue); font-weight: 700; font-size: 12px; letter-spacing: 1px; }


/* ================== MOBILE ================== */
@media (max-width: 900px) {
    .hero .container, .workflow-container, .features-grid, .download-grid-launch {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 42px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .workflow-line { display: none; }
}
/* ================== COMPLIANCE SECTION ================== */
.compliance {
    padding: 120px 0;
    background: var(--bg-grid);
    position: relative;
    border-top: 1px solid var(--border-subtle);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.cert-card {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--neon-blue);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.cert-title {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.cert-id {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.cert-body {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

.cert-status {
    display: inline-block;
    margin-top: 16px;
    color: var(--neon-green);
    font-size: 10px;
    border: 1px solid var(--neon-green);
    padding: 2px 8px;
    text-transform: uppercase;
}

/* ================== INTEL BRIEF (Spec Sheet) ================== */
.intel-brief {
    padding: 120px 0;
    background: var(--bg-void);
    border-top: 1px solid var(--border-subtle);
}

.spec-sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.model-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-active);
    padding: 40px;
    position: relative;
}

.model-card::after {
    content: 'TOP SECRET // NOFORN';
    position: absolute;
    top: -10px; right: 20px;
    background: var(--bg-void);
    color: var(--neon-red);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 0 10px;
    border: 1px solid var(--neon-red);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 4px;
}

.spec-key { color: var(--text-dim); font-family: var(--font-mono); font-size: 12px; }
.spec-val { color: var(--neon-blue); font-family: var(--font-mono); font-size: 12px; }

/* ================== FIELD MANUAL (FAQ) ================== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-grid);
    border-top: 1px solid var(--border-subtle);
}

.faq-terminal {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 32px;
    border-left: 2px solid var(--border-subtle);
    padding-left: 20px;
}

.faq-q {
    color: var(--neon-amber);
    font-family: var(--font-mono);
    margin-bottom: 8px;
    font-size: 14px;
}

.faq-a {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
}

/* ================== PERFORMANCE SECTION (NEW) ================== */
.performance-section {
    padding: 120px 0;
    background: var(--bg-void);
    border-top: 1px solid var(--border-subtle);
}

.hud-panel {
    background: rgba(10, 10, 15, 0.8);
    border: 1px solid var(--border-active);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.05);
}

.hud-panel::before {
    content: 'LIVE TELEMETRY // VERIFIED';
    position: absolute;
    top: 0; left: 0;
    background: var(--neon-blue);
    color: var(--bg-void);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 12px;
    font-weight: 700;
}

.chart-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-title {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bar-group { margin-bottom: 20px; }

.bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.bar-track {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 10px;
    justify-content: flex-end;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--bg-void);
    width: 0; /* Animate this */
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fill-cloud {
    background: var(--neon-red);
    width: 90%; /* Representative */
    color: white;
}

.fill-local {
    background: var(--neon-green);
    width: 5%; /* Representative of 17ms vs 300ms */
    box-shadow: 0 0 15px var(--neon-green);
}

.live-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-box {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    text-align: center;
}

.metric-val {
    font-size: 32px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.metric-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.verified-tag {
    color: var(--neon-green);
    font-size: 10px;
    margin-top: 8px;
    display: block;
    font-family: var(--font-mono);
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-subtle);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.price-card.featured {
    border-color: var(--neon-green);
    background: rgba(0, 255, 157, 0.03);
}

.price-card.featured:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.1);
}

.tier-badge {
    background: var(--bg-grid);
    border: 1px solid var(--border-active);
    color: var(--text-dim);
    font-size: 10px;
    padding: 5px 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 20px;
}

.price-card.featured .tier-badge {
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.price-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.price-period {
    color: var(--text-dim);
    font-size: 14px;
    font-family: var(--font-mono);
}

.feature-list {
    list-style: none;
    margin: 40px 0;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.feature-list li .material-symbols-outlined {
    font-size: 18px;
    color: var(--neon-green);
}

.feature-list li.disabled {
    color: var(--text-dim);
    opacity: 0.5;
}

.feature-list li.disabled .material-symbols-outlined {
    color: var(--text-dim);
    content: "close"; 
}

.btn-price {
    width: 100%;
    text-align: center;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border-active);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-price:hover {
    background: var(--neon-blue);
    color: #000;
    border-color: var(--neon-blue);
}

.price-card.featured .btn-price {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
}

.price-card.featured .btn-price:hover {
    background: #fff;
    border-color: #fff;
}
