/* ==========================================================================
   ANVIL.NET.NZ — Anvil Solutions Ltd
   Dark glassmorphism "forge / SOC dashboard" aesthetic, shared across the
   Anvil Solutions family of sites (anvil.net.fj, secure.net.fj, vibecoding.nz).
   Space Grotesk + Barlow Condensed, red/cyan/gold accents, glass panels.
   ========================================================================== */
:root {
  --bg:     #07090f;
  --bg2:    #0d1120;
  --bg3:    #10142a;
  --red:    #e8001d;
  --red2:   #ff3348;
  --cyan:   #00d4f0;
  --gold:   #ffb830;
  --green:  #00e87a;
  --text:   #e8eaf0;
  --muted:  rgba(232,234,240,0.55);
  --glass:  rgba(255,255,255,0.05);
  --glass2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.10);
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   30px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
main { position: relative; z-index: 2; display: block; }

/* Vertical rhythm: every section pads symmetrically so boundaries between
   alternating backgrounds always get equal breathing room (~90px desktop).
   .section-tight is ONLY for the first section after a page hero that shares
   its background — the hero's bottom padding already provides the gap. */
.section-inner {
  position: relative; z-index: 2;
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) 0;
}
.section-tight .section-inner { padding-top: clamp(12px, 2vw, 24px); }
.section-narrow .section-inner { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }

.section-alt { background: var(--bg2); }

