/* ==========================================================================
   Metronix, Inc. — stylesheet
   Design language: dark instrumentation/engineering theme. Monospace used
   for numeric/spec data to read like telemetry; Inter for prose.
   ========================================================================== */

:root {
  --bg:          #0a0f16;
  --bg-alt:      #0e1620;
  --surface:     #121b26;
  --surface-2:   #17222f;
  /* Bumped from #223243/#1b2733 — the originals sat at ~1.3:1 against the
     surface colors (barely visible), so card/section boundaries and
     dividers were hard to read as structure. --border-soft now sits where
     --border used to be; --border is a further step up for edges that
     need to read clearly (cards, inputs, tables). */
  --border:      #324861;
  --border-soft: #223243;
  --text:        #e7edf3;
  --text-dim:    #a8b8c9;
  --text-faint:  #7c8da1;
  /* Brand blue derived from the real Metronix logo (#004AAD, sampled
     directly from the logo file). The raw brand blue only hits ~2.4:1
     contrast against this dark background, so --accent is a brightened,
     same-hue version — bumped again from an earlier #2b7fee (4.4:1 on
     card surfaces, under the 4.5:1 AA threshold for normal text) to
     #3e8bef, which clears 4.5:1 against every surface color used
     site-wide, including the lightest (--surface-2, 4.7:1). --accent-dim
     is the actual, unmodified logo blue for lower-emphasis uses (subtle
     fills, gradients). See README "Media" for the source. */
  --accent:        #3e8bef;
  --accent-hover:  #5a9cf2;
  --accent-dim:    #004aad;
  --accent-rgb:    62, 139, 239;
  /* Green secondary accent — pairs with the brand blue and fits Metronix's
     actual business (environmental/weather monitoring) better than the
     amber it replaces. Deliberately NOT a blanket swap: blue stays the
     "brand/primary action" color (buttons, links, OEM-partner badges);
     green marks status/category/secondary information (kicker labels,
     generic category badges, "normal" status text, most illustration
     accents) — see README "Brand color". Clears 4.5:1 AA on every
     background in the palette with room to spare (5.8–6.9:1). */
  --accent-2:      #25b15f;
  --accent-2-rgb:  37, 177, 95;
  --danger:      #f0616d;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 10px 30px -12px rgba(0,0,0,0.55);
  --font-sans:   'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:   'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --container:   1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--text-dim); }
ul { padding: 0; margin: 0; list-style: none; }
code, .mono { font-family: var(--font-mono); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--bg);
  padding: .6rem 1rem; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------------- */
/* Buttons                                                                  */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                            */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 15, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand:hover { text-decoration: none; }
.brand__logo { display: block; height: 34px; width: auto; }
.brand__logo--footer { height: 30px; margin-bottom: 1.1rem; }

.mainnav { flex: 1; display: flex; justify-content: center; }
.mainnav__toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: .5rem; cursor: pointer;
}
.mainnav__list { display: flex; gap: 2rem; }
.mainnav__list a {
  color: var(--text-dim); font-weight: 500; font-size: .95rem; padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.mainnav__list a:hover, .mainnav__list a.is-active {
  color: var(--text); text-decoration: none; border-bottom-color: var(--accent);
}
.site-header__cta { white-space: nowrap; }

@media (max-width: 900px) {
  .mainnav__toggle { display: inline-flex; }
  .mainnav { display: block; position: absolute; top: 76px; left: 0; right: 0; }
  .mainnav__list {
    flex-direction: column; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    display: none; width: 100%; padding: .5rem 24px 1rem;
  }
  .mainnav__list.is-open { display: flex; }
  .mainnav__list a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--border-soft); }
  .site-header__cta { display: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 15% 20%, rgba(var(--accent-rgb),0.14), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(var(--accent-2-rgb),0.10), transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  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: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.3);
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fff; }
.hero h1 span { color: var(--accent); }
.hero__lede { font-size: 1.1rem; max-width: 55ch; }
.hero__actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.hero__panel-title { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 1rem; }
.telemetry-row { display: flex; justify-content: space-between; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid var(--border-soft); }
.telemetry-row:last-child { border-bottom: none; }
.telemetry-row .label { color: var(--text-dim); font-size: .9rem; }
.telemetry-row .value { font-family: var(--font-mono); color: var(--text); font-weight: 600; }
.telemetry-row .value.ok { color: var(--accent-2); }

.hero__stats-inline { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin: 1.75rem 0 0; }
.hero__stats-inline .spec-chip { font-size: .8rem; padding: .4rem .75rem; }

