:root {
    --bg-color: #05050a;
    --bg-darker: #020205;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.5);
    --secondary: #8b5cf6;
    --accent: #10b981;
    --surface: rgba(30, 41, 59, 0.5);
    --surface-border: rgba(255, 255, 255, 0.08);
    --danger: #ef4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

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

/* Background Glow Effect */
.glow-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 30%);
    pointer-events: none;
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 2rem; }
.p-4 { padding: 2rem; }
.bg-darker { background-color: var(--bg-darker); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #0284c7;
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--surface-border);
    transition: padding 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

/* Glass Panels & Cards */
.glass-panel, .card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card {
    padding: 2.5rem;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* Info Blocks */
.info-block {
    background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
    border-top: 2px solid var(--primary);
    padding: 2rem;
    border-radius: 8px;
}

.info-block h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-block p {
    color: var(--text-muted);
}

/* Use Case Box */
.usecase-box {
    padding: 3rem;
    border-left: 4px solid var(--secondary);
}

.usecase-box p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

/* Flow Diagram */
.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px dashed var(--surface-border);
}

.flow-step {
    text-align: center;
    width: 140px;
}

.flow-node {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 2px solid var(--surface-border);
    border-radius: 20%;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.flow-node.highlight {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.flow-node.primary {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    background: rgba(14, 165, 233, 0.1);
}

.flow-node.database {
    border-radius: 5px;
    border-color: var(--accent);
}

.flow-step span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 1.5rem;
    opacity: 0.5;
}

.flow-node:hover {
    transform: scale(1.05);
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 3rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
}

th, td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-border);
}

th {
    background: rgba(0, 0, 0, 0.4);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

td {
    color: #e2e8f0;
    font-size: 0.95rem;
}

td.positive {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.05);
}

td.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

/* Timeline */
.timeline {
    margin-top: 4rem;
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.85rem;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Feature List */
.feature-list {
    list-style-type: none;
}

.feature-list li {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--surface-border);
    color: var(--text-muted);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li strong {
    color: #fff;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.3);
}

.metric-value {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations & Intersection Observer Classes */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-element {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .flow-diagram {
        flex-direction: column;
    }
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    .hero-title {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
}