/* ---------- skip link ------------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red2); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- ambient glow --------------------------------------------------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-fx::before, .bg-fx::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px);
}
.bg-fx::before {
  width: 60vw; height: 60vw; top: -22vw; left: -18vw;
  background: radial-gradient(circle, rgba(232,0,29,0.22), transparent 70%);
}
.bg-fx::after {
  width: 50vw; height: 50vw; bottom: -10vw; right: -15vw;
  background: radial-gradient(circle, rgba(0,212,240,0.14), transparent 70%);
}

/* ---------- forge grid / scanline texture ----------------------------------- */
.grid-fx {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- typography ------------------------------------------------------ */
.eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem;
  font-weight: 600; color: var(--cyan); margin-bottom: 14px;
}
h1 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800;
  font-size: clamp(3rem, 7.4vw, 5.6rem); line-height: 0.98; letter-spacing: -0.01em;
  color: #fff; text-wrap: balance; margin-bottom: 22px;
}
h2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.04; color: #fff;
  margin-bottom: 16px; text-wrap: balance;
}
h3 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 1.3rem; color: #fff; margin-bottom: 6px;
}
h4 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 1.1rem; color: #fff; margin-bottom: 6px;
}
.accent-red { color: var(--red2); font-style: italic; }
.accent-cyan { color: var(--cyan); font-style: italic; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: rgba(232,234,240,0.82); max-width: 58ch; line-height: 1.7; }
.fineprint { margin-top: 20px; color: var(--muted); font-size: 0.84rem; }
.review-credit { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.review-credit img { width: 62px; height: auto; border-radius: 8px; flex: 0 0 auto; }
.review-credit a { color: var(--cyan); }
.muted { color: var(--muted); font-size: 0.86rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,9,15,0.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(1200px, 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.55rem;
  letter-spacing: -0.01em; color: #fff; display: flex; align-items: center; gap: 8px;
}
.brand-mark .spark { color: var(--red2); }
.brand-mark-img { height: 34px; width: auto; mix-blend-mode: screen; }
.brand-sep { width: 1px; height: 20px; background: var(--border); }
.brand-sub { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem; color: #fff; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
/* 44px minimum tap target (WCAG 2.5.8 / iOS HIG). */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0; margin-right: -8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }
.nav-mobile {
  display: none; flex-direction: column; gap: 2px;
  width: min(1200px, 92vw); margin: 0 auto; padding: 4px 0 20px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 13px 4px; text-decoration: none; color: var(--text); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile-cta { display: flex; gap: 10px; padding-top: 16px; }

/* ---------- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 0.96rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-lg { padding: 16px 32px; font-size: 1.04rem; }
.btn-red { background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; box-shadow: 0 8px 28px rgba(232,0,29,0.4); }
.btn-red:hover { box-shadow: 0 12px 36px rgba(232,0,29,0.6); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--glass2); }
.btn-block { width: 100%; }

/* ---------- hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(20px, 4vw, 40px); }

/* Homepage hero: real forge photo behind a heavy dark gradient (secure.net.fj pattern) */
.hero-photo .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  /* The source photo is 1024px wide; a larger file would just be an upscale.
     Phones get the 640px variant so they do not pull the desktop image. */
  background-image: url("/assets/img/hero-datacentre-1024.webp");
  background-size: cover; background-position: center 50%;
  filter: saturate(1.15) brightness(0.55);
  transform: scale(1.04);
  animation: slowzoom 24s ease-in-out infinite alternate;
}
@media (max-width: 760px) {
  .hero-photo .hero-bg { background-image: url("/assets/img/hero-datacentre-640.webp"); }
}
@keyframes slowzoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-photo .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(7,9,15,0.94) 0%, rgba(7,9,15,0.62) 55%, rgba(7,9,15,0.32) 100%),
    linear-gradient(to top, rgba(7,9,15,0.97) 0%, transparent 55%);
}
@media (prefers-reduced-motion: reduce) { .hero-photo .hero-bg { animation: none; } }
.hero-scanlines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05;
  background: repeating-linear-gradient(0deg, #fff 0px, #fff 1px, transparent 1px, transparent 3px);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats { display: flex; flex-direction: column; gap: 14px; }

.stat-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 20px 22px; border-left: 3px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-red { border-left-color: var(--red2); }
.stat-cyan { border-left-color: var(--cyan); }
.stat-gold { border-left-color: var(--gold); }
.stat-val { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 2.2rem; color: #fff; line-height: 1; }
.stat-val small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.stat-lbl { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* page hero (interior pages, shorter) */
.page-hero .section-inner { padding-top: clamp(50px, 8vw, 80px); padding-bottom: clamp(40px, 6vw, 60px); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 0.86rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current {
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: min(52ch, 62vw);
}

/* ---------- section head ----------------------------------------------------- */
.section-head { max-width: 76ch; margin-bottom: 48px; }

/* ---------- feature rows ------------------------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.feature-grid .feature-row { margin-bottom: 0; }
.feature-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.icon-red { background: rgba(232,0,29,0.14); color: var(--red2); }
.icon-cyan { background: rgba(0,212,240,0.14); color: var(--cyan); }
.icon-gold { background: rgba(255,184,48,0.14); color: var(--gold); }
.feature-row p { color: rgba(232,234,240,0.75); font-size: 0.96rem; }

.callout {
  margin-top: 40px; padding: 26px 30px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  max-width: 80ch;
}
.callout p { color: rgba(232,234,240,0.82); margin-bottom: 12px; font-size: 0.98rem; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--gold); }
/* Industry-page checklist: two columns of bullets rather than one tall stack. */
.callout-wide { max-width: none; margin-top: 0; }
.callout-wide .service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin: 0; }
@media (max-width: 760px) { .callout-wide .service-list { grid-template-columns: 1fr; } }

/* ---------- service / offering cards ------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.service-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 32px; display: flex; flex-direction: column; gap: 4px;
  text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s;
}
a.service-card:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-3px); }
.service-card .feature-icon { margin-bottom: 14px; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.service-card p { color: rgba(232,234,240,0.75); font-size: 0.94rem; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 18px 0 6px; }
.service-list li { padding-left: 22px; position: relative; font-size: 0.94rem; color: rgba(232,234,240,0.82); }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--cyan);
}
.service-card.card-red .service-list li::before { background: var(--red2); }
.service-card.card-gold .service-list li::before { background: var(--gold); }
.card-link { margin-top: 18px; font-size: 0.9rem; font-weight: 600; color: var(--cyan); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---------- terminal panel ------------------------------------------------------ */
.terminal-panel {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: rgba(255,255,255,0.04); border-bottom: 1px solid var(--border);
}
.terminal-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-head .dot.red { background: var(--red2); }
.terminal-head .dot.gold { background: var(--gold); }
.terminal-head .dot.green { background: var(--green); }
.terminal-title { margin-left: 8px; color: var(--muted); font-size: 0.8rem; font-family: monospace; }
.terminal-body { padding: 22px 24px; font-family: "Space Grotesk", monospace; font-size: 0.88rem; }
.terminal-body p { margin-bottom: 9px; color: rgba(232,234,240,0.8); }
.t-muted { color: var(--muted); }
.t-red { color: var(--red2); }
.t-cyan { color: var(--cyan); font-weight: 600; }
.t-gold { color: var(--gold); font-weight: 600; }
.t-green { color: var(--green); font-weight: 600; }
.terminal-caption { margin-top: 18px; color: var(--muted); font-size: 0.92rem; text-align: center; }

/* ---------- compare table -------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { padding: 30px 32px; border-radius: var(--r-md); border: 1px solid var(--border); }
.compare-without { background: rgba(232,0,29,0.05); border-color: rgba(232,0,29,0.25); }
.compare-with { background: rgba(0,212,240,0.06); border-color: rgba(0,212,240,0.3); }
.compare-col h3 { margin-bottom: 18px; }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.compare-col li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: rgba(232,234,240,0.85); }
.glyph { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; margin-top: 1px; }
.glyph.no { background: rgba(232,0,29,0.18); color: var(--red2); }
.glyph.yes { background: rgba(0,232,122,0.18); color: var(--green); }

/* ---------- split panel / mosaic -------------------------------------------------- */
.panel-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.mosaic { display: grid; gap: 12px; position: sticky; top: 100px; }
.mosaic-tile {
  height: 130px; border-radius: var(--r-md); border: 1px solid var(--border);
  display: flex; align-items: flex-end; padding: 16px; position: relative; overflow: hidden;
  transition: transform .3s;
}
.mosaic-tile:hover { transform: scale(1.04); }
.tile-1 { background: linear-gradient(135deg, rgba(232,0,29,0.22), rgba(13,17,32,0.6)); }
.tile-2 { background: linear-gradient(135deg, rgba(0,212,240,0.2), rgba(13,17,32,0.6)); height: 100px; }
.tile-3 { background: linear-gradient(135deg, rgba(255,184,48,0.2), rgba(13,17,32,0.6)); height: 160px; }
.mosaic-tag { font-size: 0.82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.tag-red { background: rgba(232,0,29,0.3); color: #fff; }
.tag-cyan { background: rgba(0,212,240,0.3); color: #fff; }
.tag-gold { background: rgba(255,184,48,0.3); color: #fff; }

.panel-copy .feature-row { margin-bottom: 28px; }
.trust-note { margin-top: 30px; padding: 20px 24px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 0.94rem; color: rgba(232,234,240,0.82); }
.trust-note strong { color: var(--gold); }

/* ---------- team ------------------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.team-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px; text-align: center;
}
.team-avatar {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff;
}
.team-card h3 { font-size: 1.1rem; }
.team-role { color: var(--cyan); font-size: 0.84rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- quote / testimonials ---------------------------------------------------- */
/* ---------- about: "our story" across both halves of the page ------------------------- */
.story-columns { columns: 2; column-gap: clamp(30px, 5vw, 60px); }
.story-columns p {
  margin: 0 0 16px; color: rgba(232,234,240,0.82);
  break-inside: avoid; -webkit-column-break-inside: avoid;
}
.story-quote { margin-top: clamp(24px, 4vw, 40px); }

/* ---------- portal: annotated screenshots ------------------------------------------- */
.shot {
  margin: 0; border: 1px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg3);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption {
  padding: 10px 14px; font-size: 0.84rem; color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- service pages: hero photo beside the copy ------------------------------- */
.service-shot {
  margin: 0; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  aspect-ratio: 4 / 3; position: sticky; top: 100px;
}
.service-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.95) contrast(1.02);
}
@media (max-width: 900px) {
  .service-shot { aspect-ratio: 16 / 9; position: static; }
}
/* accent used by the hardware page heading */
.accent-gold { color: var(--gold); font-style: italic; }
@media (max-width: 900px) { .story-columns { columns: 1; } }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.quote-card p { font-size: 0.94rem; color: rgba(232,234,240,0.85); line-height: 1.6; }
.quote-card p::before { content: open-quote; color: var(--red2); }
.quote-card p::after { content: close-quote; color: var(--red2); }
.quote-name { font-family: "Barlow Condensed", sans-serif; font-weight: 700; color: #fff; font-size: 1rem; }
.quote-carousel { overflow-x: auto; display: flex; gap: 22px; padding-bottom: 8px; scroll-snap-type: x proximity; }
.quote-carousel .quote-card { min-width: 300px; flex: 0 0 300px; scroll-snap-align: start; }

/* On phones the 14-card testimonial grid is a wall of text, so it collapses to the
   first few and expands on tap. The button is injected by main.js, so with JS off
   the full list simply stays visible. */
.quote-more { display: none; }
/* The browser's UA rule for [hidden] is display:none, but any class-level display
   (e.g. .quote-card { display: flex }) outranks it. Make hidden actually hide. */
[hidden] { display: none !important; }
.quote-shuffle { margin-top: 24px; }
/* Screen-reader-only announcement region for the rotator. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.quote-grid.is-capped .quote-card.is-hidden { display: none; }
@media (max-width: 760px) {
  .quote-grid.is-capped ~ .quote-more,
  .quote-grid.is-expanded ~ .quote-more { display: inline-flex; margin-top: 20px; }
}
.quote-carousel::-webkit-scrollbar { height: 8px; }
.quote-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

/* ---------- faq accordion ----------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: "Barlow Condensed", sans-serif; font-weight: 600; font-size: 1.08rem; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--cyan); flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 22px 20px; color: rgba(232,234,240,0.78); font-size: 0.95rem; max-width: 75ch; }

/* ---------- pill cloud ---------------------------------------------------------------- */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--glass); font-size: 0.9rem; font-weight: 500; color: rgba(232,234,240,0.85);
  text-decoration: none;
}
.pill-hot { background: rgba(232,0,29,0.14); border-color: rgba(232,0,29,0.4); color: #fff; font-weight: 600; }
/* Toolkit pills link out to the Bitdefender product pages. */
a.pill { text-decoration: none; transition: border-color .18s, background .18s, transform .18s; }
a.pill:hover { border-color: rgba(0,212,240,0.45); background: var(--glass2); transform: translateY(-2px); }
a.pill.pill-hot:hover { border-color: rgba(255,51,72,0.7); }
a.pill::after { content: " \2197"; opacity: 0.55; font-size: 0.85em; }
@media (prefers-reduced-motion: reduce) { a.pill:hover { transform: none; } }
.beyond-note { margin-top: 32px; }
.beyond-note strong { color: var(--cyan); }

/* ---------- partner logos strip -------------------------------------------------------- */
.partner-strip { display: flex; flex-wrap: wrap; gap: 16px; }
.partner-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-sm);
  background: var(--glass); border: 1px solid var(--border);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff;
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.partner-chip:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }
.partner-chip .badge {
  font-family: "Space Grotesk", sans-serif; font-size: 0.7rem; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.04em;
}
.logo-plate {
  background: #fff; border-radius: 8px; padding: 8px 14px;
  display: flex; align-items: center; justify-content: center; height: 36px;
}
.logo-plate img { height: 100%; width: auto; max-width: 130px; object-fit: contain; }
.partner-chip.plain { background: transparent; border-color: var(--border); }
.partner-chip.plain img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
.partner-card { display: flex; flex-direction: column; }
.partner-card p { flex: 1; }
.partner-card .post-readmore { margin-top: 14px; }

/* Partner cards (/partners/) carry a larger logo than the compact homepage strip. */
.partner-logo {
  display: flex; align-items: center; justify-content: center;
  height: 76px; margin-bottom: 20px;
}
.partner-logo.logo-plate { background: #fff; border-radius: 10px; padding: 14px 22px; }
.partner-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.partner-logo.plain img { max-height: 68px; }
@media (max-width: 620px) {
  .partner-logo { height: 62px; }
}

/* ---------- newsletter archive --------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: rgba(0,212,240,0.35); transform: translateY(-3px); }
.post-date { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.post-card h3 { font-size: 1.15rem; line-height: 1.25; }
.post-excerpt { color: rgba(232,234,240,0.72); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.post-readmore { font-size: 0.86rem; font-weight: 600; color: var(--red2); }
.archive-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }

/* ---------- featured images: card thumbs, post + archive banners ----------------------- */
/* Sources come from the WordPress media library at wildly different aspect ratios
   (320x158 through 2526x1200), so every frame is a fixed ratio with object-fit: cover. */
.post-card.has-thumb { padding: 0; overflow: hidden; }
.post-card.has-thumb > :not(.post-thumb) { margin-left: 26px; margin-right: 26px; }
.post-card.has-thumb > .post-date { margin-top: 22px; }
.post-card.has-thumb > .post-readmore { margin-bottom: 26px; }
.post-thumb {
  display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg3); border-bottom: 1px solid var(--border);
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.9) contrast(1.02); transition: transform .35s ease, filter .2s;
}
.post-card:hover .post-thumb img { transform: scale(1.04); filter: saturate(1) contrast(1.02); }

.post-banner {
  margin: 0 auto 34px; max-width: 1000px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  aspect-ratio: 2 / 1;
}
.post-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.archive-banner {
  position: relative; display: block; margin: 0 auto 40px; max-width: 1100px;
  border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border);
  background: var(--bg3); box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  aspect-ratio: 21 / 9; text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.archive-banner:hover { border-color: rgba(0,212,240,0.35); transform: translateY(-3px); }
.archive-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-banner-caption {
  position: absolute; inset: auto 0 0 0; padding: 46px 30px 24px;
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(to top, rgba(7,9,15,0.94) 12%, rgba(7,9,15,0.72) 55%, rgba(7,9,15,0));
}
.archive-banner-caption .eyebrow { margin-bottom: 0; }
.archive-banner-caption strong {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 0.02em; font-weight: 700; line-height: 1.1;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem); color: #fff;
}

@media (max-width: 720px) {
  .post-banner { aspect-ratio: 16 / 9; margin-bottom: 26px; }
  .archive-banner { aspect-ratio: 16 / 9; margin-bottom: 28px; }
  .archive-banner-caption { padding: 34px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card:hover .post-thumb img { transform: none; }
  .archive-banner:hover { transform: none; }
}

/* ---------- article / prose (individual newsletter post) ------------------------------- */
.article-head { max-width: 76ch; margin: 0 auto; text-align: center; }
.article-head .post-date { display: block; margin-bottom: 14px; }
.article-body { max-width: 72ch; margin: 0 auto; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 40px; }
.article-body h3 { font-size: 1.2rem; margin-top: 28px; }
.article-body h4 { font-size: 1.05rem; margin-top: 24px; color: var(--cyan); }
.article-body p { margin-bottom: 18px; color: rgba(232,234,240,0.85); font-size: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 18px 1.3em; color: rgba(232,234,240,0.85); }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: #fff; }
.article-foot {
  max-width: 72ch; margin: 48px auto 0; padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.article-foot .btn { white-space: normal; text-align: center; line-height: 1.35; max-width: 100%; }

/* ---------- contact form ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 28px; display: flex; flex-direction: column; gap: 4px;
}
.contact-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 10px;
  text-decoration: none; color: var(--text); border-radius: var(--r-sm); transition: background .15s;
}
.contact-row:hover { background: var(--glass2); }
.contact-row-static:hover { background: none; }
.contact-row span { min-width: 0; word-break: break-word; }
.contact-ic { font-size: 1.3rem; flex: 0 0 26px; }
.contact-btn { margin-top: 12px; width: 100%; }

.form-panel {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 32px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-row label { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.form-row input, .form-row textarea, .form-row select {
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; outline: none; transition: border-color .15s, background .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--cyan); background: rgba(255,255,255,0.06);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- cta banner ------------------------------------------------------------------ */
.cta-banner { position: relative; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(232,0,29,0.25), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,212,240,0.2), transparent 55%),
    var(--bg2);
}
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .eyebrow { text-align: center; }
.cta-inner .lead { margin: 0 auto 28px; }
.cta-inner h2 { max-width: 26ch; }

/* ---------- footer ------------------------------------------------------------------------ */
.site-footer {
  position: relative; z-index: 2; border-top: 1px solid var(--border); background: var(--bg2);
}
.footer-inner { width: min(1200px, 92vw); margin: 0 auto; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
/* "Get Help" spans the full row beneath the link columns so its buttons run longways. */
.footer-help { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--border); }
.footer-brand-mark { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer-brand-mark .spark { color: var(--red2); }
.footer-brand-mark img { height: 30px; width: auto; mix-blend-mode: screen; }
.footer-tagline { color: var(--muted); font-size: 0.9rem; max-width: 32ch; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--glass); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--text); font-size: 0.9rem;
  transition: background .15s, border-color .15s;
}
.footer-social a:hover { background: var(--glass2); border-color: rgba(255,255,255,0.25); }
/* Contact form: reCAPTCHA v3 badge hidden — the required disclaimer is shown under the button instead. */
.grecaptcha-badge { visibility: hidden; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.4em; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-ok { color: #4ade80; }
.form-status.is-error { color: var(--red2); }
.recaptcha-note { margin-top: 10px; color: var(--muted); font-size: 0.78rem; }
.recaptcha-note a { color: inherit; text-decoration: underline; }
.footer-partner.logo-plate { display: inline-flex; height: 52px; padding: 6px 12px; margin-top: 18px; transition: transform 0.2s ease; }
.footer-partner.logo-plate img { max-width: 150px; }
.footer-partner:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .footer-partner:hover { transform: none; } }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
/* Padding rather than gap, so the link itself is the tap target. Scoped to the
   list links: a bare ".footer-col a" also matched .help-btn and flattened its
   horizontal padding. */
.footer-col ul a {
  color: rgba(232,234,240,0.75); text-decoration: none; font-size: 0.92rem;
  display: inline-block; padding: 7px 0; line-height: 1.3;
}
.footer-bottom-links a { padding: 6px 0; display: inline-block; }

/* ---------- footer "get help" action buttons --------------------------------------------
   The go-to path for a client who needs support, so these read as buttons rather
   than another column of links. */
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.help-actions .help-btn { flex: 1 1 200px; }
.help-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--glass); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: border-color .18s, background .18s, transform .18s;
}
.help-btn:hover {
  background: var(--glass2); border-color: rgba(0,212,240,0.45); transform: translateX(3px);
}
.help-btn-red {
  background: linear-gradient(135deg, rgba(232,0,29,0.9), rgba(255,51,72,0.9));
  border-color: transparent; box-shadow: 0 8px 24px rgba(232,0,29,0.28);
}
.help-btn-red:hover { border-color: transparent; background: linear-gradient(135deg, var(--red), var(--red2)); }
.help-ic { font-size: 1.15rem; line-height: 1; flex: 0 0 auto; }
.help-txt { display: flex; flex-direction: column; min-width: 0; }
.help-txt strong {
  font-family: "Barlow Condensed", sans-serif; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.15;
}
.help-txt small { font-size: 0.8rem; color: rgba(232,234,240,0.72); word-break: break-word; }
.help-btn-red .help-txt small { color: rgba(255,255,255,0.85); }
@media (prefers-reduced-motion: reduce) { .help-btn:hover { transform: none; } }
.footer-col ul a:hover { color: var(--cyan); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; }
.footer-bottom-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 0.82rem; }

