/* ==========================================================================
   PotreX Cyber Security — global stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0d0f;
  --bg-soft: #121215;
  --bg-card: rgba(255, 255, 255, .032);
  --bg-card-hover: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);

  --text: #f4f6f8;
  --text-dim: #c3c9d0;
  --muted: #9aa2ab;

  --accent: #56d7e3;
  --accent-2: #4f8bff;
  --accent-soft: rgba(86, 215, 227, .12);
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 980px;

  --container: 1200px;
  --header-h: 70px;

  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
}

p { margin: 0; }

::selection { background: rgba(86, 215, 227, .28); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 46px;
}

.section-head__text { max-width: 720px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
}

.section-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 660px;
}

.lead { color: var(--text-dim); font-size: 17px; }

/* ---------- Buttons (Apple-style) ---------- */
.btn {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border: 0;
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .22s var(--ease), transform .22s var(--spring),
              box-shadow .22s var(--ease), color .22s var(--ease), opacity .22s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.975); }

.btn--primary {
  --btn-bg: var(--apple-blue);
  --btn-fg: #fff;
  box-shadow: 0 6px 22px rgba(0, 113, 227, .32);
}
.btn--primary:hover { --btn-bg: var(--apple-blue-hover); box-shadow: 0 10px 28px rgba(0, 113, 227, .42); }

.btn--accent {
  --btn-fg: #06262a;
  background: linear-gradient(135deg, #7ee7f0, #56d7e3 45%, #4f8bff);
  font-weight: 650;
  box-shadow: 0 10px 30px rgba(86, 215, 227, .26);
}
.btn--accent:hover { box-shadow: 0 14px 38px rgba(86, 215, 227, .36); }

.btn--ghost {
  --btn-bg: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .07); color: var(--text); }

.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  transition: gap .25s var(--spring), color .2s var(--ease);
}
.link-arrow:hover { gap: 12px; color: #8fe8f1; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 13, 15, .62);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck {
  background: rgba(11, 11, 13, .86);
  border-bottom-color: var(--border);
}

.header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }

/* Wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo__mark svg {
  width: 26px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(86, 215, 227, .32));
  transition: filter .3s var(--ease), transform .35s var(--spring);
}
.logo__text {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  color: #fff;
}
.logo__text i {
  font-style: normal;
  background: linear-gradient(135deg, #7ee7f0, #4f8bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand:hover .logo__mark svg { transform: translateY(-1px); filter: drop-shadow(0 3px 14px rgba(86, 215, 227, .55)); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: #d8dce1;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--spring);
}
.nav__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav__link:active { transform: scale(.97); }
.nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #fff; }

.nav__chev {
  width: 10px;
  height: 10px;
  transition: transform .3s var(--spring);
  opacity: .75;
}
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* Apple-like login button */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border: 0;
  border-radius: var(--pill);
  background: var(--apple-blue);
  color: #fff;
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -.01em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 113, 227, .3);
  transition: background .2s var(--ease), transform .2s var(--spring), box-shadow .25s var(--ease);
}
.btn-login:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, .45);
}
.btn-login:active { transform: scale(.97); }
.btn-login svg { width: 15px; height: 15px; }

/* Mega dropdown */
.mega {
  position: fixed;
  top: calc(var(--header-h) - 6px);
  left: 50%;
  width: min(1080px, calc(100vw - 32px));
  transform: translate(-50%, -8px);
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(20, 20, 24, .92);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 99;
  transition: opacity .28s var(--ease), transform .35s var(--spring), visibility .28s;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

#mega-products { width: min(980px, calc(100vw - 32px)); }

.mega__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 12px;
}

.mega__link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background .2s var(--ease), transform .2s var(--spring);
}
.mega__link:hover { background: rgba(255, 255, 255, .06); transform: translateX(2px); }

.mega__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(86,215,227,.16), rgba(79,139,255,.12));
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--accent);
}
.mega__icon svg { width: 17px; height: 17px; }
.mega__icon img { width: 19px; height: 19px; }

