/* ============================================================
   SDOS Lite — redesigned marketing site
   Palette: deep navy + powder blue, calm business tool
   ============================================================ */

:root {
  --navy-950: #081426;
  --navy-900: #0b1e3a;
  --navy-800: #102a4f;
  --navy-700: #16345f;
  --blue-500: #2f6fe0;
  --blue-400: #4f8cf0;
  --powder: #8cb4e7;
  --powder-light: #c7dbfb;
  --ink: #101828;
  --body: #3d4b61;
  --muted: #66748c;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-tint: #f4f7fb;
  --bg-soft: #eef3fa;
  --green: #1f9d66;
  --amber: #e8a33d;
  --red: #e05555;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(11, 30, 58, .05), 0 10px 30px rgba(11, 30, 58, .07);
  --shadow-lift: 0 2px 6px rgba(11, 30, 58, .08), 0 22px 55px rgba(11, 30, 58, .14);
  --font-display: "Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--navy-900), var(--navy-700));
  color: var(--powder-light);
  font-size: 13px;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: .01em;
}
.topbar strong { color: #fff; font-weight: 600; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 28px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.nav__logo svg { flex: none; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a {
  padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 500;
  color: var(--body); transition: background .18s, color .18s;
}
.nav__links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav__links a.is-active { color: var(--blue-500); background: rgba(47, 111, 224, .08); }
.nav__cta {
  margin-left: 10px; padding: 10px 18px !important;
  background: var(--navy-900); color: #fff !important; font-weight: 600;
  border-radius: 10px; transition: background .18s, transform .18s;
}
.nav__cta:hover { background: var(--blue-500); transform: translateY(-1px); }
.nav__burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--ink); }
.nav__burger svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 12px; cursor: pointer; border: 0;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
  letter-spacing: -.01em;
}
.btn svg { flex: none; }
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: 0 8px 24px rgba(47, 111, 224, .35); }
.btn--primary:hover { background: var(--blue-400); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 111, 224, .42); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--outline { background: transparent; color: var(--navy-900); border: 1.5px solid #cdd9ea; }
.btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); transform: translateY(-2px); }
.btn--ghost-light { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn--ghost-light:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn--sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(79, 140, 240, .28), transparent 60%),
    radial-gradient(800px 420px at 8% 8%, rgba(140, 180, 231, .16), transparent 55%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 58%, var(--navy-800) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 180, 231, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 231, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  pointer-events: none;
}
.hero__inner { position: relative; padding: 88px 24px 0; max-width: var(--container); margin: 0 auto; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(140, 180, 231, .12); border: 1px solid rgba(140, 180, 231, .3);
  color: var(--powder-light);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(31, 157, 102, .25); }
.badge--ua .dot { background: linear-gradient(180deg, #3a7bd5 50%, #f7d354 50%); box-shadow: none; width: 10px; height: 10px; border-radius: 3px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 800; line-height: 1.16; letter-spacing: -.025em;
  max-width: 20ch;
}
.hero h1 .hl { color: var(--powder); }
.hero__sub {
  margin-top: 26px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7;
  color: #b9c9e2; max-width: 62ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 58px;
  border-top: 1px solid rgba(140, 180, 231, .18);
}
.hero__stat { padding: 26px 44px 30px 0; margin-right: 44px; border-right: 1px solid rgba(140, 180, 231, .14); }
.hero__stat:last-child { border-right: 0; }
.hero__stat b {
  display: block; font-family: var(--font-display); font-size: 30px; font-weight: 800;
  color: #fff; letter-spacing: -.02em; line-height: 1.1;
}
.hero__stat span { font-size: 13px; color: #93a8c9; }
.hero__stat small { display: block; font-size: 12px; color: #6f85ab; margin-top: 3px; }

.hero__mockup {
  position: relative; max-width: 1080px; margin: 72px auto 0;
  padding-bottom: 96px;
}
.hero__mockup .mockup { position: relative; z-index: 2; }
/* Фирменный чертёж алмаза — графический акцент первого экрана */
.hero__diamond {
  position: absolute; z-index: 1;
  width: clamp(110px, 15vw, 210px);
  opacity: .5; pointer-events: none;
  filter: drop-shadow(0 0 22px rgba(140, 180, 231, .18));
}
.hero__diamond--tr { top: -64px; right: -54px; }
.hero__diamond--bl { bottom: 22px; left: -70px; width: clamp(80px, 10vw, 140px); opacity: .32; }
.hero__mockup .mockup { transform: perspective(1400px) rotateX(4deg); transform-origin: top center; }

/* Browser mockup frame */
.mockup {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(2, 10, 26, .55), 0 4px 18px rgba(2, 10, 26, .3);
  border: 1px solid rgba(140, 180, 231, .25);
}
.mockup img { width: 100%; height: auto; display: block; }
.mockup__bar {
  display: flex; align-items: center; gap: 8px;
  background: #eef2f8; padding: 11px 16px; border-bottom: 1px solid #e2e8f2;
}
.mockup__bar i { width: 11px; height: 11px; border-radius: 50%; }
.mockup__bar i:nth-child(1) { background: #ff5f57; }
.mockup__bar i:nth-child(2) { background: #ffbd2e; }
.mockup__bar i:nth-child(3) { background: #28ca42; }
.mockup__url {
  margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: #7a8aa5;
  background: #fff; border: 1px solid #e2e8f2; border-radius: 7px; padding: 4px 14px;
}
/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--bg-tint); }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(79, 140, 240, .2), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
}

.kicker {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500);
  margin-bottom: 16px;
}
.section--dark .kicker { color: var(--powder); }
.h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--ink);
}
.section--dark .h2 { color: #fff; }
.section__desc { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 66ch; }
.section--dark .section__desc { color: #a9bcd9; }
.section__head { max-width: 760px; margin-bottom: 60px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-card);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #cbdaf0; }
.card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.015em; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }
.card__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  color: #fff; margin-bottom: 20px;
}
.card__ico svg { width: 22px; height: 22px; }
.card__tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--blue-500); background: rgba(47, 111, 224, .09);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.card__tag--new { color: var(--green); background: rgba(31, 157, 102, .12); }

