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

:root {
    --bg:        #0a0a0f;
    --surface:   #12121a;
    --border:    rgba(255,255,255,0.08);
    --purple:    #7c5cfc;
    --purple-dim:#4b3799;
    --blue:      #2a52d4;
    --text:      #e8e6f0;
    --muted:     #6e6b80;
    --glow:      rgba(124,92,252,0.18);
}

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(42,82,212,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(124,92,252,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 3rem;
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--purple-dim), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.nav-logo-mark svg {
    width: 16px; height: 16px;
    fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 1.8;
}

.nav-logo-mark img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: none;
}

.nav-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--text);
}

.btn-contact {
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-contact:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 3rem;
    overflow: hidden;
    min-height: 420px;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
    to right,
    var(--bg) 0%,
    var(--bg) 30%,
    rgba(10,10,15,0.6) 55%,
    transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 860px;
    width: 100%;
}

.tagline-block h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.1rem;
}

.tagline-block h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline-block p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 400px;
}

.section-wrap {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 5rem 3rem;
}

.section-inner {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

.section-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.6rem 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    border-color: rgba(124,92,252,0.4);
    box-shadow: 0 0 28px rgba(124,92,252,0.08);
}

.service-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    flex-shrink: 0;
    margin-top: 0.45rem;
}

.service-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.2rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue));
}

.stat-card:hover {
    border-color: rgba(124,92,252,0.4);
    box-shadow: 0 0 28px rgba(124,92,252,0.08);
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(90deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.55;
}

footer {
      position: relative;
      z-index: 1;
      padding: 1.6rem 3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-top: 1px solid var(--border);
      gap: 2rem;
      flex-wrap: wrap;
    }

footer a, footer span {
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover { color: var(--purple); }

@media (max-width: 680px) {
    nav { padding: 1rem 1.5rem; }
    main { padding: 3rem 1.5rem 4rem; }
    footer { padding: 1.4rem 1.5rem; }
}

.fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s forwards;
}
.fade { animation-delay: 0.2s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
    nav { padding: 1rem 1.5rem; }
    .hero { padding: 4rem 1.5rem; }
    .hero::after {
    background: linear-gradient(
        to bottom,
        var(--bg) 0%,
        rgba(10,10,15,0.5) 40%,
        transparent 100%
    );
    }
    .section-wrap { padding: 3.5rem 1.5rem; }
    .services-grid,
    .stats-grid { grid-template-columns: 1fr; }
    footer { padding: 1.4rem 1.5rem; }
}