/* SentinelAI Presentation & Interactive Demo Web App (`index.css`) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #090d16;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-border: rgba(51, 65, 85, 0.5);
    --accent-blue: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-amber: #f59e0b;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-max-width: 1200px;
}

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

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

/* Background Glowing Orbs */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}
.glow-1 { top: -100px; left: -100px; background: radial-gradient(circle, #6366f1, #38bdf8); }
.glow-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, #10b981, #6366f1); }

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-shield {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 1.2rem;
}

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

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

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

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

/* Language Switcher Control */
.lang-switcher {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-btn.active {
    background: var(--accent-indigo);
    color: #ffffff;
}

.flag-icon {
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 36px;
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Feature Cards Grid */
.features-section {
    padding: 40px 0 60px;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, border-color 0.2s;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Interactive Sandbox Demo Section */
.sandbox-section {
    padding: 60px 0;
    background: rgba(15, 23, 42, 0.4);
    border-top: 1px solid var(--bg-card-border);
    border-bottom: 1px solid var(--bg-card-border);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
}

.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.toggle-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active-a {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
}

.toggle-btn.active-b {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
}

.demo-chat-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
    overflow: hidden;
}

.chat-header {
    background: rgba(30, 41, 59, 0.8);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bg-card-border);
}

.chat-messages {
    padding: 24px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
}

.msg-user {
    align-self: flex-end;
    background: var(--accent-indigo);
    color: #ffffff;
}

.msg-bot-vuln {
    align-self: flex-start;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fecdd3;
}

.msg-bot-safe {
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

/* Pricing Section - Clean Flexbox Layout (No Text Overlap!) */
.pricing-section {
    padding: 60px 0;
}

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

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.price-card.featured {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.price-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 16px 0 8px;
    color: var(--accent-blue);
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin: 24px 0 32px;
}

.price-features li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-features li::before {
    content: "✓ ";
    color: var(--accent-emerald);
    font-weight: bold;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bg-card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Interactive Demo Playground Styles */
.preset-pills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.preset-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--bg-card-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.preset-btn:hover, .preset-btn.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-indigo);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.demo-input-bar {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    gap: 12px;
}

.demo-input-bar input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--bg-card-border);
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.demo-input-bar input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

.dual-chat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.vuln-box {
    border-color: rgba(244, 63, 94, 0.4) !important;
    background: rgba(15, 23, 42, 0.95);
}

.safe-box {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: rgba(15, 23, 42, 0.95);
}

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

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
    white-space: nowrap;
}

.nav-links a {
    white-space: nowrap;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--bg-card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Comprehensive Responsive Media Queries */
@media (max-width: 1100px) {
    .nav-links {
        gap: 14px;
    }
    .nav-links a {
        font-size: 0.88rem;
    }
    .nav-right {
        gap: 12px;
    }
    .btn-primary {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
    .pitch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-right {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(9, 13, 22, 0.96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--bg-card-border);
        flex-direction: column;
        padding: 24px 20px;
        gap: 18px;
        display: none;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    }

    .nav-right.mobile-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .nav-links a {
        font-size: 1.05rem;
    }

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

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

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

    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 550px) {
    nav {
        padding: 12px 16px;
    }

    .hero {
        padding: 36px 0 24px;
    }

    .badge-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
        white-space: normal;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions a {
        text-align: center;
        width: 100%;
    }

    .price-card {
        padding: 24px 18px;
    }

    .demo-chat-box {
        margin: 0;
        border-radius: 12px;
    }

    .chat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .toggle-btn {
        width: 100%;
        font-size: 0.85rem;
    }
}
