/* =========================================================================
   JoeTech Hub Solution — Design System
   Palette: ink navy + Nairobi-savanna green + flag red + acacia gold
   Type: Sora (display) / Inter (body) / IBM Plex Mono (data & labels)
   Signature: the "Hub Map" — a literal network diagram in the hero, since
   the brand's entire premise (JoeTech HUB) is being the connective centre
   of a client's digital services.
   ========================================================================= */

:root {
  --ink: #0b1017;
  --ink-2: #0e1420;
  --surface: #141b2c;
  --surface-2: #1b2438;
  --surface-border: rgba(237, 239, 244, 0.09);

  --text: #edeff4;
  --muted: #93a0b7;
  --muted-2: #626e85;

  --red: #c8102e;
  --red-soft: rgba(200, 16, 46, 0.14);
  --green: #1e8a56;
  --green-soft: rgba(30, 138, 86, 0.14);
  --gold: #e8b94b;
  --gold-soft: rgba(232, 185, 75, 0.14);

  --gradient-signal: linear-gradient(120deg, var(--red) 0%, var(--gold) 55%, var(--green) 100%);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --container: 1180px;

  --shadow-lift: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--ink-2); }

@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(200, 16, 46, 0.65);
}
.btn-primary:hover { background: #e01230; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--surface-border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold {
  background: var(--gold);
  color: #16110a;
}
.btn-gold:hover { background: #f0c766; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 23, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--surface-border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.brand img { height: 40px; width: auto; }
.brand .brand-fallback {
  display: none;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: var(--gradient-signal);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #0b1017;
  font-size: 16px;
}
.brand .brand-name span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gradient-signal);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  width: 44px; height: 44px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 82px 0 0 0; background: var(--ink-2); flex-direction: column; justify-content: flex-start; padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn-ghost { display: none; }
}

@media (max-width: 480px) {
  .nav-row { height: 72px; }
  .nav-links { inset: 72px 0 0 0; }
  .brand { font-size: 15px; gap: 8px; }
  .brand img, .brand .brand-fallback { height: 32px; width: 32px; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-primary.btn-sm { display: none; }
}

/* ---------- Hero + Hub Map signature ---------- */
.hero {
  padding: 76px 0 60px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 600px;
  background: radial-gradient(closest-side, rgba(200,16,46,0.14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: var(--gradient-signal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-2);
}
.hero-trust strong { color: var(--text); font-family: var(--font-display); font-size: 15px; display: block; }

/* Hub map */
.hub-map-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.hub-map { width: 100%; max-width: 520px; height: auto; }
.hub-line {
  stroke: rgba(147, 160, 183, 0.35);
  stroke-width: 1.4;
  fill: none;
}
.hub-pulse {
  stroke: var(--gold);
  stroke-width: 2.4;
  fill: none;
  stroke-dasharray: 8 220;
  animation: hub-travel 3.6s linear infinite;
}
.hub-pulse.pulse-2 { stroke: var(--red); animation-delay: 1.1s; animation-duration: 4.2s; }
.hub-pulse.pulse-3 { stroke: var(--green); animation-delay: 2.1s; animation-duration: 3.9s; }
@keyframes hub-travel {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -460; }
}
.hub-core {
  fill: var(--surface-2);
  stroke: var(--gold);
  stroke-width: 1.5;
}
.hub-core-label {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--text);
  font-size: 13px;
}
.hub-node circle {
  fill: var(--surface);
  stroke: var(--surface-border);
  stroke-width: 1.5;
  transition: stroke .2s ease;
}
.hub-node:hover circle { stroke: var(--gold); }
.hub-node text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--muted);
}
.hub-node .hub-emoji { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .hub-pulse { animation: none; stroke-dasharray: none; }
}

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(232,185,75,0.4); background: var(--surface-2); }
.service-card-media {
  margin: -30px -26px 20px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
}
.service-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--gold-soft);
  margin-bottom: 18px;
}
.service-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.service-card .service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-card-more {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gold);
  transition: transform .2s ease;
}
.service-card:hover .service-card-more { transform: translateX(4px); }