/* ---------- 404 -------------------------------------------------------------------------- */
.error-page .section-inner { text-align: center; padding-top: clamp(90px, 14vw, 160px); padding-bottom: clamp(90px, 14vw, 160px); }
.error-code {
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: clamp(6rem, 18vw, 12rem);
  line-height: 0.9; background: linear-gradient(135deg, var(--red2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- scroll-reveal animation ---------------------------------------------------------
   Content is visible by default (progressive enhancement). JS only adds .reveal-pending to
   elements that are NOT already in the initial viewport, then removes it on intersection —
   so nothing ever depends on JS running to become visible. */
.ani-1, .ani-2, .ani-3, .ani-4 { transition: opacity .6s ease, transform .6s ease; }
.ani-2 { transition-delay: .08s; }
.ani-3 { transition-delay: .16s; }
.ani-4 { transition-delay: .24s; }
.reveal-pending { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  .ani-1, .ani-2, .ani-3, .ani-4 { transition: none; }
  .reveal-pending { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive --------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 220px; }
  .feature-grid, .feature-grid.cols-3 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .panel-split { grid-template-columns: 1fr; }
  .service-grid, .service-grid.cols-2 { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .mosaic { position: static; grid-template-columns: repeat(3, 1fr); }
  .mosaic-tile, .tile-2, .tile-3 { height: 110px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 620px) {
  .nav-cta .btn-ghost { display: none; }
  .brand-sep, .brand-sub { display: none; }
  .nav-inner { padding: 12px 0; }
  .nav-cta { gap: 8px; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-tile, .tile-2, .tile-3 { height: 90px; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .quote-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .two-col { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Full-width stacked CTAs read better than a cramped pair on phones */
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .article-foot { flex-direction: column; align-items: stretch; }
  .article-foot .btn { width: 100%; }
  .breadcrumbs .current { max-width: 100%; }
  .partner-strip .partner-chip { flex: 1 1 100%; justify-content: center; }
  .service-card { padding: 24px; }
  .form-panel { padding: 24px 18px; }
  .contact-card { padding: 20px 14px; }
  .terminal-body { padding: 18px 16px; font-size: 0.82rem; }
  .callout { padding: 20px 18px; }
  .compare-col { padding: 22px 18px; }
  .section-head { margin-bottom: 34px; }
}
