/* M8 Cyber — clean, bright, teal on white */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --ink: #0e1a2b;
  --ink-2: #3b4a5e;
  --muted: #64748b;
  --line: #e3e9f0;

  --brand: #12b5a8;
  --brand-dark: #0a7c74;
  --brand-tint: #e8f8f6;
  --coral: #ff8a5b;
  --coral-tint: #fff1ea;
  --sky-tint: #eaf3ff;
  --sand-tint: #fff8e3;
  --lilac-tint: #f1edff;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .04), 0 10px 30px rgba(14, 26, 43, .07);
  --shadow-lg: 0 2px 4px rgba(14, 26, 43, .05), 0 20px 44px rgba(14, 26, 43, .12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
p { margin: 0 0 1em; color: var(--ink-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.hl { color: var(--brand-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); z-index: 100; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #cfd8e3; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .alert-link { color: #7ef0e4; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 43px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--brand-dark); }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { margin: 0; position: relative; }
.nav > ul a, .nav button.sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav > ul a:hover, .nav button.sub-toggle:hover { background: var(--bg-soft); }
.nav > ul a[aria-current="page"], .nav button.sub-toggle[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 10px); left: -8px; min-width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: none;
}
.submenu a { display: block !important; padding: 12px 14px !important; border-radius: 10px !important; }
.submenu small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-cta { margin-left: 10px; }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(14,26,43,.18); }
.btn-dark:hover { background: #1b2c44; }
.btn-teal { background: var(--brand); color: var(--ink); box-shadow: 0 8px 20px rgba(18,181,168,.28); }
.btn-light { background: #fff; color: var(--ink); border-color: #cdd6e0; }
.btn-light:hover { border-color: var(--ink); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.more { font-weight: 600; color: var(--brand-dark); display: inline-flex; gap: 8px; align-items: center; }
.more::after { content: "→"; transition: transform .15s ease; }
a.card:hover .more::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head .eyebrow::after { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 96px; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 400px at 88% 10%, rgba(18,181,168,.14), transparent 70%),
    radial-gradient(500px 360px at 70% 95%, rgba(255,138,91,.10), transparent 70%),
    #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.15rem; max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 500; color: var(--ink); }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.hero-visual { position: relative; }
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 12px 16px; font-size: .85rem; display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600;
}
.float-chip small { display: block; font-weight: 400; color: var(--muted); }
.float-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-dark); }
.float-chip .dot svg { width: 18px; height: 18px; }
.chip-a { left: -28px; bottom: -26px; }
.chip-b { right: -18px; top: -24px; }

.page-hero { padding: 72px 0 64px; background:
  radial-gradient(520px 320px at 92% 0%, rgba(18,181,168,.14), transparent 70%),
  linear-gradient(180deg, #f7fbfb, #fff); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.page-hero p.lead { font-size: 1.1rem; max-width: 640px; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; position: relative;
}
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe9e6; }
.card .card-foot { margin-top: auto; padding-top: 20px; }
.card.accent-top { border-top: 4px solid var(--brand); }
.bg-teal, .bg-mint { background: var(--brand-tint); border-color: #cdeeea; }
.bg-sky { background: var(--sky-tint); border-color: #d5e6fb; }
.bg-pink, .bg-peach { background: var(--coral-tint); border-color: #fbdccc; }
.bg-yellow { background: var(--sand-tint); border-color: #f5e6b8; }
.bg-lilac { background: var(--lilac-tint); border-color: #e0d8fb; }
.bg-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.bg-dark h2, .bg-dark h3 { color: #fff; } .bg-dark p, .bg-dark li { color: #c9d3df; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.service-card .icon { width: 58px; height: 58px; border-radius: 16px; }
.service-card .icon svg { width: 28px; height: 28px; }
.service-card .tag { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  border-radius: 14px; background: var(--brand-tint); color: var(--brand-dark); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.icon.bg-sky { color: #2f6fd1; } .icon.bg-pink, .icon.bg-peach { color: #d4572a; }
.icon.bg-yellow { color: #a87b00; } .icon.bg-lilac { color: #6a4fd1; }
.bg-teal .icon, .bg-mint .icon, .bg-sky .icon, .bg-pink .icon, .bg-yellow .icon, .bg-lilac .icon, .bg-peach .icon { background: #fff; }

.feature { text-align: left; }
.feature p { font-size: .95rem; }

.quote-bubble { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.quote-bubble::before { content: "“"; color: var(--brand); font-size: 2.4rem; line-height: 0; vertical-align: -0.42em; margin-right: 4px; }

.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 32px; position: relative; margin-bottom: .65em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.steps { counter-reset: step; }
.step { padding-top: 30px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700; border-radius: 50%;
}
.steps .step:not(:last-child)::after {
  content: ""; position: absolute; top: 51px; left: 82px; right: -24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px);
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Console panel */
.terminal { background: var(--ink); color: #dfe7f0; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; font-size: .84rem; border: 1px solid #1d2d45; }
.terminal-bar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: #13233a; border-bottom: 1px solid #22344f; }
.terminal-bar .live { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-family: var(--font-mono); color: #7ef0e4; text-transform: uppercase; letter-spacing: .1em; }
.terminal-bar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7ef0e4; box-shadow: 0 0 0 4px rgba(126,240,228,.18); }
.terminal-bar em { margin-left: auto; font-style: normal; color: #8ea0b7; font-size: .76rem; font-family: var(--font-mono); }
.terminal pre { margin: 0; padding: 20px; white-space: pre-wrap; font-family: var(--font-mono); line-height: 1.8; }
.t-ok { color: #7ef0e4; } .t-warn { color: #ffd479; } .t-crit { color: #ff9b85; } .t-dim { color: #7f91a8; } .t-info { color: #9cc6ff; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: box-shadow .15s ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 24px 20px; }

/* CTA band */
.cta-band { padding: 88px 0; }
.cta-box { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; padding: 48px; }
.cta-box h2 { margin-bottom: .3em; }
.cta-box .btn-row { justify-content: flex-end; }
.cta-dark { background: var(--ink) radial-gradient(520px 300px at 100% 0%, rgba(18,181,168,.35), transparent 70%); border: 0; }
.cta-dark h2 { color: #fff; } .cta-dark p { color: #c9d3df; }
.cta-dark .btn-light { background: transparent; color: #fff; border-color: #50627c; }
.cta-dark .btn-light:hover { border-color: #fff; }

/* Help block */
.help-fast { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.help-fast .cta-box { grid-template-columns: 1fr; padding: 40px; }
.help-fast .cta-box .btn-row { justify-content: flex-start; }
.help-fast dl { margin: 0 0 12px; }
.help-fast dt { font-weight: 600; display: inline; }
.help-fast dd { display: inline; margin: 0; }
.help-fast dd::after { content: ""; display: block; margin-bottom: .5em; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink);
  padding: 12px 14px; background: #fff; border: 1px solid #cdd6e0; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18,181,168,.15); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: var(--brand-tint); color: #075f59; }
.form-status.err { display: block; background: var(--coral-tint); color: #a33a12; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c2ccd8; padding: 64px 0 28px; }
.site-footer a { color: #c2ccd8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { color: #c2ccd8; font-size: .92rem; margin-bottom: .6em; }
.site-footer .foot-brand img { width: 240px; margin-bottom: 16px; }
.site-footer .foot-brand p { color: #95a4b6; font-size: .9rem; max-width: 330px; }
.footer-bottom { border-top: 1px solid #22344f; margin-top: 44px; padding-top: 22px; font-size: .82rem; color: #7f91a8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero .wrap, .split, .cta-box, .help-fast { grid-template-columns: 1fr; }
  .cta-box .btn-row { justify-content: flex-start; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .chip-a { left: 8px; } .chip-b { right: 8px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600;
    padding: 9px 16px; background: #fff; border: 1px solid #cdd6e0; border-radius: 999px; cursor: pointer;
  }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; flex-direction: column; align-items: stretch; padding: 12px 20px 22px; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav > ul a, .nav button.sub-toggle { width: 100%; justify-content: space-between; padding: 12px 10px; border-radius: 10px; }
  .submenu { position: static; box-shadow: none; min-width: 0; margin: 4px 0 8px; }
  .has-sub:hover .submenu { display: none; }
  .has-sub.open .submenu { display: block; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .g2, .g3, .g4, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .brand-tag { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar a + a { display: none; }
  .cta-box { padding: 30px; }
  .float-chip { position: static; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.cta-dark .btn-dark { background: var(--brand); color: var(--ink); box-shadow: 0 8px 20px rgba(18,181,168,.3); }
.cta-dark .btn-dark:hover { background: #2fcabd; }

/* ---------- Compact layout + illustrations ---------- */
section { padding: 72px 0; }
.cta-band { padding: 72px 0; }
.section-head { margin-bottom: 40px; }
.hero { padding: 64px 0 72px; }
.page-hero { padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.illus-svg { width: 100%; height: auto; display: block; }
.hero-art { max-width: 540px; margin-left: auto; }
.page-art { background: linear-gradient(160deg, var(--brand-tint), #f4fbfa 60%, #fff); border: 1px solid #d9f0ed; border-radius: var(--radius); padding: 22px 18px 10px; }

.svc-card { padding: 0; overflow: hidden; }
.svc-card .art { background: linear-gradient(160deg, var(--brand-tint), #f7fcfb); border-bottom: 1px solid #dcefec; padding: 14px 20px 4px; }
.svc-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.12rem; }
.svc-card p { font-size: .95rem; }

.mini { display: flex; gap: 14px; align-items: flex-start; }
.mini .icon { flex: none; margin: 0; }
.mini h3 { font-size: 1.05rem; margin-bottom: .2em; }
.mini p { font-size: .93rem; margin: 0; }

.icon { background: var(--ink); color: #5fe0d4; }
.icon.bg-sky, .icon.bg-pink, .icon.bg-peach, .icon.bg-yellow, .icon.bg-lilac, .icon.bg-teal, .icon.bg-mint,
.bg-teal .icon, .bg-mint .icon, .bg-sky .icon, .bg-pink .icon, .bg-yellow .icon, .bg-lilac .icon, .bg-peach .icon { background: var(--ink); color: #5fe0d4; border-color: transparent; }

.steps.compact .step { padding: 24px; }
.steps.compact .step p { font-size: .93rem; margin: 0; }
.steps.compact .step::after { top: 45px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 34px; margin-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li.bad::before { border-color: var(--coral); }
.timeline time { display: block; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.timeline strong { color: var(--ink); }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { margin: 0; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink); }

@media (max-width: 900px) { .hero-art { margin: 0 auto; } }