.mega__name { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.mega__desc { display: block; font-size: 12.8px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

.mega__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.mega__foot span { color: var(--muted); font-size: 13.5px; }

/* Mobile nav */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--spring), opacity .2s var(--ease);
}
.burger span + span { margin-top: 4px; }
.burger.is-open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 98;
  padding: 22px 24px 60px;
  background: rgba(12, 12, 14, .97);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .3s var(--spring), visibility .25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mobile-nav details {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav__sub { padding: 2px 2px 14px; display: grid; gap: 2px; }
.mobile-nav__sub a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 15px;
}
.mobile-nav__sub a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.mobile-nav__single {
  display: block;
  padding: 18px 2px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn-login { margin-top: 26px; width: 100%; justify-content: center; padding: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 84px;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__canvas { width: 100%; height: 100%; opacity: .55; }

.hero__glow {
  position: absolute;
  left: 50%;
  top: -10%;
  width: 1100px;
  height: 740px;
  transform: translateX(-50%);
  background:
    radial-gradient(45% 50% at 50% 42%, rgba(86, 215, 227, .14), transparent 70%),
    radial-gradient(38% 42% at 68% 56%, rgba(79, 139, 255, .12), transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 10%, transparent 80%);
}

.hero__inner { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  color: var(--text-dim);
  backdrop-filter: blur(10px);
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(86, 215, 227, .6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(86, 215, 227, .5); }
  70% { box-shadow: 0 0 0 10px rgba(86, 215, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(86, 215, 227, 0); }
}

.hero h1 {
  margin: 26px auto 0;
  max-width: 980px;
  font-size: clamp(34px, 5.1vw, 58px);
  font-weight: 700;
  letter-spacing: -.025em;
}
.grad {
  background: linear-gradient(100deg, #ffffff 10%, #a9e9f1 45%, #6fb6ff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 18px auto 0;
  max-width: 820px;
  font-size: clamp(17px, 2.1vw, 23px);
  font-weight: 500;
  color: #dfe5ea;
  letter-spacing: -.015em;
}
.hero__sub span { color: var(--accent); }

.hero__text {
  margin: 22px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15.5px;
}

.hero__cta { margin-top: 34px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.stats {
  position: relative;
  z-index: 1;
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat {
  padding: 26px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  backdrop-filter: blur(8px);
  transition: border-color .25s var(--ease), transform .3s var(--spring), background .25s var(--ease);
}
.stat:hover { border-color: rgba(86, 215, 227, .4); transform: translateY(-4px); }
.stat__num {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, #fff, #9fe4ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.svc-col {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .02);
}
.svc-col__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.svc-card {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .22s var(--ease), border-color .22s var(--ease), transform .25s var(--spring);
}
.svc-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: translateY(-2px);
}
.svc-card__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(86,215,227,.18), rgba(79,139,255,.1));
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--accent);
}
.svc-card__icon svg { width: 18px; height: 18px; }
.svc-card__name { display: block; font-size: 15px; font-weight: 600; }
.svc-card__desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ---------- Products ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 22px;
}
.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(86, 215, 227, .09), transparent 60%),
    rgba(255, 255, 255, .025);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .3s var(--spring), box-shadow .3s var(--ease);
}
.prod-card:hover {
  border-color: rgba(86, 215, 227, .38);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.prod-card__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(86,215,227,.2), rgba(79,139,255,.14));
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--accent);
  margin-bottom: 18px;
}
.prod-card__mark svg { width: 22px; height: 22px; }
.prod-card__mark img { width: 25px; height: 25px; }
.prod-card h3 { font-size: 20px; font-weight: 650; }
.prod-card p { margin-top: 10px; color: var(--muted); font-size: 14.5px; flex: 1; }
.prod-card .link-arrow { margin-top: 20px; }
.prod-card__tag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 10px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- Prose ---------- */
.prose { max-width: 900px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.prose p { color: var(--muted); font-size: 15.5px; }
.prose p + p { margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.faq__btn:hover { color: var(--accent); }
.faq__no { font-size: 13px; font-weight: 700; color: var(--accent); opacity: .75; }
.faq__q { flex: 1; font-size: 16.5px; font-weight: 550; letter-spacing: -.01em; }
.faq__plus {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: transform .35s var(--spring), border-color .25s var(--ease);
}
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  inset: 50% 7px auto;
  height: 1.5px;
  background: currentColor;
  transform: translateY(-50%);
  transition: opacity .25s var(--ease);
}
.faq__plus::after { transform: translateY(-50%) rotate(90deg); }
.faq__item.is-open .faq__plus { transform: rotate(135deg); border-color: var(--accent); }
.faq__item.is-open .faq__plus::after { opacity: 0; }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  padding: 0 44px 24px 44px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Marquee (references) ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 68px;
  align-items: center;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  height: 44px;
}
.marquee__item img {
  height: 40px;
  width: auto;
  opacity: .55;
  filter: grayscale(1);
  transition: opacity .28s var(--ease), filter .28s var(--ease), transform .28s var(--spring);
}
.marquee__item:hover img { opacity: 1; filter: grayscale(0); transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Contact band / pre-footer ---------- */
.cta-band {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(86, 215, 227, .09), transparent 60%),
    radial-gradient(50% 120% at 85% 100%, rgba(79, 139, 255, .08), transparent 60%);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 42px;
  align-items: start;
}
.cta-grid h2 { font-size: clamp(24px, 3vw, 32px); }
.cta-grid p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.cta-col__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text-dim);
  transition: background .2s var(--ease), color .2s var(--ease), transform .25s var(--spring), border-color .2s var(--ease);
}
.socials a:hover {
  background: rgba(86, 215, 227, .12);
  border-color: rgba(86, 215, 227, .4);
  color: var(--accent);
  transform: translateY(-3px);
}
.socials svg { width: 17px; height: 17px; }

