:root {
    --bg: #050c1e;
    --surface: rgba(7, 19, 43, 0.85);
    --surface-strong: rgba(15, 23, 42, 0.95);
    --border: rgba(255, 255, 255, 0.06);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --accent: #8b5cf6;
    --accent-strong: #6366f1;
    --glow: rgba(139, 92, 246, 0.3);
}

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

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.25), transparent 45%),
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), transparent 35%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    inset: 0 auto auto 0;
    width: 100%;
    background: rgba(5, 12, 30, 0.8);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 0;
    gap: 1rem;
}

.logo img {
    height: 34px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

#nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    margin: 0;
    margin-left: auto;
    order: 1;
}

#nav-menu li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
}

#nav-menu li a::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

#nav-menu li a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    order: 2;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
}

.hamburger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 50%;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--text);
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-2px, 2px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-2px, -2px);
}

main {
    padding-top: 120px;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(5, 12, 30, 0.45);
    backdrop-filter: blur(18px);
}

.section-illustration {
    width: min(360px, 100%);
    margin: 2rem auto 3rem;
}

.section-illustration svg {
    width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.7rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.hero {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(15, 23, 42, 0.95)),
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.35), transparent 55%);
    border-radius: 32px;
    margin: 0 20px;
    padding: 5rem 0;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 20% auto auto 60%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    color: white;
}

.hero-content .subheadline {
    color: var(--text);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-graphic {
    display: grid;
    place-items: center;
}

.hero-graphic svg {
    width: min(340px, 80vw);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.35));
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.problem-solution {
    padding: 0;
}

.problem-solution .section-card {
    padding: 3rem;
    margin-top: 2rem;
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.problem-copy {
    max-width: 560px;
}

.problem,
.solution {
    padding: 2.5rem;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
    border: 1px solid var(--border);
}

.problem h3,
.solution h3 {
    margin-bottom: 0.75rem;
}

.problem p,
.solution p {
    color: var(--muted);
}

.problem-illustration {
    align-self: center;
}

.services,
.case-studies,
.process,
.team,
.pricing,
.testimonials,
.faq,
.contact {
    background: transparent;
}

.service-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-item,
.case-study,
.step,
.plan,
.testimonial,
.faq-item,
.team-member {
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    box-shadow: 0 20px 40px rgba(5, 12, 30, 0.5);
    transition: transform 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.service-item::before,
.case-study::before,
.step::before,
.plan::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.service-item h3,
.case-study h3,
.step h3,
.plan h3 {
    margin-bottom: 0.5rem;
    font-size: 1.35rem;
}

.service-icon,
.case-icon,
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.service-item p,
.case-study p,
.step p,
.plan p,
.testimonial p,
.team-member p {
    color: var(--muted);
}

.service-item:hover,
.case-study:hover,
.step:hover,
.plan:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
}

.case-studies-grid,
.process-steps,
.pricing-plans,
.team-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.case-studies-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.process-steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-plans {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.testimonial {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.9));
}

.testimonial cite {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.faq {
    padding-bottom: 4rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}

.faq-question {
    background: rgba(15, 23, 42, 0.95);
    border: none;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--muted);
}

.faq-item.open .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
}

.contact form {
    display: grid;
    gap: 1rem;
    background: var(--surface-strong);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(5, 12, 30, 0.55);
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35);
}

button {
    border: none;
    cursor: pointer;
}

.contact button {
    padding: 0.95rem 2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.contact button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.45);
}

footer {
    background: rgba(5, 12, 30, 0.95);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.badge {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

@media (max-width: 960px) {
    nav {
        flex-wrap: wrap;
    }

    #nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    nav {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.75rem;
    }

    .logo {
        grid-column: 1;
        justify-self: start;
    }

    .nav-cta {
        grid-column: 2;
        justify-self: center;
        position: static;
        transform: none;
        order: 1;
    }

    .hamburger {
        grid-column: 3;
        display: flex;
        order: 2;
        margin-left: 0;
    }

    #nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(5, 12, 30, 0.95);
        gap: 1rem;
        padding: 1.5rem 0;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1001;
        order: 3;
    }

    #nav-menu.active {
        display: flex;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    section {
        padding: 4rem 0;
    }

    .section-card {
        padding: 2rem;
    }

    .hero {
        margin: 0 10px;
    }
}
