:root {
    --bg: #040915;
    --bg-soft: #081227;
    --surface: #101d34;
    --surface-high: #162846;
    --text: #ecf5ff;
    --muted: #9db0cd;
    --primary: #1ce2ff;
    --primary-strong: #05b8ff;
    --accent: #6a6eff;
    --border: rgba(110, 169, 255, 0.22);
    --border-strong: rgba(120, 212, 255, 0.48);
    --shadow: 0 22px 60px rgba(0, 5, 20, 0.58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background:
        radial-gradient(circle at 12% 12%, rgba(47, 89, 173, 0.42), transparent 34%),
        radial-gradient(circle at 84% 8%, rgba(12, 131, 194, 0.25), transparent 28%),
        var(--bg);
}
a { color: inherit; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.section { position: relative; padding: clamp(3.4rem, 6vw, 6rem) 0; }
.section.section-split::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 25, 48, 0.4), rgba(4, 10, 20, 0.08));
    pointer-events: none;
}
h1, h2, h3, h4 { margin: 0 0 .75rem; line-height: 1.16; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); max-width: 16ch; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.3rem); }
p { margin: 0; }
.lead { color: var(--muted); max-width: 63ch; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.muted { color: var(--muted); }

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(600px 300px at 20% -10%, rgba(40, 178, 255, 0.22), transparent 60%),
        radial-gradient(460px 260px at 80% 110%, rgba(117, 74, 255, 0.19), transparent 65%);
    filter: saturate(1.08);
}
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(90, 140, 214, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(90, 140, 214, 0.055) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at 50% 40%, black 45%, transparent 100%);
}

.navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(8, 13, 26, 0.92), rgba(8, 13, 26, 0.72));
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 8, 25, 0.36);
}
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
    font-weight: 700;
    transition: transform .25s ease;
}
.brand:hover { transform: translateY(-1px); }
.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(5, 174, 255, 0.25);
}
.brand-text { font-size: 1.04rem; letter-spacing: .01em; }

.nav-links { display: flex; align-items: center; gap: 1.05rem; }
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
    transition: color .25s ease;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.45rem;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: .38rem .6rem;
    border: 1px solid var(--border-strong);
    border-radius: .65rem;
    color: var(--primary);
    font-weight: 700;
    background: linear-gradient(160deg, rgba(12, 24, 44, .9), rgba(8, 18, 36, .84));
    box-shadow: 0 10px 20px rgba(0, 20, 45, 0.34);
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .83rem 1.15rem;
    border-radius: .88rem;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 650;
    letter-spacing: .01em;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-130%);
    background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.35) 50%, transparent 75%);
    transition: transform .6s ease;
}
.btn:hover::before { transform: translateX(130%); }
.btn-primary {
    color: #000;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong) 60%, #57f1ff);
    box-shadow: 0 14px 30px rgba(20, 174, 255, 0.33), inset 0 -1px 0 rgba(255,255,255,.22);
}
.nav-links .btn-primary,
.nav-links .btn-primary:hover,
.nav-links .btn-primary:visited,
.nav-links .btn-primary:active {
    color: #000;
}
.nav-links .btn::after { display: none; }
.btn-secondary {
    border-color: var(--border-strong);
    color: #d8ebff;
    background: linear-gradient(160deg, rgba(14, 29, 51, .92), rgba(9, 20, 38, .88));
    box-shadow: 0 10px 22px rgba(0, 11, 28, 0.42);
}
.btn-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.1rem; }

.hero-grid, .grid-2, .grid-3, .grid-4 { display: grid; gap: 1.15rem; }
.hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 1.6rem; }
.hero-content { animation: fadeUp .75s ease .08s both; }
.hero-content h1 {
    background: linear-gradient(170deg, #ffffff 10%, #dff1ff 45%, #a6d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stats { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.stat-chip {
    background: rgba(8, 20, 40, .82);
    border: 1px solid var(--border);
    border-radius: .8rem;
    padding: .55rem .7rem;
    min-width: 130px;
}
.stat-chip strong { display: block; font-size: 1.02rem; color: #cbecff; }
.stat-chip span { color: var(--muted); font-size: .82rem; }

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card, .glass-panel {
    position: relative;
    background: linear-gradient(165deg, rgba(17, 31, 57, .95), rgba(10, 19, 36, .92));
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card::before, .glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.04);
    pointer-events: none;
}
.card:hover, .glass-panel:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: 0 28px 60px rgba(0, 13, 35, .58);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--primary);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--primary); opacity: .9; }

