:root {
    --bg: #050b16;
    --bg-soft: #0b1220;
    --panel: rgba(13, 21, 35, 0.94);
    --panel-strong: rgba(17, 27, 44, 0.98);
    --line: rgba(164, 181, 205, 0.16);
    --text: #f1f5fb;
    --muted: #aebbd0;
    --primary: #8da7e8;
    --primary-2: #8ad8c7;
    --accent: #a7a2dc;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

* {
    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(ellipse 72% 38% at 50% 0%, rgba(105, 130, 184, 0.15), transparent 74%),
        radial-gradient(ellipse 48% 32% at 92% 42%, rgba(91, 158, 146, 0.055), transparent 76%),
        linear-gradient(180deg, #080f1c 0%, var(--bg) 56%, #070d18 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(171, 190, 220, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(171, 190, 220, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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.08rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo-mark {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid rgba(173, 190, 216, 0.2);
    border-radius: 11px;
    background: #031b30;
}

.logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(167, 128, 67, 0.34);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.76);
    color: #18334a;
    font-size: 0.84rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: #a78043;
    background: #fffdf8;
}

.theme-toggle-icon {
    font-family: "Segoe UI Symbol", sans-serif;
    font-size: 1.1rem;
    line-height: 1;
}

.theme-toggle:focus-visible {
    outline: 3px solid rgba(167, 128, 67, 0.4);
    outline-offset: 3px;
}

.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 {
    position: relative;
    color: var(--muted);
    font-weight: 600;
    transition: color 0.22s ease, transform 0.22s ease;
}

.nav-links a:not(.btn-primary)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--primary-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
}

.nav-links a:not(.btn-primary):hover::after,
.nav-links a:not(.btn-primary):focus-visible::after {
    transform: scaleX(1);
}

.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.85rem 1.35rem;
    border-radius: 10px;
    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(120deg, #9adccf, #9eb1e8);
    color: #08131c;
    box-shadow: 0 12px 28px rgba(124, 156, 255, 0.2);
}

.nav-links .btn-primary {
    color: #091521;
}

.btn-secondary {
    background: rgba(15, 23, 38, 0.62);
    border: 1px solid var(--line);
    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: clamp(76px, 9vw, 112px);
    padding-bottom: clamp(68px, 7vw, 88px);
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(220px, 48%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(160, 183, 219, 0.36), transparent);
    transform: translateX(-50%);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(70vw, 760px);
    aspect-ratio: 1;
    left: 50%;
    top: -4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 156, 255, 0.105), rgba(137, 216, 202, 0.035) 44%, transparent 72%);
    filter: blur(18px);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(13, 22, 38, 0.78);
    border: 1px solid rgba(164, 181, 205, 0.2);
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.hero-badge span {
    color: var(--primary-2);
    font-size: 0.62rem;
    text-shadow: 0 0 12px rgba(138, 216, 199, 0.6);
}

.hero h1 {
    margin: 1.5rem auto 1rem;
    max-width: 920px;
    font-size: clamp(2.8rem, 6vw, 5.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.05em;
    text-wrap: balance;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.hero h1 .gradient-text {
    display: block;
}

.workflow-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(105deg, #a2e1d3 0%, #b4c4f0 52%, #c5baf0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #bdc9db;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 2rem;
}

.trust-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(12, 20, 34, 0.78), rgba(16, 25, 40, 0.7), rgba(12, 20, 34, 0.78));
    padding: 1.4rem 0 1.6rem;
}

.trust-title {
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-tag {
    padding: 0.62rem 0.95rem;
    border-radius: 8px;
    background: rgba(19, 29, 45, 0.62);
    border: 1px solid rgba(173, 190, 216, 0.17);
    color: #dce5f3;
    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: clamp(76px, 8vw, 108px) 0;
}

.section-head {
    max-width: 700px;
    margin: 0 auto 2.7rem;
    text-align: center;
}

.section-head h2 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.05em;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

.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: 22px;
}

