/* === BASE === */
:root {
    --bg: #0a0a0c;
    --bg-elev: #111116;
    --bg-card: #16161d;
    --accent: #00d084;
    --accent-dim: rgba(0, 208, 132, 0.1);
    --text: #e8e8ec;
    --text-dim: #a0a0a8;
    --text-muted: #606068;
    --border: #25252c;
    --glow: rgba(0, 208, 132, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 208, 132, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 208, 132, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: glow 4s ease-in-out infinite;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -150px;
    right: -100px;
    opacity: 0.15;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: #6366f1;
    bottom: -50px;
    left: -50px;
    opacity: 0.1;
    animation-delay: 2s;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 208, 132, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
    width: fit-content;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--accent), #00ff9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === TERMINAL === */
.terminal-wrapper {
    animation: float 6s ease-in-out infinite;
}

.terminal {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.5),
        0 0 40px var(--glow);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.term-btn.red { background: #ff5f56; }
.term-btn.yellow { background: #ffbd2e; }
.term-btn.green { background: #27c93f; }

.terminal-header span {
    margin-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.term-line {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.term-line.output {
    padding-left: 20px;
    opacity: 0.8;
}

.prompt {
    color: var(--accent);
}

.cmd {
    color: var(--text);
}

.success {
    color: var(--accent);
}

.info {
    color: #6366f1;
}

.cursor {
    animation: blink 1s infinite;
}

/* === SOURCES === */
.sources {
    padding: 40px 0;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.sources-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.sources-track {
    display: flex;
    gap: 48px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.sources-track span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.3s;
}

.sources-track span:hover {
    color: var(--accent);
}

/* === INTRO === */
.intro {
    padding: 100px 0 60px;
    text-align: center;
}

.intro h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.intro-sub {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
}

/* === SERVICES === */
.services {
    padding: 60px 0 100px;
}

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

.service-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 208, 132, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px var(--glow);
}

.service-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 12px;
    opacity: 0.7;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* === PROCESS === */
.process {
    padding: 100px 0;
    background: var(--bg-elev);
}

.process h2 {
    font-size: 2rem;
    margin-bottom: 48px;
    text-align: center;
}

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

.process-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}

.process-item:hover {
    border-color: rgba(0, 208, 132, 0.2);
}

.process-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    min-width: 24px;
}

.process-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.process-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* === USE CASES === */
.usecases {
    padding: 100px 0;
}

.usecases h2 {
    font-size: 2rem;
    margin-bottom: 48px;
    text-align: center;
}

.usecase-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usecase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.usecase-item:hover {
    border-color: rgba(0, 208, 132, 0.3);
    padding-left: 40px;
    padding-right: 24px;
}

.usecase-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.usecase-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 600px;
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s;
}

.usecase-item:hover .arrow {
    color: var(--accent);
    transform: translateX(8px);
}

/* === COMPARISON === */
.comparison {
    padding: 100px 0;
    background: var(--bg-elev);
}

.comparison h2 {
    font-size: 2rem;
    margin-bottom: 48px;
    text-align: center;
}

.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    background: rgba(255,255,255,0.02);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

th.highlight {
    background: rgba(0, 208, 132, 0.08);
    color: var(--accent);
}

td {
    font-size: 0.9rem;
}

td.feature {
    font-weight: 500;
}

td.highlight {
    background: rgba(0, 208, 132, 0.03);
}

tr:last-child td {
    border-bottom: none;
}

tr {
    transition: background 0.2s;
}

tr:hover {
    background: rgba(255,255,255,0.02);
}

.yes {
    color: var(--accent);
    margin-right: 6px;
}

.no {
    color: var(--text-muted);
    margin-right: 6px;
}

/* === CTA === */
.cta {
    padding: 120px 0;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 4px 20px rgba(0, 208, 132, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 208, 132, 0.4);
}

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

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

/* === FOOTER === */
footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .terminal-wrapper {
        display: none;
    }
    
    .service-grid,
    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .service-grid,
    .process-list {
        grid-template-columns: 1fr;
    }
    
    .tags {
        gap: 8px;
    }
    
    .tag {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .usecase-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .arrow {
        align-self: flex-end;
    }
    
    .table-wrapper {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