.hero-visual {
    min-height: 390px;
    text-align: center;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 179, 255, .28), rgba(41, 94, 223, .08), transparent 68%);
    filter: blur(2px);
    animation: pulseGlow 4.8s ease-in-out infinite;
}
.hero-logo {
    position: relative;
    width: min(430px, 92%);
    border-radius: 15px;
    z-index: 2;
    box-shadow: 0 25px 60px rgba(2, 20, 55, .5);
}
.floating { animation: gentleFloat 6.5s ease-in-out infinite; }
.visual-chip {
    position: absolute;
    font-size: .78rem;
    padding: .33rem .62rem;
    background: rgba(6, 20, 38, .88);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 12, 32, 0.35);
    backdrop-filter: blur(7px);
    z-index: 3;
}
.chip-a { top: 16%; left: 10%; animation: chipFloat 5s ease-in-out infinite; }
.chip-b { bottom: 18%; left: 13%; animation: chipFloat 5.5s ease-in-out infinite; }
.chip-c { top: 24%; right: 9%; animation: chipFloat 4.8s ease-in-out infinite; }

.pricing-card.is-popular {
    border-color: var(--primary);
    box-shadow: 0 22px 55px rgba(20, 174, 255, .25);
}
.badge {
    display: inline-block;
    margin-bottom: .65rem;
    font-size: .72rem;
    font-weight: 700;
    color: #03273a;
    background: linear-gradient(120deg, var(--primary), #8ff7ff);
    padding: .24rem .56rem;
    border-radius: 99px;
}
.price strong {
    display: inline-block;
    font-size: 2rem;
    letter-spacing: -.03em;
    background: linear-gradient(180deg, #ffffff, #a9deff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.simple-list { margin: .58rem 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.simple-list li { margin-bottom: .33rem; }

.protocol {
    display: inline-block;
    margin-right: .4rem;
    margin-top: .2rem;
    padding: .15rem .48rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: .74rem;
    color: #ccf0ff;
    background: rgba(8, 20, 38, .72);
}
.table-wrap { overflow: auto; margin-top: .8rem; border-radius: .9rem; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: rgba(8, 16, 30, .8); }
th, td { padding: .74rem .8rem; border-bottom: 1px solid rgba(119, 164, 228, .18); text-align: left; }
thead th { color: #d2edff; font-weight: 600; background: rgba(17, 31, 54, .92); }

.accordion details {
    background: linear-gradient(165deg, rgba(13, 27, 49, .96), rgba(10, 19, 34, .94));
    border: 1px solid var(--border);
    border-radius: .9rem;
    padding: .92rem 1rem;
    margin-bottom: .62rem;
    transition: border-color .25s ease, transform .25s ease;
}
.accordion details:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
}
.accordion summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 1.3rem; }
.accordion summary::after { content: "+"; position: absolute; right: .2rem; top: 0; color: var(--primary); }
.accordion details[open] summary::after { content: "−"; }
.accordion p { color: var(--muted); padding-top: .65rem; }

.contact-form label { display: block; margin-bottom: .78rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
    width: 100%;
    margin-top: .35rem;
    background: #071426;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: .78rem;
    padding: .68rem .78rem;
    transition: border-color .22s ease, box-shadow .22s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(24, 168, 255, .14);
}

.flash-message {
    margin-top: 1rem;
    border: 1px solid #3a925f;
    background: rgba(32, 102, 68, .2);
    padding: .8rem 1rem;
    border-radius: .7rem;
}

.site-footer {
    margin-top: 3.4rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(7, 11, 22, 0.9), rgba(5, 8, 16, 0.96));
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 255, 0.45), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.1rem; padding: 2.2rem 0; }
.site-footer h4 { margin-bottom: .72rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .32rem; }
.site-footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color .22s ease, transform .22s ease;
    display: inline-block;
}
.site-footer a:hover { color: var(--text); transform: translateX(2px); }
.footer-bottom {
    border-top: 1px solid rgba(116, 156, 228, 0.18);
    padding: 1rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}
.socials { display: flex; gap: .8rem; }

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.card.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}
.card.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: .6; }
    50% { transform: scale(1.08); opacity: .95; }
}
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
    .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 350px; }
}
@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        padding: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        background: linear-gradient(180deg, rgba(9, 15, 28, .98), rgba(8, 13, 24, .94));
        border-bottom: 1px solid var(--border);
        box-shadow: 0 14px 35px rgba(0, 8, 20, .42);
    }
    .nav-links.open { display: flex; animation: fadeUp .24s ease; }
    .hero-content h1 { max-width: 100%; }
    .hero-stats { gap: .55rem; }
    .stat-chip { min-width: 0; flex: 1 1 140px; }
}
@media (max-width: 640px) {
    .section { padding: 3.2rem 0; }
    .container { width: min(1180px, 93vw); }
    .button-row { width: 100%; }
    .button-row .btn { width: 100%; }
    .visual-chip { font-size: .69rem; }
    .hero-logo { width: min(360px, 94%); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0s !important;
    }
    [data-reveal], .card.reveal-item { opacity: 1; transform: none; }
}
