/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #0f1629;
    --bg-tertiary: #151b2e;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-primary: #00ff88;
    --accent-secondary: #00d4ff;
    --accent-danger: #ff4444;
    --border-color: #1a2332;
    --gradient-start: #00ff88;
    --gradient-end: #00d4ff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.cta-button {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--bg-primary) !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    width: 100%;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* Architecture Section */
.architecture {
    background-color: var(--bg-secondary);
}

.architecture-diagram {
    max-width: 900px;
    margin: 0 auto;
}

.arch-layer {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.arch-box {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 20px 32px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

.arch-box:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.2);
}

.arch-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--accent-primary);
    margin: 10px 0;
    animation: pulse 2s ease-in-out infinite;
}

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

.arch-center {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.arch-core {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--bg-primary);
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

.arch-core-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.arch-core-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Integrations Section */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.integration-item {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.integration-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
}

/* Graph Section */
.graph-section {
    background-color: var(--bg-secondary);
}

.graph-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    overflow: hidden;
}

#security-graph {
    width: 100%;
    height: auto;
}

.node {
    fill: var(--bg-tertiary);
    stroke: var(--accent-primary);
    stroke-width: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 255, 136, 0.3));
    animation: nodePulse 3s ease-in-out infinite;
}

.node-leetsecure {
    fill: var(--accent-primary);
    stroke: var(--accent-primary);
    stroke-width: 4;
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.path-line {
    stroke-dasharray: 5,5;
    animation: dashMove 3s linear infinite;
    opacity: 0.7;
}

@keyframes dashMove {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 20; }
}

/* Comparison Table */
.comparison {
    background-color: var(--bg-primary);
}

.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    background-color: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-color);
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.table-row:hover {
    background-color: var(--bg-secondary);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 24px;
    border-right: 1px solid var(--border-color);
}

.table-cell:last-child {
    border-right: none;
}

.table-cell.feature {
    font-weight: 600;
    color: var(--accent-primary);
}

.table-cell.highlight {
    background-color: rgba(0, 255, 136, 0.1);
    border-left: 3px solid var(--accent-primary);
}

.table-header .table-cell {
    font-weight: 700;
    font-size: 18px;
    padding: 20px 24px;
}

.table-header .table-cell.highlight {
    background-color: rgba(0, 255, 136, 0.15);
}

/* Chat Demo Section */
.chat-demo {
    background-color: var(--bg-secondary);
}

.chat-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background-color: var(--bg-primary);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.chat-header-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

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

.chat-header-text {
    font-weight: 600;
    color: var(--accent-primary);
}

.chat-messages {
    padding: 24px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 24px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.assistant {
    justify-content: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 12px;
    line-height: 1.6;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--bg-primary);
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .message-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message-content ul {
    margin: 12px 0 0 20px;
}

.message-content li {
    margin: 8px 0;
}

.chat-input-area {
    padding: 16px 24px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.chat-input-area input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.chat-input-area input::placeholder {
    color: var(--text-secondary);
}

/* Contact Form */
.contact {
    background-color: var(--bg-primary);
}

.lead-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.form-message.error {
    display: block;
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--accent-danger);
    color: var(--accent-danger);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .nav-links {
        gap: 16px;
        font-size: 13px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-stats {
        gap: 40px;
    }

    .arch-layer {
        flex-direction: column;
        align-items: center;
    }

    .arch-box {
        width: 100%;
        max-width: 300px;
    }

    .integration-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
    }

    .table-cell {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .table-cell:last-child {
        border-bottom: none;
    }

    .table-header .table-cell {
        border-bottom: 2px solid var(--border-color);
    }

    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }
}

