/* ===== CSS Reset & Variables ===== */
:root {
    --bg-dark: #071B2E; /* Deep space Sentry blue */
    --bg-darker: #040d17;
    --surface: rgba(10, 16, 26, 0.6);
    --surface-light: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --primary: #0099CC; /* Sentry Blue */
    --primary-hover: #007fae;
    --green: #10dc8a; /* Guard Green */
    --purple: #a78bfa; /* Intel Purple */
    --amber: #fbbf24; /* Response Amber */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, #0099CC, #10dc8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.glass-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(0, 153, 204, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(0, 153, 204, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: var(--surface-light);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 13, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 24px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 153, 204, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 153, 204, 0.1);
    border: 1px solid rgba(0, 153, 204, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Hero Visual (Mock Dashboard) */
.hero-visual {
    margin-top: 80px;
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid var(--border);
    display: block;
}

.glass-dashboard {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
}

.dash-header {
    background: rgba(0,0,0,0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.dash-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.dash-body {
    padding: 24px;
}

.stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.mock-stat {
    flex: 1;
    height: 80px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.pulse-green::after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; width: 40%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.pulse-red::after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; width: 80%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.pulse-blue::after { content: ''; position: absolute; bottom: 0; left: 0; height: 2px; width: 60%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.mock-chart {
    height: 200px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 120%;
    height: 2px;
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple);
    transform: rotate(-5deg);
    animation: drift 10s linear infinite;
}

.chart-line.offset {
    bottom: 80px;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    transform: rotate(2deg);
    animation: drift 15s linear infinite reverse;
}

@keyframes drift {
    0% { transform: translateX(-10%) rotate(-5deg); }
    100% { transform: translateX(-20%) rotate(-5deg); }
}

/* Timeline / Flow Section */
.flow-section {
    background: var(--bg-dark);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 32px;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 153, 204, 0.2);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding: 32px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.timeline-content p {
    color: var(--text-muted);
}

/* Modules Grid */
.modules-section {
    background: var(--bg-darker);
}

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

.module-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.module-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.module-icon.purple { background: rgba(167, 139, 250, 0.1); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.3); }
.module-icon.green { background: rgba(16, 220, 138, 0.1); color: var(--green); border: 1px solid rgba(16, 220, 138, 0.3); }
.module-icon.amber { background: rgba(251, 191, 36, 0.1); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.3); }

.module-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.module-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    align-self: flex-start;
}

.purple-tag { background: rgba(167, 139, 250, 0.2); color: var(--purple); }
.green-tag { background: rgba(16, 220, 138, 0.2); color: var(--green); }
.amber-tag { background: rgba(251, 191, 36, 0.2); color: var(--amber); }

.module-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex: 1;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
}

/* Pricing Section */
.pricing-section {
    background: var(--bg-dark);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-toggle span {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pricing-toggle span.active {
    background: var(--surface);
    color: var(--text-main);
    border-color: var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}

.pricing-card {
    padding: 40px 32px;
    position: relative;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 153, 204, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.price {
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.price .currency { font-size: 1.5rem; vertical-align: top; margin-top: 8px; display: inline-block; }
.price .amount { font-size: 3.5rem; font-weight: 700; color: var(--text-main); }
.price .period { font-size: 1rem; color: var(--text-muted); }

.tier-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    min-height: 44px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
}

/* Footer */
.footer {
    background: #02070e;
    padding: 80px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

/* Scroll Reveals */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .modules-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .timeline::before { left: 20px; }
    .timeline-icon { width: 40px; height: 40px; font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Demo Section */
.demo-section {
    background: var(--bg-dark);
}
.demo-container {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 40px;
}
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}
.form-group input, .form-group select {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(20, 20, 30, 0.6);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 153, 204, 0.2);
}