.hero__panel--photo { padding: 0; overflow: hidden; }
.hero__photo { width: 100%; height: 340px; object-fit: cover; display: block; }
.hero__panel-caption {
  padding: .9rem 1.25rem; font-family: var(--font-mono); font-size: .76rem;
  color: var(--text-faint); letter-spacing: .03em; border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: .5rem;
}
.hero__panel-caption .icon { flex-shrink: 0; color: var(--accent); }
.hero__panel-caption span[data-carousel-caption] { color: var(--text-faint); }

/* Hero photo carousel */
.hero-carousel { position: relative; }
.hero-carousel__track { position: relative; height: 340px; }
.hero-carousel__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
}
.hero-carousel__slide.is-active { opacity: 1; visibility: visible; }
.hero-carousel__slide .hero__photo { height: 100%; }

.hero-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,15,22,0.55); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  cursor: pointer; backdrop-filter: blur(2px); transition: background .15s ease;
  opacity: 0;
}
.hero-carousel:hover .hero-carousel__arrow,
.hero-carousel__arrow:focus-visible { opacity: 1; }
.hero-carousel__arrow:hover { background: rgba(var(--accent-rgb),0.35); }
.hero-carousel__arrow--prev { left: 12px; }
.hero-carousel__arrow--prev .icon { transform: rotate(180deg); }
.hero-carousel__arrow--next { right: 12px; }
.hero-carousel__arrow .icon { width: 16px; height: 16px; }

.hero-carousel__dots {
  position: absolute; bottom: 46px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: .5rem;
}
.hero-carousel__dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none;
  background: rgba(255,255,255,0.35); cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.hero-carousel__dot:hover { background: rgba(255,255,255,0.6); }
.hero-carousel__dot.is-active { background: var(--accent); transform: scale(1.25); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__photo { height: 260px; }
  .hero-carousel__track { height: 260px; }
  .hero-carousel__arrow { opacity: 1; }
}

/* ---------------------------------------------------------------------- */
/* Stats strip                                                             */
/* ---------------------------------------------------------------------- */
.stats { padding: 40px 0; border-bottom: 1px solid var(--border-soft); background: var(--bg-alt); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat__label { font-size: .82rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; margin-top: .25rem; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------- */
/* Sections                                                                 */
/* ---------------------------------------------------------------------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); display: block; margin-bottom: .6rem;
}
.section__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; }

/* ---------------------------------------------------------------------- */
/* Real deployments / case-study showcase                                  */
/* ---------------------------------------------------------------------- */
.showcase {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 2.5rem;
}
.showcase__media { position: relative; min-height: 320px; background: var(--surface-2); }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase__body { padding: 2.25rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.showcase__meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1rem 0 1.25rem; }
.showcase__meta-item { font-size: .85rem; color: var(--text-dim); display: flex; align-items: center; gap: .4rem; }
.showcase__meta-item strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__media { min-height: 220px; }
  .showcase__body { padding: 1.75rem; }
}

.photo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.photo-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); text-decoration: none; }
.photo-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.photo-card:hover .photo-card__media img { transform: scale(1.06); }
.photo-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.photo-card__caption { font-size: .92rem; font-weight: 600; color: var(--text); margin-bottom: .2rem; }
.photo-card__sub { font-size: .78rem; color: var(--text-faint); }

/* Scroll-reveal (progressive enhancement — content is visible without JS) */
/* Only hide .reveal content when JS has confirmed it can run and will
   un-hide it — otherwise (no-JS, blocked script, etc.) content stays
   visible by default. See the inline script in includes/header.php. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* Category / Product cards                                                */
/* ---------------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: border-color .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px;
  background: rgba(var(--accent-rgb),0.1); color: var(--accent); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.15rem; color: #fff; }
.card__tagline { color: var(--text-dim); font-size: .92rem; margin-bottom: .75rem; }
.card__desc { font-size: .92rem; flex: 1; }
.card__link { font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; }

.product-card { position: relative; padding: 0; overflow: hidden; }
.card__media {
  aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-mono);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(var(--accent-2-rgb),0.12); color: var(--accent-2); border: 1px solid rgba(var(--accent-2-rgb),0.3);
  padding: .2rem .55rem; border-radius: 999px; align-self: flex-start; margin-bottom: .75rem;
}
.badge--partner { background: rgba(var(--accent-rgb),0.1); color: var(--accent); border-color: rgba(var(--accent-rgb),0.3); }
.badge--status { background: rgba(var(--accent-2-rgb),0.12); color: var(--accent-2); border-color: rgba(var(--accent-2-rgb),0.35); }
.product-card__model { font-family: var(--font-mono); font-size: .78rem; color: var(--text-faint); }
.product-card__specs { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: .9rem 0; }
.spec-chip {
  font-family: var(--font-mono); font-size: .78rem; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 6px; padding: .25rem .55rem;
}

/* Category filter tabs (Products page) */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-tabs a {
  font-size: .88rem; font-weight: 600; color: var(--text-dim); border: 1px solid var(--border);
  padding: .5rem 1rem; border-radius: 999px;
}
.filter-tabs a:hover, .filter-tabs a.is-active {
  color: var(--bg); background: var(--accent); border-color: var(--accent); text-decoration: none;
}