.info-list { display: grid; gap: 14px; }
.info-list__row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.info-list__row svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.info-list__row span { color: var(--muted); }
.info-list__row a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 30px; background: #0a0a0c; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer__brand .logo__mark svg { width: 28px; height: 32px; }
.footer__brand .logo__text { font-size: 23px; }
.footer__brand p { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 320px; }
.footer__title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__links a:hover { color: var(--accent); padding-left: 3px; }

.footer__cluster {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.cluster-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px 14px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 0% 50%, rgba(255, 90, 90, .16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: border-color .25s var(--ease), background .25s var(--ease),
              transform .35s var(--spring), box-shadow .3s var(--ease);
}
.cluster-badge:hover {
  border-color: rgba(255, 120, 120, .5);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 70, 70, .22), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.cluster-badge__flag svg {
  width: 45px;
  height: 30px;
  display: block;
  border-radius: 4px;
  filter: drop-shadow(0 3px 12px rgba(227, 10, 23, .5));
  transition: filter .3s var(--ease), transform .35s var(--spring);
}
.cluster-badge:hover .cluster-badge__flag svg {
  filter: drop-shadow(0 6px 22px rgba(227, 10, 23, .75));
  transform: scale(1.03);
}
.cluster-badge__text {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.015em;
  color: #fff;
  text-shadow: 0 1px 12px rgba(255, 255, 255, .16);
}

.footer__bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
}
.footer__bottom a:hover { color: var(--accent); }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Floating contact ---------- */
.fab-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab-list {
  display: grid;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .35s var(--spring), visibility .25s;
}
.fab-wrap.is-open .fab-list { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--border);
  background: rgba(22, 22, 26, .92);
  backdrop-filter: blur(14px);
  font-size: 13.5px;
  color: var(--text-dim);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: background .2s var(--ease), color .2s var(--ease), transform .25s var(--spring);
}
.fab-item:hover { background: rgba(32, 32, 38, .96); color: #fff; transform: translateX(-3px); }
.fab-item svg { width: 16px; height: 16px; color: var(--accent); }
.fab-toggle {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #56d7e3, #4f8bff);
  color: #06262a;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(86, 215, 227, .35);
  transition: transform .35s var(--spring), box-shadow .25s var(--ease);
}
.fab-toggle:hover { transform: scale(1.06); }
.fab-wrap.is-open .fab-toggle { transform: rotate(135deg); }
.fab-toggle svg { width: 22px; height: 22px; }

/* ---------- Cookie bar ---------- */
.cookie {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 95;
  width: min(430px, calc(100vw - 44px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(18, 18, 22, .95);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .4s var(--spring), visibility .3s;
}
.cookie.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie h4 { font-size: 15px; margin-bottom: 8px; }
.cookie p { font-size: 13px; color: var(--muted); }
.cookie a { color: var(--accent); }
.cookie__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cookie__actions .btn { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 48px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 90% at 18% 0%, rgba(86, 215, 227, .1), transparent 60%),
    radial-gradient(45% 80% at 82% 20%, rgba(79, 139, 255, .09), transparent 65%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  max-width: 860px;
}
.page-hero p { margin-top: 16px; max-width: 700px; color: var(--muted); font-size: 16px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Service / product detail cards ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .025);
  transition: border-color .25s var(--ease), transform .3s var(--spring), background .25s var(--ease);
}
.tile:hover { border-color: rgba(86, 215, 227, .35); transform: translateY(-4px); background: rgba(255, 255, 255, .045); }
.tile__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(86,215,227,.18), rgba(79,139,255,.12));
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--accent);
  margin-bottom: 16px;
}
.tile__icon svg { width: 20px; height: 20px; }
.tile__icon img { width: 23px; height: 23px; }
.tile h3 { font-size: 18px; font-weight: 620; }
.tile p { margin-top: 9px; color: var(--muted); font-size: 14.5px; flex: 1; }
.tile ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tile li { position: relative; padding-left: 20px; font-size: 13.8px; color: var(--text-dim); }
.tile li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--text-dim); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 138px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6e767f; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(86, 215, 227, .55);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 0 0 4px rgba(86, 215, 227, .12);
}
.field select { appearance: none; background-image: none; cursor: pointer; }
.field select option { background: #15151a; }
.form-note { margin-top: 14px; font-size: 12.8px; color: var(--muted); }
.form-msg {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(86, 215, 227, .35);
  background: rgba(86, 215, 227, .1);
  color: #bdeef4;
  font-size: 14px;
  display: none;
}
.form-msg.is-visible { display: block; }

/* ---------- Login page ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 50px) 24px 70px;
  position: relative;
  overflow: hidden;
}
.auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 45% at 50% 25%, rgba(86, 215, 227, .12), transparent 65%),
    radial-gradient(40% 40% at 70% 80%, rgba(79, 139, 255, .1), transparent 70%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 40px 36px 34px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(20, 20, 24, .78);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.auth-card__mark { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card__mark .logo__mark svg { width: 30px; height: 34px; }
.auth-card__mark .logo__text { font-size: 24px; }
.auth-card h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.auth-card__sub { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.auth-form { margin-top: 28px; display: grid; gap: 12px; text-align: left; }
.auth-input {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input input {
  width: 100%;
  padding: 15px 46px 15px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 15.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.auth-input input::placeholder { color: #767e88; }
.auth-input input:focus {
  outline: none;
  border-color: rgba(0, 113, 227, .75);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .18);
}
.auth-input__btn {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.auth-input__btn:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.auth-input__btn svg { width: 18px; height: 18px; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  font-size: 13.5px;
}
.switch { display: inline-flex; align-items: center; gap: 9px; color: var(--text-dim); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
  width: 38px;
  height: 22px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .14);
  padding: 2px;
  transition: background .25s var(--ease);
}
.switch__thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  transition: transform .3s var(--spring);
}
.switch input:checked + .switch__track { background: var(--apple-blue); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); }
.auth-row a { color: var(--apple-blue); font-weight: 500; }
.auth-row a:hover { text-decoration: underline; }

.auth-submit {
  margin-top: 10px;
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: var(--apple-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 550;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 113, 227, .3);
  transition: background .2s var(--ease), transform .2s var(--spring), box-shadow .25s var(--ease);
}
.auth-submit:hover { background: var(--apple-blue-hover); box-shadow: 0 12px 30px rgba(0, 113, 227, .42); }
.auth-submit:active { transform: scale(.985); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: var(--muted);
  font-size: 12.5px;
}
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.auth-alt { display: grid; gap: 10px; }
.auth-alt button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--spring), border-color .2s var(--ease);
}
.auth-alt button:hover { background: rgba(255, 255, 255, .09); border-color: var(--border-strong); }
.auth-alt button:active { transform: scale(.985); }
.auth-alt svg { width: 17px; height: 17px; }

.auth-foot { margin-top: 24px; font-size: 12.8px; color: var(--muted); line-height: 1.6; }
.auth-foot a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.auth-foot a:hover { color: var(--accent); }
.auth-back { margin-top: 22px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; }
.auth-back:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--spring);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .header__inner { justify-content: space-between; }
  .header__actions .btn-login { display: none; }
  .svc-grid, .prod-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .container { padding-inline: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:last-child { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .faq__panel p { padding-left: 4px; padding-right: 4px; }
  .faq__q { font-size: 15.5px; }
  .marquee__track { gap: 44px; }
  .marquee__item img { height: 32px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .fab-wrap { right: 14px; bottom: 14px; }
  .auth-card { padding: 32px 22px 28px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
}

/* ==========================================================================
   Blog — listing, article, Ubuntu terminal component
   ========================================================================== */

/* ---------- Blog listing ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .3s var(--spring), box-shadow .3s var(--ease);
}
.post-card:hover {
  border-color: rgba(86, 215, 227, .38);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.post-card__cover {
  position: relative;
  aspect-ratio: 16 / 8.4;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(86, 215, 227, .22), transparent 62%),
    linear-gradient(145deg, #1b1430, #2a0f26 55%, #141018);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.post-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 75%);
}
.post-card__cve {
  position: relative;
  z-index: 1;
  font-family: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(20px, 3.4vw, 27px);
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55);
}
.post-card__score {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--pill);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(227, 10, 23, .9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(227, 10, 23, .4);
}
.post-card__score--high { background: rgba(240, 130, 20, .92); box-shadow: 0 6px 18px rgba(240, 130, 20, .35); }
.post-card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.post-card h3 { font-size: 18.5px; font-weight: 640; line-height: 1.32; }
.post-card p { margin-top: 10px; color: var(--muted); font-size: 14.2px; flex: 1; }
.post-card__foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Article layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .025);
}
.toc__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13.4px;
  color: var(--text-dim);
  line-height: 1.4;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero) ". "; color: var(--accent); opacity: .7; }
.toc a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.toc a.is-current { background: rgba(86, 215, 227, .12); color: #fff; }

.article { max-width: 820px; }
.article h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 620;
  margin-top: 46px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.article h3 { font-size: 18px; font-weight: 620; margin-top: 30px; }
.article p { color: var(--text-dim); font-size: 15.8px; margin-top: 14px; line-height: 1.72; }
.article p code, .article li code {
  font-family: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(86, 215, 227, .1);
  border: 1px solid rgba(86, 215, 227, .18);
  color: #9fe9f2;
}
.article ul, .article ol { margin: 16px 0 0; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.article li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 15.2px; line-height: 1.6; }
.article ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.article ol { counter-reset: li; }
.article ol li { padding-left: 30px; }
.article ol li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Callout boxes */
.callout {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: rgba(86, 215, 227, .06);
}
.callout--warn { border-left-color: #f0a020; background: rgba(240, 160, 32, .07); }
.callout--danger { border-left-color: #e8464a; background: rgba(232, 70, 74, .07); }
.callout__title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.callout--warn .callout__title { color: #f0a020; }
.callout--danger .callout__title { color: #ff7a7d; }
.callout p { margin-top: 8px; font-size: 14.8px; }

/* Advisory table */
.meta-table { margin-top: 24px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.meta-table__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 18px;
  font-size: 14.4px;
}
.meta-table__row + .meta-table__row { border-top: 1px solid var(--border); }
.meta-table__row span:first-child { color: var(--muted); }
.meta-table__row span:last-child { color: var(--text); }
.sev {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: var(--pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(227, 10, 23, .16);
  border: 1px solid rgba(227, 10, 23, .4);
  color: #ff8c8f;
}
.sev--high { background: rgba(240, 130, 20, .14); border-color: rgba(240, 130, 20, .4); color: #ffbe74; }

/* Article hero */
.article-hero { padding: calc(var(--header-h) + 54px) 0 34px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 15% 0%, rgba(86, 215, 227, .1), transparent 62%);
  pointer-events: none;
}
.article-hero > .container { position: relative; z-index: 1; }
.article-hero h1 { font-size: clamp(27px, 3.9vw, 41px); font-weight: 700; max-width: 880px; margin-top: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; font-size: 13.4px; color: var(--muted); }
.article-meta__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, .04);
  color: var(--text-dim);
}
.article-meta__chip svg { width: 14px; height: 14px; color: var(--accent); }

/* Sources */
.sources { margin-top: 18px; display: grid; gap: 10px; }
.sources a { color: var(--text-dim); font-size: 14.6px; display: inline-flex; gap: 8px; align-items: baseline; }
.sources a:hover { color: var(--accent); }
.sources a span { color: var(--accent); }

/* ---------- Ubuntu terminal ---------- */
.term {
  margin: 28px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
  background: #300a24;
}
.term__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  background: linear-gradient(180deg, #403d3a, #2f2c2a);
  border-bottom: 1px solid #1d1b1a;
}
.term__title {
  font-family: "Ubuntu", -apple-system, "Segoe UI", sans-serif;
  font-size: 12.6px;
  font-weight: 500;
  color: #d8d2cd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}
.term__btns { position: absolute; right: 10px; display: flex; gap: 7px; }
.term__btns i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-style: normal;
  color: rgba(0, 0, 0, .55);
  background: #5a5755;
}
.term__btns i:nth-child(3) { background: #e95420; color: rgba(255, 255, 255, .8); }
.term__copy {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: #d8d2cd;
  font-family: "Ubuntu", sans-serif;
  font-size: 11px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.term__copy:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.term__copy.is-done { color: #8ae234; border-color: rgba(138, 226, 52, .4); }

.term__body {
  margin: 0;
  padding: 16px 18px 18px;
  font-family: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15.4px;
  line-height: 1.55;
  color: #eeeeec;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  min-height: 70px;
}
.term__body .u { color: #8ae234; font-weight: 700; }
.term__body .d { color: #729fcf; font-weight: 700; }
.term__body .o { color: #d3d7cf; }
.term__body .g { color: #8ae234; }
.term__body .r { color: #ef2929; font-weight: 700; }
.term__body .y { color: #fce94f; }
.term__body .c { color: #34e2e2; }
.term__body .m { color: #ad7fa8; }
.term__body .dim { color: #8b8580; }
.term__cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  margin-left: 1px;
  vertical-align: -3px;
  background: #eeeeec;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.term__out { transition: opacity .25s var(--ease); }
.term__out.is-pending { opacity: 0; }

.term-cap {
  margin: 10px 0 0;
  font-size: 13.2px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .term__cursor { animation: none; }
  .term__out.is-pending { opacity: 1; }
}

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc ol { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .toc ol { grid-template-columns: 1fr; }
  .meta-table__row { grid-template-columns: 1fr; gap: 4px; }
  .term__body { font-size: 14px; padding: 14px; }
  .term__title { font-size: 11.5px; max-width: 58%; }
  .term__copy { display: none; }
}

/* ---------- Sign-in: states, alerts, spinner ---------- */
.auth-alert {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.8px;
  line-height: 1.5;
  text-align: left;
  border: 1px solid transparent;
}
.auth-alert.is-error {
  display: block;
  border-color: rgba(232, 70, 74, .45);
  background: rgba(232, 70, 74, .12);
  color: #ffb4b6;
}
.auth-alert.is-info {
  display: block;
  border-color: rgba(86, 215, 227, .4);
  background: rgba(86, 215, 227, .1);
  color: #bdeef4;
}
.auth-alert b { color: #fff; font-weight: 600; }

.auth-input input.is-invalid {
  border-color: rgba(232, 70, 74, .8);
  box-shadow: 0 0 0 4px rgba(232, 70, 74, .14);
}

.auth-card.is-shaking { animation: authShake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes authShake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.auth-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-submit[disabled] { opacity: .62; cursor: not-allowed; transform: none; }
.auth-submit[disabled]:hover { background: var(--apple-blue); box-shadow: 0 8px 24px rgba(0, 113, 227, .3); }

.auth-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: authSpin .7s linear infinite;
}
.auth-submit.is-busy .auth-spinner { display: inline-block; }
@keyframes authSpin { to { transform: rotate(360deg); } }

.auth-caps {
  display: none;
  margin-top: 6px;
  font-size: 12.4px;
  color: #ffd27a;
  text-align: left;
}
.auth-caps.is-on { display: block; }

@media (prefers-reduced-motion: reduce) {
  .auth-card.is-shaking { animation: none; }
  .auth-spinner { animation-duration: 2s; }
}
