:root {
    --blue: #0b5fff;
    --blue-dark: #0a3d91;
    --sky-top: #6db3ff;
    --sky-bottom: #e9f3ff;
    --ink: #122033;
    --muted: #5b6b80;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(11, 95, 255, 0.15);
    --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ---------- Sky / background ---------- */
.sky {
    position: absolute;
    inset: 0 0 auto 0;
    height: 640px;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
    overflow: hidden;
    z-index: -1;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 100px;
    filter: blur(2px);
    animation: drift linear infinite;
}
.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}
.cloud--1 { width: 140px; height: 40px; top: 90px; left: -160px; animation-duration: 38s; }
.cloud--2 { width: 200px; height: 55px; top: 200px; left: -260px; animation-duration: 52s; animation-delay: 8s; }
.cloud--3 { width: 110px; height: 34px; top: 320px; left: -140px; animation-duration: 30s; animation-delay: 4s; }
.cloud::before { width: 60%; height: 160%; top: -60%; left: 12%; }
.cloud::after  { width: 45%; height: 150%; top: -55%; right: 14%; }

@keyframes drift {
    from { transform: translateX(0); }
    to   { transform: translateX(120vw); }
}

.plane {
    position: absolute;
    top: 130px;
    left: -60px;
    color: var(--blue);
    animation: fly 16s linear infinite;
    opacity: 0.9;
}
@keyframes fly {
    0%   { transform: translate(-60px, 60px) rotate(8deg); }
    100% { transform: translate(110vw, -40px) rotate(8deg); }
}

/* ---------- Header ---------- */
.header {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; }
.logo__mark {
    display: inline-grid;
    place-items: center;
    width: 34px; height: 34px;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: var(--shadow);
}
.logo__text strong { color: var(--blue); }

.header__nav { display: flex; gap: 22px; font-weight: 500; }
.header__nav a { color: var(--blue-dark); opacity: 0.85; transition: opacity .2s; }
.header__nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 70px 24px 90px;
    text-align: center;
}
.hero__badge {
    display: inline-block;
    background: rgba(11, 95, 255, 0.12);
    color: var(--blue-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 22px;
}
.hero__title {
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.hero__subtitle {
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--muted);
}

/* ---------- Subscribe ---------- */
.subscribe {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 14px;
}
.subscribe__input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid #cdd9ea;
    border-radius: var(--radius);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.subscribe__input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.15);
}
.subscribe__btn {
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .15s, background .2s;
    white-space: nowrap;
}
.subscribe__btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.subscribe__btn:active { transform: translateY(0); }

.subscribe__note { font-size: 14px; color: var(--muted); }
.subscribe__note.is-success { color: #18915a; font-weight: 600; }
.subscribe__note.is-error { color: #d83a3a; font-weight: 600; }

/* ---------- Features ---------- */
.features {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 24px 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    background: #fff;
    border: 1px solid #eef2f8;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 6px 18px rgba(18, 32, 51, 0.05);
    transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { font-size: 32px; margin-bottom: 12px; }
.feature__title { font-size: 19px; margin-bottom: 8px; }
.feature__text { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 24px 80px;
    text-align: center;
}
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    margin-bottom: 16px;
}
.about p { color: var(--muted); font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: #cfd9e8;
    padding: 40px 24px 28px;
}
.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; color: #fff; }
.footer__contacts { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.footer__contacts a { color: #8fbcff; }
.footer__dot { opacity: .5; }
.footer__copy {
    max-width: var(--max);
    margin: 22px auto 0;
    font-size: 13px;
    color: #7c8aa0;
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .header__nav { display: none; }
    .features { grid-template-columns: 1fr; }
    .subscribe { flex-direction: column; }
    .footer__inner { flex-direction: column; text-align: center; }
}
