:root {
    --bg-main: #04060d;
    --bg-card: #0b0f1f;
    --accent: #38bdf8;
    --accent-soft: #0ea5e9;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(56,189,248,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(91,140,255,.14), transparent),
        radial-gradient(700px 400px at 85% 15%, rgba(91,140,255,.10), transparent),
        linear-gradient(180deg, #05070F, #070B18);
    color: var(--text-main);
    overflow-x: hidden;
}

nav, main, footer {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

nav {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
}

.nav-links a {
    margin-left: 1.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

.hero {
    margin-top: 4rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #ffffff, #9CB6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    margin-top: 1.5rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
}

.cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #4F8CFF, #2563EB);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0 0 transparent;
    transition: all .3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--accent);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.code-window {
    background: linear-gradient(180deg, #0B1022, #070A17);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0,0,0,.6),
        inset 0 0 0 1px rgba(255,255,255,.03);
}

.code-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1rem;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    margin-left: auto;
    font-size: .85rem;
    color: var(--text-muted);
}

.code-window pre {
    margin: 0;
    padding: 1.6rem;
    font-size: .95rem;
    line-height: 1.6;
    overflow-x: auto;
}

.kw { color: #60A5FA; }
.fn { color: #38BDF8; }
.st { color: #34D399; }

.stats {
    margin: 7rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 2.5rem;
    text-align: center;
}

.stat h3 { font-size: 2.2rem; color: var(--accent); }
.stat p { margin-top: .4rem; color: var(--text-muted); }

.services h2, .process h2, .blog-preview h2 { font-size: 2rem; margin-bottom: 2.5rem; }
.service-grid, .process-grid, .blog-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }

.service-card, .process-step, .blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    transition: all .3s ease;
}

.service-card:hover, .blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.process { margin: 7rem 0; }

.process-step span { font-size: .85rem; font-weight: 700; color: var(--accent); }

.blog-preview { margin: 7rem 0; }

.blog-card h3 { margin-bottom: .5rem; }
.blog-card p { color: var(--text-muted); }

.cta-final { margin: 8rem 0; text-align: center; }
.cta-final p { margin: 1rem 0 2rem; color: var(--text-muted); }

footer { border-top: 1px solid var(--border); padding: 2.5rem; text-align: center; color: var(--text-muted); }

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 3rem; }
    .cta { flex-direction: column; align-items: flex-start; }
}