/* ---------------------------------------------------------------------- */
/* Product detail                                                          */
/* ---------------------------------------------------------------------- */
.detail-media {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  margin-bottom: 2rem; background: var(--surface-2); max-height: 480px;
}
.detail-media img { width: 100%; height: 100%; max-height: 480px; object-fit: contain; display: block; }

/* Product detail sliding gallery */
.detail-carousel { position: relative; }
.detail-carousel__track { position: relative; height: 480px; }
.detail-carousel__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease; }
.detail-carousel__slide.is-active { opacity: 1; visibility: visible; }
.detail-carousel .hero-carousel__dots { bottom: 12px; }
.detail-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .detail-hero { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.spec-table tr { border-bottom: 1px solid var(--border-soft); }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 0; vertical-align: top; }
.spec-table th { width: 40%; color: var(--text-faint); font-weight: 500; font-size: .88rem; }
.spec-table td { font-family: var(--font-mono); font-size: .92rem; color: var(--text); }
.applications-list li {
  display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; color: var(--text-dim); font-size: .93rem;
}
.applications-list .icon { color: var(--accent); margin-top: .2rem; }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: .8rem; }
.breadcrumb { font-size: .85rem; color: var(--text-faint); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Partners page                                                           */
/* ---------------------------------------------------------------------- */
.partner-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; margin-bottom: 1.75rem;
}
@media (max-width: 800px) { .partner-card { grid-template-columns: 1fr; } }
.partner-card__id { display: flex; flex-direction: column; gap: .5rem; }
.partner-card__country { font-family: var(--font-mono); font-size: .75rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.partner-card__products { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.partner-card__products a {
  font-size: .82rem; background: var(--surface-2); border: 1px solid var(--border-soft); padding: .35rem .7rem;
  border-radius: 6px; color: var(--text-dim);
}
.partner-card__products a:hover { color: var(--accent); border-color: var(--accent-dim); text-decoration: none; }

/* ---------------------------------------------------------------------- */
/* About page                                                              */
/* ---------------------------------------------------------------------- */
.timeline { border-left: 2px solid var(--border); padding-left: 1.75rem; margin-left: .5rem; }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -2.28rem; top: .2rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0.15);
}
.timeline h4 { color: #fff; font-size: 1rem; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------- */
/* Contact page                                                            */
/* ---------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: .75rem .9rem; border-radius: 8px; font-family: var(--font-sans); font-size: .95rem;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-note { font-size: .8rem; color: var(--text-faint); }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .92rem; }
.alert--success { background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.35); color: var(--accent); }
.alert--error { background: rgba(240,97,109,0.1); border: 1px solid rgba(240,97,109,0.35); color: var(--danger); }
.alert ul { list-style: disc; padding-left: 1.2rem; margin-top: .4rem; }

/* ---------------------------------------------------------------------- */
/* CTA banner                                                              */
/* ---------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
}
@media (max-width: 800px) { .cta-banner { flex-direction: column; text-align: center; } }
.cta-banner h2 { color: #fff; font-size: 1.6rem; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */
.site-footer { padding: 64px 0 0; background: var(--bg-alt); border-top: 1px solid var(--border-soft); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { max-width: 40ch; }
.footer__contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--text-dim); padding: .35rem 0; }
.footer__col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 1rem; }
.footer__col li { padding: .3rem 0; }
.footer__col a { color: var(--text-dim); font-size: .9rem; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.5rem 24px; border-top: 1px solid var(--border-soft); font-size: .82rem; color: var(--text-faint);
}
.footer__note { max-width: 45ch; text-align: right; }
@media (max-width: 700px) { .footer__note { text-align: left; } }

/* ---------------------------------------------------------------------- */
/* 404                                                                      */
/* ---------------------------------------------------------------------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page .mono { font-size: 5rem; color: var(--accent); }
