:root {
    --bg: #050b16;
    --bg-soft: #0b1220;
    --panel: rgba(11, 18, 32, 0.92);
    --panel-strong: rgba(19, 30, 52, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #edf3ff;
    --muted: #b8c5d9;
    --primary: #7c9cff;
    --primary-2: #89f1d7;
    --accent: #b794ff;
    --shadow: 0 24px 60px rgba(12, 16, 28, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124, 156, 255, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(137, 241, 215, 0.12), transparent 30%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    z-index: 30;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--primary-2), var(--primary), var(--accent));
    box-shadow: 0 0 12px rgba(137, 241, 215, 0.55);
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5, 11, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

header.is-scrolled {
    background: rgba(5, 11, 22, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #061522;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(124, 156, 255, 0.35);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(19, 30, 52, 0.7);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
}

.nav-links a:not(.btn-primary):hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    color: #08131c;
    box-shadow: 0 18px 36px rgba(124, 156, 255, 0.28);
}

.nav-links .btn-primary {
    color: #171616;
}

.btn-secondary {
    background: rgba(15, 23, 38, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    transform: translateY(-2px);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 20px 42px rgba(124, 156, 255, 0.38);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(137, 241, 215, 0.38);
}

.hero {
    position: relative;
    isolation: isolate;
    padding-top: 86px;
    padding-bottom: 76px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(56vw, 620px);
    aspect-ratio: 1;
    right: -8%;
    top: 5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 156, 255, 0.15), rgba(137, 241, 215, 0.06) 42%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(11, 18, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.hero-badge span {
    color: #49d89d;
    font-size: 0.7rem;
}

.hero h1 {
    margin: 1.5rem auto 1rem;
    max-width: 820px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-2), var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 2rem;
}

.trust-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(10, 16, 28, 0.72);
    padding: 1.1rem 0 1.4rem;
}

.trust-title {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-tag {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(19, 28, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-3px);
    border-color: rgba(137, 241, 215, 0.28);
    background: rgba(19, 34, 49, 0.92);
}

.section {
    padding: 96px 0;
}

.section-head {
    max-width: 700px;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.section-head h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card,
.step-card,
.cta-box {
    background: rgba(14, 20, 34, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.card {
    padding: 2rem 1.6rem;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(137, 241, 215, 0.25);
    box-shadow: 0 30px 70px rgba(12, 16, 28, 0.58);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.12), rgba(137, 241, 215, 0.16));
    border: 1px solid rgba(124, 156, 255, 0.25);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.55rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-2);
    font-weight: 700;
}

#process {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    padding: 1.6rem 1.3rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 156, 255, 0.3);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 62px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.2), rgba(137, 241, 215, 0.2));
    border: 1px solid rgba(124, 156, 255, 0.2);
    font-weight: 800;
    color: var(--primary-2);
    margin-bottom: 1rem;
}

.step-card h4 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
}

.step-card p {
    margin: 0;
    color: var(--muted);
}

.cta-box {
    padding: 2.5rem 2.1rem;
    background: linear-gradient(180deg, rgba(12, 18, 30, 0.9), rgba(10, 14, 24, 0.98));
    text-align: center;
}

.cta-box h2 {
    margin: 0 auto 0.6rem;
    font-size: clamp(2rem, 4vw, 2.7rem);
}

.cta-box p {
    margin: 0;
    color: var(--muted);
}

.cta-box > p {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: 16px;
    margin-top: 1.6rem;
    text-align: left;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(10, 15, 24, 0.8);
    border-radius: 14px;
    color: var(--text);
    padding: 0.95rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9aa9c2;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(124, 156, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.16);
    background: rgba(10, 15, 24, 0.98);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.form-meta {
    margin-top: -10px;
    text-align: right;
    color: var(--muted);
    font-size: 0.8rem;
}

.form-status {
    min-height: 1.5em;
    color: var(--primary-2);
    font-size: 0.9rem;
}

footer {
    background: rgba(5, 11, 22, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1.6rem 0 2.2rem;
    text-align: center;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

::selection {
    color: #08131c;
    background: var(--primary-2);
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 12;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(8, 15, 28, 0.98);
        box-shadow: var(--shadow);
        backdrop-filter: blur(16px);
    }

    .menu-open .nav-links {
        display: flex;
        animation: menu-enter 0.18s ease-out;
    }

    .nav-links li a:not(.btn-primary) {
        display: block;
        padding: 11px 12px;
        border-radius: 10px;
    }

    .nav-links li a:not(.btn-primary):hover,
    .nav-links li a:not(.btn-primary):focus-visible {
        background: rgba(255, 255, 255, 0.06);
    }

    .logo {
        font-size: 1.06rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .nav-links .btn-primary {
        width: 100%;
        min-height: 40px;
        padding: 0.55rem 0.8rem;
        font-size: 0.82rem;
    }

    .hero {
        padding-top: 64px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    #process {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 560px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .hero::before {
        width: 90vw;
        right: -28%;
        top: 0;
    }

    .container {
        width: min(calc(100% - 28px), 1120px);
    }

    .cta-box {
        padding: 1.6rem 1.1rem;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.7rem);
    }
}

@keyframes menu-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .menu-open .nav-links {
        animation: none;
    }
}