/* ---------- Steps (outlined numerals) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
.step { padding: 38px 30px 42px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step__num {
  font-family: var(--font-display); font-size: 54px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--powder); letter-spacing: -.02em;
  margin-bottom: 20px;
}
.step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Module cards ---------- */
.module-card { display: flex; flex-direction: column; }
.module-card .card__meta { margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--blue-500); letter-spacing: .03em; }

/* ---------- Screenshot gallery ---------- */
.gallery { margin-top: 10px; }
.gallery__tabs { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 34px; }
.gallery__tab {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 10px 20px; border-radius: 100px; border: 1.5px solid var(--line);
  background: #fff; color: var(--body); cursor: pointer;
  transition: all .18s;
}
.gallery__tab:hover { border-color: var(--blue-400); color: var(--blue-500); }
.gallery__tab.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.gallery__stage { max-width: 980px; margin: 0 auto; }
.gallery__item { display: none; }
.gallery__item.is-active { display: block; animation: fadeUp .45s ease; }
.gallery__caption { text-align: center; margin-top: 22px; font-size: 15px; color: var(--muted); }
.gallery__caption b { color: var(--ink); font-weight: 600; }
.section--dark .gallery__caption { color: #a9bcd9; }
.section--dark .gallery__caption b { color: #fff; }
.section--dark .gallery__tab { background: rgba(255,255,255,.06); border-color: rgba(140,180,231,.3); color: #c7dbfb; }
.section--dark .gallery__tab:hover { border-color: var(--powder); color: #fff; }
.section--dark .gallery__tab.is-active { background: #fff; border-color: #fff; color: var(--navy-900); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Feature list rows ---------- */
.flist { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.flist__item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.flist__ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(47, 111, 224, .1); color: var(--blue-500); }
.flist__ico svg { width: 19px; height: 19px; }
.flist__item h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.flist__item p { font-size: 14.5px; color: var(--muted); }

/* ---------- Split showcase (modules page) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); }
.showcase:last-child { border-bottom: 0; }
.showcase--flip .showcase__media { order: 2; }
.showcase h3 { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 16px; }
.showcase p { color: var(--muted); font-size: 16px; }
.showcase ul { margin-top: 20px; display: grid; gap: 10px; }
.showcase ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--body); }
.showcase ul li svg { flex: none; margin-top: 4px; color: var(--green); }

/* ---------- Pricing ---------- */
.trial-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius); padding: 34px 40px; color: #fff;
  margin-bottom: 56px; box-shadow: var(--shadow-lift);
}
.trial-banner__left { flex: 1 1 420px; }
.trial-banner h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.trial-banner p { color: #b9c9e2; font-size: 15px; margin-top: 8px; max-width: 56ch; }
.trial-banner ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.trial-banner ul li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--powder-light); }
.trial-banner ul li svg { color: var(--green); flex: none; }

.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-card); transition: transform .22s, box-shadow .22s;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.plan--featured { border: 2px solid var(--blue-500); box-shadow: 0 18px 50px rgba(47, 111, 224, .18); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue-500); color: #fff; font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; padding: 6px 16px; border-radius: 100px;
  white-space: nowrap;
}
.plan h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.plan__price { margin: 18px 0 4px; font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plan__price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.plan ul { display: grid; gap: 11px; margin-bottom: 30px; }
.plan ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--body); align-items: flex-start; }
.plan ul li svg { flex: none; margin-top: 4px; color: var(--green); }
.plan ul li.dim { color: var(--muted); }
.plan ul li.dim svg { color: var(--amber); }
.plan .btn { margin-top: auto; justify-content: center; }

