:root {
    --bg: #0b0d10;
    --surface: #12161b;
    --surface-2: #181d23;
    --text: #f4f6f8;
    --muted: #a7afb9;
    --accent: #7c5cff;
    --accent-light: #a894ff;
    --border: rgba(255,255,255,.09);
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(92%, var(--max-width));
    margin-inline: auto;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11,13,16,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.03em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    font-size: .95rem;
    transition: color .2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -180px;
    top: 10%;
    background: var(--accent);
    opacity: .12;
    filter: blur(100px);
    border-radius: 50%;
}

.hero-content {
    max-width: 850px;
    padding: 100px 0;
    position: relative;
}

.eyebrow {
    color: var(--accent-light);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: .98;
    letter-spacing: -.06em;
    max-width: 900px;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero-text {
    max-width: 650px;
    margin-top: 1.75rem;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 1.3rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-light);
}

.btn-secondary {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255,255,255,.02);
}

/* Sections */
.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 3rem;
}

.section h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.section-heading > p:last-child,
.about p,
.contact-copy > p {
    color: var(--muted);
    margin-top: 1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    min-height: 260px;
    transition: transform .2s ease, border-color .2s ease;
}

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

.icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(124,92,255,.13);
    color: var(--accent-light);
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: .65rem;
}

.service-card p {
    color: var(--muted);
}

/* About */
.about {
    background: var(--surface);
    border-block: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about p + p {
    margin-top: 1rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 5rem;
}

.email-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-light);
    font-weight: 700;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.contact-form form {
    display: grid;
    gap: .65rem;
}

.contact-form label {
    font-size: .9rem;
    font-weight: 700;
    margin-top: .4rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    color: var(--text);
    padding: .9rem 1rem;
    font: inherit;
    outline: none;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
}

.notice {
    padding: .8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.success {
    background: rgba(50, 200, 120, .12);
    border: 1px solid rgba(50, 200, 120, .3);
}

.error {
    background: rgba(255, 80, 80, .12);
    border: 1px solid rgba(255, 80, 80, .3);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-size: .85rem;
}

.footer-inner a {
    color: var(--text);
}

/* Responsive */
@media (max-width: 800px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 1rem 4%;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-content {
        padding: 80px 0;
    }

    .services-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .about-grid,
    .contact-grid {
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .footer-inner {
        padding: 1.25rem 0;
        flex-direction: column;
        align-items: flex-start;
    }
}
