:root {
    --bg: #0a0b10;
    --bg-elev: #10121a;
    --bg-muted: #0d0f16;
    --surface: #151824;
    --surface-2: #1c2030;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #e8ecf4;
    --text-muted: #9aa3b5;
    --text-dim: #6b7387;
    --accent: #6366f1;
    --accent-2: #22d3ee;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.mono { font-family: 'JetBrains Mono', monospace; font-size: .82rem; }

.eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
    padding: .35em .75em;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .95em 1.6em;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    font-family: inherit;
}
.btn-sm { padding: .6em 1.2em; font-size: .88rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -8px var(--accent-glow); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,.25); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 11, 16, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 70px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #0a0b10;
    font-weight: 800;
    font-size: .85rem;
    box-shadow: 0 6px 20px -6px var(--accent-glow);
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 20px;
}
.main-nav a {
    font-size: .93rem;
    color: var(--text-muted);
    font-weight: 500;
}
.main-nav a:hover { color: var(--text); }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 12vw, 140px);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.28), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(34, 211, 238, 0.18), transparent 60%),
        radial-gradient(ellipse 40% 30% at 20% 40%, rgba(168, 85, 247, 0.12), transparent 60%);
    pointer-events: none;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 80%);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: start;
}
.hero-text { max-width: 600px; }
.hero-text h1 {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    margin-bottom: .5em;
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin-left: auto;
    margin-top: -40px;
}
.hv-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(99,102,241,.35), transparent 60%);
    filter: blur(40px);
    z-index: 0;
    animation: pulse 6s ease-in-out infinite;
}
.hv-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}
.hv-svg g[filter] circle {
    animation: nodePulse 3s ease-in-out infinite;
}
.hv-svg g[filter] circle:nth-child(2) { animation-delay: .3s; }
.hv-svg g[filter] circle:nth-child(3) { animation-delay: .6s; }
.hv-svg g[filter] circle:nth-child(4) { animation-delay: .9s; }
.hv-svg g[filter] circle:nth-child(5) { animation-delay: 1.2s; }
.hv-svg g[filter] circle:nth-child(6) { animation-delay: 1.5s; }
.hv-svg g[filter] circle:nth-child(7) { animation-delay: 1.8s; }

@keyframes pulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
@keyframes nodePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
    .hv-svg, .hv-glow, .hv-svg g[filter] circle { animation: none; }
}
.lead {
    font-size: clamp(.82rem, 1vw, .92rem);
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}
.lead strong,
.about-grid p strong {
    color: var(--text);
    font-weight: 600;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 2.5rem;
}
.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.hero-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s ease, border-color .2s ease;
}
.hero-highlights li:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}
.hero-highlights .hl-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.12));
    border: 1px solid var(--border);
    color: var(--accent-2);
}
.hero-highlights .hl-icon svg { width: 18px; height: 18px; }
.hero-highlights div { display: flex; flex-direction: column; gap: 1px; }
.hero-highlights strong {
    color: var(--text);
    font-weight: 600;
    font-size: .92rem;
}
.hero-highlights span {
    color: var(--text-muted);
    font-size: .82rem;
    line-height: 1.4;
}
.hero-stats {
    display: flex;
    gap: clamp(24px, 5vw, 60px);
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.02em;
}
.stat-label {
    font-size: .88rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
}

/* Sections */
.section {
    padding: clamp(80px, 10vw, 120px) 0;
    position: relative;
}
.section-muted { background: var(--bg-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-sub { font-size: 1.05rem; color: var(--text-muted); }

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.service-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.12), transparent 50%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(34,211,238,.1));
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent-2);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { margin: 0; font-size: .95rem; }

/* Industries */
.industries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.industry-card {
    padding: 36px 32px;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(21,24,36,.4) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}
.industry-card::after {
    content: "";
    position: absolute;
    top: 0; left: 32px; right: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 0 0 4px 4px;
}
.industry-card h3 { color: var(--text); }
.industry-card p { margin: 0; }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-grid > div:first-child h2 { margin-top: .4em; }
.check-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 12px;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: .95rem;
    color: var(--text);
}
.check-list li::before {
    content: "✓";
    color: var(--accent-2);
    font-weight: 700;
    flex-shrink: 0;
}
.about-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-card {
    padding: 26px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .2s ease, border-color .2s ease;
}
.about-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.about-number {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: var(--accent-2);
    margin-bottom: 14px;
}
.about-card h4 { font-size: 1.05rem; margin-bottom: .35em; }
.about-card p { margin: 0; font-size: .9rem; }

/* CTA / Contact */
.cta-section { background: var(--bg-muted); border-top: 1px solid var(--border); }
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 2rem;
}
.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-width: 200px;
    transition: border-color .2s ease;
}
a.contact-item:hover { border-color: var(--border-strong); }
.contact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.contact-value { font-weight: 600; color: var(--text); }

.contact-form {
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 16px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .88rem;
    color: var(--text-muted);
    font-weight: 500;
}
.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.contact-form textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.contact-form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: .78rem; color: var(--text-dim); margin: 0; }

/* Footer */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-brand p { max-width: 320px; font-size: .92rem; margin-top: 14px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.footer-cols h5 {
    font-size: .82rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
    font-weight: 600;
}
.footer-cols a {
    display: block;
    color: var(--text-muted);
    font-size: .92rem;
    padding: 4px 0;
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: .82rem;
    color: var(--text-dim);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
}

@media (max-width: 900px) {
    .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-elev); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px 24px; }
    .main-nav.open { display: flex; }
    .site-header .btn { display: none; }
    .nav-toggle { display: flex; }
    .about-grid, .cta-inner, .footer-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .about-side { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .hero-stats { gap: 24px; }
    .stat { flex: 1 1 auto; min-width: 120px; }
    .hero-highlights { grid-template-columns: 1fr; }
}