.card,
.step-card,
.cta-box {
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.92), rgba(11, 19, 32, 0.92));
    border: 1px solid rgba(173, 190, 216, 0.14);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.card {
    position: relative;
    padding: 1.9rem 1.65rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 24px;
    left: 24px;
    height: 1px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(138, 216, 199, 0.65), transparent);
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(137, 216, 202, 0.3);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.34);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.14), rgba(137, 216, 202, 0.1));
    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.4rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1.4rem;
}

.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:
        radial-gradient(ellipse at 50% 0, rgba(124, 156, 255, 0.08), transparent 62%),
        linear-gradient(145deg, rgba(15, 25, 41, 0.88), rgba(9, 16, 28, 0.84));
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 44px);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    padding: 1.6rem 1.3rem;
    background: rgba(13, 21, 35, 0.76);
    box-shadow: none;
    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: 52px;
    min-height: 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.15), rgba(137, 216, 202, 0.1));
    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: clamp(2.2rem, 5vw, 3.8rem);
    background:
        radial-gradient(ellipse at 50% 0, rgba(124, 156, 255, 0.1), transparent 62%),
        linear-gradient(180deg, rgba(12, 18, 30, 0.94), 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;
}

#about .section-head {
    max-width: 860px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(16, 27, 44, 0.7), rgba(9, 16, 28, 0.54));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

#about .section-head p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    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(173, 190, 216, 0.16);
    background: rgba(10, 15, 24, 0.84);
    border-radius: 10px;
    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 textarea,
.contact-form .form-meta,
.contact-form button,
.contact-form .form-status,
.contact-form .form-delivery-note {
    grid-column: 1 / -1;
}

.contact-form .form-honeypot {
    display: none;
}

.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;
    min-height: 52px;
    letter-spacing: 0.01em;
}

.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;
}

.form-delivery-note {
    margin: -0.6rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.6;
    text-align: center;
}

footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 120% at 8% 0%, rgba(141, 167, 232, 0.09), transparent 72%),
        linear-gradient(180deg, rgba(8, 15, 28, 0.96), rgba(5, 11, 22, 0.99));
    border-top: 1px solid var(--line);
    padding: 4rem 0 1.4rem;
    color: var(--muted);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(145px, 0.8fr)) minmax(190px, 1fr);
    gap: clamp(28px, 5vw, 68px);
    padding-bottom: 3rem;
}

.footer-brand .logo {
    color: var(--text);
}

.footer-brand > p,
.footer-contact > p {
    max-width: 330px;
    margin: 1.2rem 0 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.75;
}

.footer-cta,
.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    color: var(--primary-2);
    font-size: 0.9rem;
    font-weight: 650;
    transition: color 0.2s ease, gap 0.2s ease;
}

.footer-cta:hover,
.footer-contact-link:hover {
    color: var(--text);
    gap: 0.9rem;
}

.footer-main h2 {
    margin: 0 0 1rem;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-nav,
.footer-services {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.72rem;
}

.footer-nav a,
.footer-services a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.footer-nav a:hover,
.footer-services a:hover {
    color: var(--text);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-bottom p {
    margin: 0;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.back-to-top:hover {
    color: var(--primary-2);
}

@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(140px, 1fr));
        gap: 38px 30px;
    }

    .footer-contact {
        grid-column: 2 / -1;
    }
}

