/* ========================================
   CYBER GUARDIAN - Website Styles
   Color Theme from Flutter App
   ======================================== */

:root {
    /* Primary Colors */
    --primary: #9B59B6;
    --primary-light: #B07CC6;
    --secondary: #8E44AD;
    --tertiary: #3498DB;

    /* Background Colors */
    --bg-dark: #0A0A0F;
    --bg-surface: #12121A;
    --bg-card: #1F1F2C;
    --bg-input: #14181F;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Status Colors */
    --success: #00D1B2;
    --warning: #FFC857;
    --error: #FF5C5C;
    --info: #00BCD4;

    /* Structural */
    --outline: #2B2F3A;
    --glow: rgba(155, 89, 182, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #9B59B6, #8E44AD);
    --gradient-hero: linear-gradient(180deg, #0A0A0F 0%, #12121A 50%, #0A0A0F 100%);

    /* Sizing */
    --nav-height: 70px;
    --container-max: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 12px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline);
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(155, 89, 182, 0.1);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 89, 182, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 89, 182, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanLine 6s linear infinite;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 2;
}

.logo-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.logo-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.logo-ring.ring-2 {
    width: 130px;
    height: 130px;
    border-color: rgba(142, 68, 173, 0.2);
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 16px;
    text-shadow: 0 0 40px var(--glow);
}

.tagline {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 10px auto 0;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--primary);
    background: rgba(155, 89, 182, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   TECHNOLOGY SECTION
   ======================================== */
.technology {
    background: var(--bg-dark);
}

.tech-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.tech-step {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 260px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-step:hover {
    border-color: var(--primary);
}

.step-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.tech-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tech-highlight {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all 0.3s ease;
}

.tech-highlight:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.tech-highlight h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tech-highlight p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tech-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    background: var(--bg-surface);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    padding: 28px;
}

.tech-card h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.tech-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-card li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.tech-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats {
    background: var(--bg-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-unit {
    font-size: 24px;
    color: var(--secondary);
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.stat-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   AI ASSISTANT SECTION
   ======================================== */
.ai-assistant {
    background: var(--bg-dark);
    overflow: hidden;
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-text h2 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 20px;
}

.ai-text > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.roadmap-notice {
    background: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--tertiary);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
}

.roadmap-notice strong {
    color: var(--tertiary);
}

/* Coming Soon tag style */
.ai-text .section-tag {
    background: rgba(52, 152, 219, 0.15);
    color: var(--tertiary);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.ai-features svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.ai-visual {
    display: flex;
    justify-content: center;
}

.chat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--outline);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.chat-header span {
    font-weight: 600;
    font-size: 14px;
}

.chat-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    line-height: 1.6;
    max-width: 90%;
}

.message.bot {
    background: var(--bg-surface);
    border: 1px solid var(--outline);
    align-self: flex-start;
}

.message.user {
    background: var(--gradient-primary);
    align-self: flex-end;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--bg-surface);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius);
    padding: 48px;
    text-align: center;
}

.download-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.download-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.download-card > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item a {
    color: var(--text-primary);
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 16px;
    font-style: italic;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--outline);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-brand img {
    width: 36px;
    height: 36px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.badge {
    font-size: 11px;
    padding: 6px 12px;
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--outline);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .ai-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .ai-visual {
        order: -1;
    }

    .tech-connector {
        display: none;
    }

    .tech-flow {
        flex-direction: column;
    }

    .tech-step {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--outline);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 36px;
    }
}
