/* ===== CSS Reset & Variables ===== */
:root {
    --bg-dark: #0a0a0a;       /* Deep black background */
    --bg-card: rgba(255, 255, 255, 0.03); /* Subtle card bg */
    --border-subtle: rgba(255, 255, 255, 0.08);

    --yellow: #FFD600;        /* Core accent yellow */
    --yellow-hover: #e5c000;
    
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

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

/* Background Glow */
.bg-glow {
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Typography Helpers */
.text-yellow {
    color: var(--yellow) !important;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Navbar ===== */
.navbar {
    padding: 2rem 0;
}

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

.brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* ===== Buttons ===== */
.btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--yellow);
    color: #111; /* Dark text for contrast */
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-yellow:hover {
    transform: translateY(-2px);
    background-color: var(--yellow-hover);
}

.btn-yellow .icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    color: var(--yellow);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.btn-yellow.large {
    font-size: 1.05rem;
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
}

.btn-yellow.large .icon-circle {
    width: 40px;
    height: 40px;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
}

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

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Reused Automation Card styling adapted to center */
.automation-showcase {
    margin-top: 6rem;
    width: 100%;
    max-width: 600px;
    text-align: left;
}

/* Terminal UI Overrides */
.automation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 0;
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 1.5rem;
}

.window-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }

.terminal-title {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 2rem 1.5rem;
    font-family: monospace;
    background: rgba(10, 10, 10, 0.6);
    min-height: 320px;
}

.activity-log {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-log li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.activity-log li.visible {
    opacity: 1;
    transform: translateX(0);
}

.log-time {
    color: #6b7280;
    margin-right: 10px;
}

.log-tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 10px;
    text-transform: uppercase;
}

.tag-critical { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.tag-diag { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.tag-system { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.tag-action { background: rgba(255, 214, 0, 0.15); color: var(--yellow); }
.tag-success { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

.log-msg {
    color: var(--text-main);
}

.terminal-cursor-line {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--yellow);
    animation: blink 1s infinite;
}

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

/* ===== Sections General ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

/* ===== Features ===== */
.features, .integrations-section, .steps-section, .process-section, .investigations-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border-subtle);
}

.investigation-showcase {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    text-align: left;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 214, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 214, 0, 0.1);
    color: var(--yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--yellow);
}

/* ===== Integrations ===== */
.integrations-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.integration-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.category-title h3 {
    font-size: 1.5rem;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.brand-card:hover {
    background: rgba(255, 214, 0, 0.1);
    border-color: rgba(255, 214, 0, 0.4);
    color: var(--yellow);
}

/* ===== Steps ===== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.step-card {
    position: relative;
    padding-top: 1rem;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--text-muted);
}

/* ===== Process Timeline ===== */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 12px;
}

.week-badge {
    display: inline-block;
    background: rgba(255, 214, 0, 0.1);
    color: var(--yellow);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-container {
    text-align: center;
}

/* ===== Footer ===== */
.site-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--yellow);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-col a {
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--yellow);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 214, 0, 0.2);
    border-radius: 16px;
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.email-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.email-input:focus {
    border-color: var(--yellow);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile hide for now */
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}