@media (max-width: 600px) {
    footer {
        padding: 3rem 0 1.2rem;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 1.25rem;
        padding-bottom: 2rem;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-brand > p,
    .footer-contact > p {
        font-size: 0.88rem;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
    }
}

.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: 960px) {
    .nav-container {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .header-controls {
        gap: 8px;
    }

    .theme-toggle {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
    }

    .theme-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        z-index: 12;
        max-height: min(70vh, 28rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        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-mark {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .nav-links .btn-primary {
        width: 100%;
        min-height: 44px;
        padding: 0.55rem 0.8rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 64px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    #process {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 340px) {
    .logo {
        gap: 6px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .logo-mark {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .header-controls {
        gap: 6px;
    }
}

@media (max-width: 560px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .hero::before {
        width: 90vw;
        right: auto;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .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;
    }
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    --bg: #080d15;
    --bg-soft: #111a27;
    --panel: #111a27;
    --panel-strong: #172333;
    --line: rgba(173, 190, 216, 0.16);
    --text: #eef2f7;
    --muted: #b0bdcc;
    --primary: #8da7e8;
    --primary-2: #8ad8c7;
    --accent: #a7a2dc;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    background:
        radial-gradient(ellipse 72% 38% at 50% 0%, rgba(105, 130, 184, 0.15), transparent 74%),
        radial-gradient(ellipse 48% 32% at 92% 42%, rgba(91, 158, 146, 0.055), transparent 76%),
        linear-gradient(180deg, #080f1c 0%, var(--bg) 56%, #070d18 100%);
    color: var(--text);
    color-scheme: dark;
}

html[data-theme="dark"] body::before {
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(171, 190, 220, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(171, 190, 220, 0.045) 1px, transparent 1px);
}

html[data-theme="dark"] header,
html[data-theme="dark"] header.is-scrolled {
    background: rgba(5, 11, 22, 0.94);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .logo,
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a:focus-visible {
    color: var(--text);
}

html[data-theme="dark"] .logo-mark {
    border-color: rgba(173, 190, 216, 0.2);
    background: #031b30;
}

html[data-theme="dark"] .nav-links a {
    color: var(--muted);
}

html[data-theme="dark"] .nav-links a:not(.btn-primary)::after {
    background: var(--primary-2);
}

html[data-theme="dark"] .menu-toggle {
    border-color: var(--line);
    background: rgba(19, 30, 52, 0.7);
    color: var(--text);
}

html[data-theme="dark"] .theme-toggle {
    border-color: rgba(173, 190, 216, 0.2);
    background: rgba(19, 30, 52, 0.78);
    color: var(--text);
}

html[data-theme="dark"] .theme-toggle:hover {
    border-color: rgba(138, 216, 199, 0.45);
    background: #172333;
}

html[data-theme="dark"] .btn-primary {
    background: linear-gradient(120deg, #9adccf, #9eb1e8);
    color: #08131c;
    box-shadow: 0 12px 28px rgba(124, 156, 255, 0.2);
}

html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-primary:focus-visible {
    box-shadow: 0 20px 42px rgba(124, 156, 255, 0.38);
}

html[data-theme="dark"] .btn-secondary {
    border-color: var(--line);
    background: rgba(15, 23, 38, 0.62);
    color: var(--text);
}

html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-secondary:focus-visible {
    border-color: rgba(137, 241, 215, 0.38);
}

html[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(124, 156, 255, 0.105), rgba(137, 216, 202, 0.035) 44%, transparent 72%);
}

html[data-theme="dark"] .hero-badge {
    border-color: rgba(164, 181, 205, 0.2);
    background: rgba(13, 22, 38, 0.78);
    color: var(--muted);
}

html[data-theme="dark"] .hero-badge span,
html[data-theme="dark"] .feature-list li::before {
    color: var(--primary-2);
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-head h2,
html[data-theme="dark"] .cta-box h2 {
    color: var(--text);
}

html[data-theme="dark"] .gradient-text {
    background: linear-gradient(105deg, #a2e1d3 0%, #b4c4f0 52%, #c5baf0 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .card p,
html[data-theme="dark"] .step-card p,
html[data-theme="dark"] .cta-box p,
html[data-theme="dark"] .form-meta {
    color: var(--muted);
}

html[data-theme="dark"] .trust-bar {
    border-color: var(--line);
    background: linear-gradient(90deg, rgba(12, 20, 34, 0.78), rgba(16, 25, 40, 0.7), rgba(12, 20, 34, 0.78));
}

html[data-theme="dark"] .trust-title {
    color: var(--muted);
}

html[data-theme="dark"] .tech-tag {
    border-color: rgba(173, 190, 216, 0.17);
    background: rgba(19, 29, 45, 0.62);
    color: #dce5f3;
}

html[data-theme="dark"] .tech-tag:hover {
    border-color: rgba(137, 241, 215, 0.28);
    background: rgba(19, 34, 49, 0.92);
}

html[data-theme="dark"] .section-head h2::after {
    background: linear-gradient(90deg, var(--primary-2), var(--primary));
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .step-card {
    border-color: rgba(173, 190, 216, 0.14);
    background: linear-gradient(145deg, rgba(17, 28, 44, 0.92), rgba(11, 19, 32, 0.92));
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .card:hover {
    border-color: rgba(137, 216, 202, 0.3);
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .card::before {
    background: linear-gradient(90deg, transparent, rgba(138, 216, 199, 0.65), transparent);
}

html[data-theme="dark"] .card-icon,
html[data-theme="dark"] .step-num {
    border-color: rgba(124, 156, 255, 0.25);
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.14), rgba(137, 216, 202, 0.1));
    color: var(--primary-2);
}

html[data-theme="dark"] .feature-list li {
    color: var(--text);
}

html[data-theme="dark"] #about .section-head {
    border-color: var(--line);
    background: linear-gradient(145deg, rgba(16, 27, 44, 0.7), rgba(9, 16, 28, 0.54));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] #process {
    border-color: var(--line);
    background:
        radial-gradient(ellipse at 50% 0, rgba(124, 156, 255, 0.08), transparent 62%),
        linear-gradient(145deg, rgba(15, 25, 41, 0.88), rgba(9, 16, 28, 0.84));
}

html[data-theme="dark"] .step-card {
    background: rgba(13, 21, 35, 0.76);
    box-shadow: none;
}

html[data-theme="dark"] .step-card:hover {
    border-color: rgba(124, 156, 255, 0.3);
}

html[data-theme="dark"] .cta-box {
    border-color: rgba(173, 190, 216, 0.14);
    background:
        radial-gradient(ellipse at 50% 0, rgba(124, 156, 255, 0.1), transparent 62%),
        linear-gradient(180deg, rgba(12, 18, 30, 0.94), rgba(10, 14, 24, 0.98));
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea {
    border-color: rgba(173, 190, 216, 0.16);
    background: rgba(10, 15, 24, 0.84);
    color: var(--text);
}

html[data-theme="dark"] .contact-form input::placeholder,
html[data-theme="dark"] .contact-form textarea::placeholder {
    color: #9aa9c2;
}

html[data-theme="dark"] .contact-form input:focus,
html[data-theme="dark"] .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);
}

html[data-theme="dark"] .form-status {
    color: var(--primary-2);
}

html[data-theme="dark"] footer {
    background:
        radial-gradient(ellipse 58% 100% at 9% 0%, rgba(141, 167, 232, 0.09), transparent 72%),
        linear-gradient(180deg, #0b1220, #050b16);
    border-top-color: var(--line);
    color: var(--muted);
}

html[data-theme="dark"] .footer-brand .logo,
html[data-theme="dark"] .footer-main h2,
html[data-theme="dark"] .back-to-top {
    color: var(--text);
}

html[data-theme="dark"] .footer-brand > p,
html[data-theme="dark"] .footer-contact > p,
html[data-theme="dark"] .footer-nav a,
html[data-theme="dark"] .footer-services a,
html[data-theme="dark"] .footer-bottom {
    color: var(--muted);
}

html[data-theme="dark"] .footer-cta,
html[data-theme="dark"] .footer-contact-link {
    color: var(--primary-2);
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: var(--line);
}

html[data-theme="dark"] ::selection {
    color: #08131c;
    background: var(--primary-2);
}

@media (max-width: 960px) {
    html[data-theme="dark"] .nav-links {
        border-color: var(--line);
        background: rgba(8, 15, 28, 0.98);
        box-shadow: var(--shadow);
    }

    html[data-theme="dark"] .nav-links li a:not(.btn-primary):hover,
    html[data-theme="dark"] .nav-links li a:not(.btn-primary):focus-visible {
        background: rgba(255, 255, 255, 0.06);
    }
}

:root {
    --bg: #f4f0e7;
    --bg-soft: #ebe5d9;
    --panel: #fffdf8;
    --panel-strong: #ffffff;
    --line: rgba(43, 54, 61, 0.17);
    --text: #202a30;
    --muted: #626b6d;
    --primary: #18334a;
    --primary-2: #a78043;
    --accent: #b89a69;
    --shadow: 0 16px 38px rgba(39, 44, 42, 0.09);
}

html {
    scroll-padding-top: 88px;
}

body {
    background:
        radial-gradient(ellipse 70% 34% at 50% 0%, rgba(183, 154, 105, 0.1), transparent 74%),
        linear-gradient(180deg, #f8f5ee 0%, var(--bg) 58%, #f0ece3 100%);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

body::before {
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(74, 77, 71, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 77, 71, 0.04) 1px, transparent 1px);
}

header,
header.is-scrolled {
    background: rgba(24, 51, 74, 0.97);
    border-bottom-color: rgba(224, 193, 139, 0.3);
    box-shadow: 0 8px 24px rgba(10, 25, 37, 0.18);
}

.logo {
    color: #fffdf8;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.01em;
}

.logo-mark {
    border-color: rgba(167, 128, 67, 0.35);
    border-radius: 50%;
    background: #fffdf8;
    box-shadow: 0 3px 12px rgba(39, 44, 42, 0.09);
}

.nav-links a {
    color: #e2e3df;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #fffdf8;
}

.nav-links a:not(.btn-primary)::after {
    background: #e0c18b;
}

.menu-toggle {
    border-color: rgba(255, 253, 248, 0.28);
    background: rgba(255, 253, 248, 0.08);
    color: #fffdf8;
}

.nav-links .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, #f2dba9, #d6b574);
    border: 1px solid rgba(255, 244, 218, 0.6);
    color: #18334a;
    box-shadow: 0 8px 20px rgba(10, 25, 37, 0.22);
}

.nav-links .btn-primary {
    gap: 9px;
    padding-inline: 1.15rem;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-links .btn-primary::after {
    content: "↗";
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.nav-links .btn-primary:hover,
.nav-links .btn-primary:focus-visible {
    background: linear-gradient(135deg, #f8e7c1, #dfc185);
    box-shadow: 0 12px 26px rgba(10, 25, 37, 0.3);
    transform: translateY(-2px);
}

.nav-links .btn-primary:hover::after,
.nav-links .btn-primary:focus-visible::after {
    transform: translate(2px, -2px);
}

.nav-links .btn-primary:focus-visible {
    outline: 3px solid rgba(224, 193, 139, 0.56);
    outline-offset: 3px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 12px 24px rgba(10, 25, 37, 0.3);
}

.btn-secondary {
    border-color: rgba(167, 128, 67, 0.45);
    background: rgba(255, 253, 248, 0.8);
    color: #18334a;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: #a78043;
}

.hero::before {
    background: radial-gradient(circle, rgba(167, 128, 67, 0.13), rgba(183, 154, 105, 0.045) 44%, transparent 72%);
}

.hero-badge {
    border-color: rgba(167, 128, 67, 0.3);
    background: rgba(255, 253, 248, 0.82);
    color: #5c6260;
    box-shadow: 0 8px 22px rgba(39, 44, 42, 0.07);
}

.hero-badge span,
.feature-list li::before {
    color: #9b7135;
}

.hero h1,
.section-head h2,
.cta-box h2 {
    color: #18334a;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.hero h1 {
    text-shadow: none;
}

.gradient-text {
    background: linear-gradient(105deg, #9b7135 0%, #b28e56 55%, #80602f 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p,
.section-head p {
    color: #626b6d;
}

.trust-bar {
    border-color: rgba(43, 54, 61, 0.14);
    background: rgba(235, 229, 217, 0.78);
}

.trust-title {
    color: #606967;
}

.tech-tag {
    border-color: rgba(43, 54, 61, 0.15);
    background: rgba(255, 253, 248, 0.8);
    color: #34414a;
}

.tech-tag:hover {
    border-color: rgba(167, 128, 67, 0.45);
    background: #fffdf8;
}

.section-head h2::after {
    background: linear-gradient(90deg, #a78043, #d2bd98);
}

.card,
.step-card {
    border-color: rgba(43, 54, 61, 0.14);
    background: linear-gradient(145deg, #fffdf8, #f7f3ea);
    box-shadow: 0 12px 28px rgba(39, 44, 42, 0.07);
}

.card::before {
    background: linear-gradient(90deg, transparent, rgba(167, 128, 67, 0.7), transparent);
}

.card:hover {
    border-color: rgba(167, 128, 67, 0.38);
    box-shadow: 0 18px 36px rgba(39, 44, 42, 0.11);
}

.card-icon,
.step-num {
    border-color: rgba(167, 128, 67, 0.26);
    background: linear-gradient(135deg, rgba(167, 128, 67, 0.12), rgba(24, 51, 74, 0.05));
    color: #8d672f;
}

.card p,
.step-card p {
    color: #626b6d;
}

.feature-list li {
    color: #34414a;
}

#about .section-head {
    border-color: rgba(167, 128, 67, 0.2);
    background: linear-gradient(145deg, rgba(255, 253, 248, 0.92), rgba(240, 235, 224, 0.78));
    box-shadow: 0 12px 32px rgba(39, 44, 42, 0.06);
}

#process {
    border-color: rgba(43, 54, 61, 0.14);
    background:
        radial-gradient(ellipse at 50% 0, rgba(167, 128, 67, 0.08), transparent 62%),
        linear-gradient(145deg, #eee8dc, #f7f3ea);
}

.step-card {
    box-shadow: none;
}

.step-card:hover {
    border-color: rgba(167, 128, 67, 0.38);
}

.cta-box {
    border-color: rgba(167, 128, 67, 0.3);
    background:
        radial-gradient(ellipse at 50% 0, rgba(183, 154, 105, 0.15), transparent 62%),
        linear-gradient(180deg, #fffdf8, #f0ebdf);
    box-shadow: 0 18px 44px rgba(39, 44, 42, 0.09);
}

.cta-box p {
    color: #626b6d;
}

.contact-form input,
.contact-form textarea {
    border-color: rgba(43, 54, 61, 0.18);
    background: #fffdf8;
    color: #202a30;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #737b7b;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(167, 128, 67, 0.65);
    box-shadow: 0 0 0 3px rgba(167, 128, 67, 0.12);
    background: #fffdf8;
}

.form-meta {
    color: #626b6d;
}

.form-status {
    color: #47664f;
}

footer {
    background:
        radial-gradient(ellipse 58% 100% at 9% 0%, rgba(183, 154, 105, 0.13), transparent 72%),
        linear-gradient(180deg, #18334a, #102536);
    border-top-color: rgba(197, 172, 128, 0.3);
    color: #d8d3c9;
}

.footer-brand .logo,
.footer-main h2,
.back-to-top {
    color: #fffdf8;
}

.footer-brand > p,
.footer-contact > p,
.footer-nav a,
.footer-services a,
.footer-bottom {
    color: #c0c5c3;
}

.footer-cta,
.footer-contact-link {
    color: #e0c18b;
}

.footer-bottom {
    border-top-color: rgba(255, 253, 248, 0.17);
}

::selection {
    color: #fffdf8;
    background: #18334a;
}

@media (max-width: 960px) {
    .nav-links {
        border-color: rgba(224, 193, 139, 0.3);
        background: rgba(24, 51, 74, 0.99);
        box-shadow: 0 18px 38px rgba(10, 25, 37, 0.28);
    }

    .nav-links li a:not(.btn-primary):hover,
    .nav-links li a:not(.btn-primary):focus-visible {
        background: rgba(255, 253, 248, 0.08);
    }
}

.theme-toggle {
    border-color: rgba(255, 253, 248, 0.3);
    background: rgba(255, 253, 248, 0.08);
    color: #fffdf8;
}

.theme-toggle:hover {
    border-color: #e0c18b;
    background: rgba(255, 253, 248, 0.15);
}

html[data-theme="dark"] .nav-links .btn-primary {
    border-color: rgba(242, 214, 154, 0.5);
    background: linear-gradient(135deg, #f5dda9, #d8ad68);
    color: #122337;
    box-shadow: 0 8px 20px rgba(216, 173, 104, 0.22);
}

html[data-theme="dark"] .nav-links .btn-primary:hover,
html[data-theme="dark"] .nav-links .btn-primary:focus-visible {
    background: linear-gradient(135deg, #ffebc2, #e4bf81);
    box-shadow: 0 12px 26px rgba(216, 173, 104, 0.34);
    transform: translateY(-2px);
}