.note-strip {
  margin-top: 56px; display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px;
}
.note-strip svg { flex: none; color: var(--blue-500); margin-top: 3px; }
.note-strip p { font-size: 15px; color: var(--body); }
.note-strip b { color: var(--ink); }

/* ---------- Roadmap ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--blue-500), var(--powder), transparent); }
.phase { position: relative; padding: 0 0 48px 28px; }
.phase::before {
  content: ""; position: absolute; left: -40px; top: 6px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; border: 2px solid var(--powder);
}
.phase--current::before { border-color: var(--blue-500); background: var(--blue-500); box-shadow: 0 0 0 6px rgba(47, 111, 224, .15); }
.phase--planned::before { border-color: var(--blue-400); }
.phase__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; box-shadow: var(--shadow-card); }
.phase__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.phase__num { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.phase__status { font-family: var(--font-display); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.phase__status--current { background: rgba(31, 157, 102, .13); color: var(--green); }
.phase__status--planned { background: rgba(47, 111, 224, .1); color: var(--blue-500); }
.phase__status--vision { background: rgba(232, 163, 61, .14); color: #b07a1e; }
.phase__card h3 { font-family: var(--font-display); font-size: 23px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 12px; }
.phase__card > p { color: var(--muted); font-size: 15.5px; max-width: 68ch; }
.phase__items { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.phase__items li {
  font-size: 13.5px; font-weight: 500; color: var(--body);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 100px;
}

/* ---------- Docs ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.docs-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.docs-nav a { padding: 9px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--body); border-left: 2px solid transparent; }
.docs-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.doc-block { padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.doc-block:last-child { border-bottom: 0; }
.doc-block h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 18px; }
.doc-block h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); margin: 30px 0 10px; }
.doc-block p { color: var(--body); font-size: 15.5px; margin-bottom: 12px; }
.doc-block ol, .doc-block ul.bullets { margin: 10px 0 16px; padding-left: 4px; display: grid; gap: 9px; }
.doc-block ol { counter-reset: li; }
.doc-block ol li { display: flex; gap: 12px; font-size: 15px; color: var(--body); counter-increment: li; }
.doc-block ol li::before {
  content: counter(li, decimal-leading-zero); font-family: var(--font-mono);
  font-size: 12.5px; color: var(--blue-500); margin-top: 3px; flex: none;
}
.doc-block ul.bullets li { display: flex; gap: 11px; font-size: 15px; color: var(--body); }
.doc-block ul.bullets li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-400); margin-top: 9px; }
.doc-block .callout {
  background: var(--bg-soft); border-left: 3px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 22px; margin: 18px 0;
  font-size: 14.5px; color: var(--body);
}

.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--blue-500); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: 15px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-card { display: flex; flex-direction: column; }
.contact-card a.mail {
  margin-top: auto; padding-top: 18px; font-family: var(--font-mono); font-size: 14px;
  color: var(--blue-500); font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
}
.contact-card a.mail:hover { color: var(--blue-400); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .h2 { max-width: 22ch; margin: 0 auto; }
.cta p { margin: 20px auto 0; max-width: 60ch; color: #a9bcd9; font-size: 17px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #8ea2c2; padding: 72px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 52px; border-bottom: 1px solid rgba(140, 180, 231, .12); }
.footer__brand p { font-size: 14px; margin-top: 16px; max-width: 30ch; }
.footer__ua { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: #b9c9e2; }
.footer__ua i { width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(180deg, #3a7bd5 50%, #f7d354 50%); }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6f85ab; margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; color: #a9bcd9; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 30px; font-size: 13px; color: #5f7396; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 80% -20%, rgba(79, 140, 240, .25), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
  color: #fff; padding: 84px 0 76px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 180, 231, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 180, 231, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; max-width: 22ch; }
.page-hero p { margin-top: 18px; color: #b9c9e2; font-size: 17px; max-width: 64ch; }
.page-hero .kicker { color: var(--powder); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps, .steps--5 { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(even) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
  .steps--5 .step:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps--5 .step:last-child { border-bottom: 0; }
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .showcase--flip .showcase__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .docs-nav a { border: 1px solid var(--line); border-radius: 100px; }
  .flist { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 20px 20px; border-bottom: 1px solid var(--line); gap: 2px;
    box-shadow: 0 20px 40px rgba(11, 30, 58, .12);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav__burger { display: block; }
  .grid--4, .grid--3, .grid--2, .contact-grid { grid-template-columns: 1fr; }
  .steps, .steps--5 { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .step:last-child { border-bottom: 0 !important; }
  .section { padding: 72px 0; }
  .hero__inner { padding-top: 64px; }
  .hero__stat { padding: 20px 28px 24px 0; margin-right: 28px; }
  .hero__stat b { font-size: 24px; }
  .hero__mockup { padding-bottom: 64px; }
  .hero__diamond--tr { top: -40px; right: -16px; }
  .hero__diamond--bl { bottom: 40px; left: -24px; }
  .trial-banner { padding: 28px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