/* ---------- Service detail page ---------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 780px) { .service-detail-grid { grid-template-columns: 1fr; } }
.service-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--ink-2);
}
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-detail-lead { font-size: 16px; color: var(--muted); line-height: 1.7; }
.service-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--surface-border);
}

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--surface-border);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-cell { background: var(--surface); padding: 32px 24px; text-align: center; }
.stat-cell .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-cell .label { color: var(--muted); font-size: 13px; margin-top: 6px; }
@media (max-width: 720px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing / packages ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.price-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
@media (max-width: 480px) {
  .price-card { padding: 26px 22px; }
  .price-card.featured { transform: none; }
}
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(232,185,75,0.08), var(--surface) 40%);
  transform: scale(1.02);
  box-shadow: var(--shadow-lift);
}
.price-badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--gold);
  color: #16110a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.price-tier-icon { font-size: 26px; margin-bottom: 6px; }
.price-card h3 { font-size: 21px; }
.price-card .price-desc { color: var(--muted); font-size: 14px; min-height: 42px; }
.price-amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin: 14px 0 20px; }
.price-amount span { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 14px; color: var(--text); align-items: flex-start; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 900px) { .addons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .addons-grid { grid-template-columns: 1fr; } }
.addon-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.addon-card .name { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.addon-card .price { color: var(--gold); font-family: var(--font-mono); font-size: 13px; }

/* ---------- Portfolio ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-tabs button {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-tabs button.active, .filter-tabs button:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portfolio-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(232,185,75,0.4); }
.project-media {
  height: 170px;
  background: linear-gradient(135deg, var(--surface-2), var(--ink-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  position: relative;
}
.project-media .cat-tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  font-family: var(--font-mono); font-size: 10.5px;
  background: rgba(11,16,23,0.7); color: var(--gold);
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(232,185,75,0.3);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 22px; }
.project-body h3 { font-size: 17px; margin-bottom: 6px; }
.project-body p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.project-stack span {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}

/* ---------- Why choose us / values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }
.value-card { padding: 8px 4px; }
.value-card .service-icon { background: var(--red-soft); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--text); margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-signal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #0b1017; font-family: var(--font-display);
  font-size: 14px;
}
.testimonial-author .name { font-weight: 600; font-size: 14px; }
.testimonial-author .role { color: var(--muted-2); font-size: 12.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(200,16,46,0.16), rgba(30,138,86,0.12));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cta-band { padding: 40px 24px; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { color: var(--muted-2); font-size: 12.5px; margin-top: 4px; }

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-soft); border-color: rgba(30,138,86,0.4); color: #7fe0af; }
.alert-error { background: var(--red-soft); border-color: rgba(200,16,46,0.4); color: #ff9aa8; }

/* ---------- Contact page layout ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  height: fit-content;
}
.contact-line { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-line .ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.contact-line strong { display: block; font-size: 14.5px; }
.contact-line span { color: var(--muted); font-size: 13.5px; }
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
@media (max-width: 480px) {
  .contact-info-card, .contact-form-card, .mv-card { padding: 22px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--surface-border); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; font-family: var(--font-mono); }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid a { color: var(--text); font-size: 14px; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted-2); font-size: 13px;
}

.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 14px 30px -8px rgba(30,138,86,0.6);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 44px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: var(--muted); max-width: 56ch; margin: 0 auto; }
.breadcrumb { color: var(--muted-2); font-size: 13px; font-family: var(--font-mono); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- About page specifics ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.team-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-md); padding: 26px; text-align: center; }
.team-photo {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.team-photo-fallback {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gradient-signal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #0b1017;
}
.team-card .role { color: var(--gold); font-size: 13px; font-family: var(--font-mono); margin-bottom: 10px; }
.team-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.team-tags span { font-size: 10.5px; font-family: var(--font-mono); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--surface-border); }
.timeline-item { margin-bottom: 28px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute; left: -34px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.timeline-item strong { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); margin-bottom: 4px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-display); font-size: 6rem; font-weight: 800; background: var(--gradient-signal); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Admin ---------- */
.admin-body { background: var(--ink); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink-2); border-right: 1px solid var(--surface-border); padding: 26px 18px; }
.admin-sidebar .brand { margin-bottom: 34px; padding: 0 8px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; margin-bottom: 4px;
}
.admin-nav a:hover, .admin-nav a.active { background: var(--surface); color: var(--text); }
.admin-main { padding: 32px 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-card { background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 22px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table { min-width: 620px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--surface-border); font-size: 13.5px; }
.admin-table th { color: var(--muted); font-family: var(--font-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-family: var(--font-mono); }
.badge-new { background: var(--gold-soft); color: var(--gold); }
.badge-read { background: var(--surface-2); color: var(--muted); }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius-lg); padding: 38px; }

.msg-modal {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,16,23,0.85);
  align-items: center; justify-content: center;
  padding: 24px;
}
.msg-modal:target { display: flex; }
.msg-modal-content {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  white-space: normal;
}
.msg-modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 24px; line-height: 1; color: var(--muted);
}
.msg-modal-close:hover { color: var(--gold); }
.msg-modal-body { white-space: pre-wrap; color: var(--text); font-size: 14.5px; line-height: 1.7; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--surface-border);
    padding: 16px;
  }
  .admin-sidebar .brand { margin-bottom: 16px; }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .admin-nav a { margin-bottom: 0; padding: 9px 12px; font-size: 13px; }
  .admin-main { padding: 20px; }
}
@media (max-width: 480px) {
  .login-card { padding: 26px; }
}
