/* Namarc Technology — global styles
   Palette matched to events.namarc.co.tz brand system
   Poppins font is loaded via <link> tags in index.html (not @import here)
   to avoid build-time font inlining requests). */

:root {
  --primary: #034075;
  --primary-dark: #022c50;
  --primary-light: #e6edf5;
  --navy-black: #011c34;
  --accent: #b8862f;
  --accent-light: #faf1de;
  --bg: #fdfaf5;
  --white: #ffffff;
  --ink: #2b2420;
  --ink-soft: #7c7369;
  --line: #ece4da;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(43, 36, 32, 0.06);
  --shadow-md: 0 10px 26px rgba(43, 36, 32, 0.09);
  --shadow-lg: 0 22px 50px rgba(43, 36, 32, 0.16);
  --container: 1180px;

  /* Dark-section (navbar, hero, footer, CTA bands) text tokens */
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.68);
  --on-dark-faint: rgba(255, 255, 255, 0.45);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --on-dark-surface: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
}

.eyebrow.gold {
  background: var(--accent-light);
  color: var(--accent);
}

.eyebrow.on-dark {
  background: rgba(184, 134, 47, 0.16);
  color: #e0b563;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.section {
  padding: 88px 0;
}

.section.tight {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.section-head h2 {
  font-size: 36px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-gold {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  background: #9c7328;
}

.btn-outline-light {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark-line);
}

.btn-outline-light:hover {
  border-color: var(--on-dark);
  background: var(--on-dark-surface);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }
}

/* Shared inner-page hero banner */
.page-hero {
  padding: 72px 0 60px;
  background: linear-gradient(160deg, var(--primary-dark), var(--navy-black));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

.page-hero .container {
  max-width: 760px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
}

.page-hero h1 {
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.page-hero p {
  color: var(--on-dark-soft);
  font-size: 17px;
}

@media (max-width: 640px) {
  .page-hero h1 {
    font-size: 30px;
  }
}

/* Shared legal page content (Privacy notice / Terms of use) */
.legal-content {
  padding: 72px 0 96px;
}

.legal-content .container {
  max-width: 760px;
}

.legal-content .updated {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.legal-content h2 {
  font-size: 24px;
  color: var(--primary);
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content ul li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content .contact-block {
  margin-top: 12px;
  padding: 20px 24px;
  background: var(--primary-light);
  border-radius: var(--radius);
}

.legal-content .contact-block p {
  margin-bottom: 4px;
  color: var(--ink);
}

@media (max-width: 640px) {
  .legal-content {
    padding: 56px 0 72px;
  }
}

/* Shared loading / error state for API-driven pages */
.state-message {
  max-width: 640px;
  margin: 96px auto;
  padding: 0 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 16px;
}

.state-message.error {
  color: #b3261e;
}

.state-message code {
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 14px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--on-dark-line);
  box-shadow: 0 8px 24px rgba(1, 15, 30, 0.35);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--on-dark);
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand .mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand .word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand .word small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}

.links a:hover {
  color: var(--on-dark);
}

.links a.active {
  color: #e0b563;
}

.links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.cta-mobile {
  display: none;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--on-dark-line);
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--on-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .actions .btn-primary {
    display: none;
  }

  .burger {
    display: flex;
  }

  .links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    border-bottom: 1px solid var(--on-dark-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--on-dark-line);
  }

  .cta-mobile {
    display: inline-flex;
    margin-top: 12px;
    width: 100%;
  }
}
.site-footer {
  background: var(--navy-black);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.footer-code-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.55) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.55) 100%);
}

.top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.brand-col p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand .mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand .word {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand .word small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.socials a:hover {
  background: var(--accent);
}

h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.col ul a,
.contact-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.col ul a:hover {
  color: #fff;
}

.contact-list {
  margin-bottom: 20px;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
}

.legal {
  display: flex;
  gap: 20px;
}

.legal a:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .top {
    grid-template-columns: 1fr;
  }

  .bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* ===== home page (scoped to body.page-home) ===== */

body.page-home .hero {
  padding: 76px 0 64px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, var(--primary-dark), var(--navy-black));
}

body.page-home .hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
  pointer-events: none;
}

body.page-home .hero-code-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.15) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0.15) 100%);
}

body.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

body.page-home .hero-copy h1 {
  font-size: 46px;
  margin-top: 20px;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

body.page-home .hero-copy .accent {
  color: #e0b563;
}

body.page-home .hero-copy > p {
  margin-top: 20px;
  font-size: 17px;
  color: var(--on-dark-soft);
  max-width: 480px;
}

body.page-home .hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

body.page-home .hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
}

body.page-home .hero-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-home .hero-stats strong {
  font-size: 24px;
  color: #e0b563;
}

body.page-home .hero-stats span {
  font-size: 13px;
  color: var(--on-dark-faint);
}

body.page-home .hero-visual {
  position: relative;
}

body.page-home .terminal-window {
  background: var(--navy-black);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
}

body.page-home .terminal-head {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

body.page-home .terminal-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

body.page-home .terminal-head .dot.red {
  background: #f26761;
}

body.page-home .terminal-head .dot.amber {
  background: #f2b661;
}

body.page-home .terminal-head .dot.green {
  background: #61c584;
}

body.page-home .terminal-body {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-home .terminal-body p {
  color: rgba(255, 255, 255, 0.78);
}

body.page-home .terminal-body .prompt {
  color: #e0b563;
  font-weight: 700;
  margin-right: 4px;
}

body.page-home .terminal-body .ok-mark {
  color: #61c584;
  margin-right: 6px;
}

body.page-home .terminal-body .ok-text {
  color: #61c584;
}

body.page-home .terminal-body .dots {
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

body.page-home .terminal-body .arrow {
  color: #e0b563;
  margin-right: 6px;
}

body.page-home .mock-window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

body.page-home .mock-window.small {
  box-shadow: var(--shadow-md);
}

body.page-home .mock-head {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

body.page-home .mock-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

body.page-home .mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

body.page-home .mock-row strong {
  display: block;
  font-size: 15px;
}

body.page-home .mock-row small {
  color: var(--ink-soft);
  font-size: 13px;
}

body.page-home .pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

body.page-home .pill.live {
  background: #e4f6ea;
  color: #1e7a44;
}

body.page-home .mock-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

body.page-home .mock-metric strong {
  color: var(--ink);
  font-size: 15px;
}

body.page-home .mock-metric strong.ok {
  color: #1e7a44;
}

body.page-home .float-card {
  position: absolute;
  bottom: -20px;
  right: -12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-home .float-card .check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

body.page-home .float-card strong {
  display: block;
  font-size: 13px;
}

body.page-home .float-card small {
  font-size: 12px;
  color: var(--ink-soft);
}

body.page-home .trusted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

body.page-home .trusted-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

body.page-home .trusted-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.75;
}

body.page-home .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

body.page-home .icon-badge svg {
  width: 22px;
  height: 22px;
}

body.page-home .service-card {
  padding: 28px;
  position: relative;
}

body.page-home .service-card .index {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  font-weight: 700;
  color: var(--line);
}

body.page-home .service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

body.page-home .service-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

body.page-home .flagship {
  background: var(--accent-light);
}

body.page-home .flagship-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

body.page-home .flagship-copy h2 {
  font-size: 32px;
  margin-top: 16px;
}

body.page-home .flagship-copy > p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
}

body.page-home .flagship-points {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

body.page-home .flagship-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--ink);
}

body.page-home .flagship-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

body.page-home .quote-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 48px;
}

body.page-home .stars {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 18px;
}

body.page-home .quote-card p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}

body.page-home .author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

body.page-home .author div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

body.page-home .author strong {
  font-size: 14.5px;
}

body.page-home .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

body.page-home .author small {
  color: var(--ink-soft);
  font-size: 13px;
}

body.page-home .cta {
  background: var(--primary);
}

body.page-home .cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.page-home .cta-inner h2 {
  color: var(--white);
  font-size: 32px;
}

body.page-home .cta-inner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
}

body.page-home .cta-inner .btn-primary {
  background: var(--white);
  color: var(--primary);
  margin-top: 8px;
}

body.page-home .cta-inner .btn-primary:hover {
  background: var(--accent-light);
}

@media (max-width: 960px) {
  body.page-home .hero-grid,
body.page-home .flagship-grid {
    grid-template-columns: 1fr;
  }
  body.page-home .hero-visual {
    order: -1;
  }
  body.page-home .float-card {
    display: none;
  }
}

@media (max-width: 640px) {
  body.page-home .hero-copy h1 {
    font-size: 32px;
  }
  body.page-home .hero-stats {
    flex-wrap: wrap;
    row-gap: 20px;
  }
  body.page-home .trusted-row {
    gap: 20px;
  }
  body.page-home .quote-card {
    padding: 28px;
  }
  body.page-home .quote-card p {
    font-size: 16px;
  }
}
/* ===== about page (scoped to body.page-about) ===== */

body.page-about .story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

body.page-about .story-copy h2 {
  font-size: 32px;
  margin: 16px 0 20px;
}

body.page-about .story-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 16px;
}

body.page-about .story-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.page-about .stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-about .stat-card strong {
  font-size: 28px;
  color: var(--primary);
}

body.page-about .stat-card span {
  font-size: 13.5px;
  color: var(--ink-soft);
}

body.page-about .timeline-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.page-about .timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

body.page-about .timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

body.page-about .timeline-item:last-child {
  border-bottom: none;
}

body.page-about .timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 18px;
}

body.page-about .timeline-body h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

body.page-about .timeline-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

body.page-about .value-card {
  padding: 28px;
}

body.page-about .value-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

body.page-about .value-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

body.page-about .team-card {
  padding: 30px 24px;
  text-align: center;
}

body.page-about .team-card .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

body.page-about .team-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

body.page-about .team-card p {
  color: var(--ink-soft);
  font-size: 13.5px;
}

@media (max-width: 900px) {
  body.page-about .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.page-about .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
/* ===== services page (scoped to body.page-services) ===== */

body.page-services .detail-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

body.page-services .detail-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

body.page-services .detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.page-services .detail-row.reverse {
  direction: rtl;
}

body.page-services .detail-row.reverse > * {
  direction: ltr;
}

body.page-services .icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

body.page-services .icon-badge svg {
  width: 24px;
  height: 24px;
}

body.page-services .detail-copy h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

body.page-services .detail-copy > p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 20px;
}

body.page-services .points {
  display: none;
}

body.page-services .panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-services .panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

body.page-services .panel-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.page-services .panel-row .check {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

body.page-services .process {
  background: var(--white);
  border-top: 1px solid var(--line);
}

body.page-services .process-card {
  padding: 32px 28px;
}

body.page-services .step-number {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

body.page-services .process-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

body.page-services .process-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

body.page-services .cta {
  background: var(--primary);
}

body.page-services .cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.page-services .cta-inner h2 {
  color: var(--white);
  font-size: 30px;
}

body.page-services .cta-inner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 460px;
}

body.page-services .cta-inner .btn-primary {
  background: var(--white);
  color: var(--primary);
}

body.page-services .cta-inner .btn-primary:hover {
  background: var(--accent-light);
}

@media (max-width: 900px) {
  body.page-services .detail-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  body.page-services .detail-row.reverse {
    direction: ltr;
  }
}
/* ===== products page (scoped to body.page-products) ===== */

body.page-products .product-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

body.page-products .product-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  padding: 40px;
  align-items: center;
}

body.page-products .product-main h2 {
  font-size: 26px;
  margin: 14px 0 12px;
}

body.page-products .product-main > p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 18px;
  max-width: 520px;
}

body.page-products .feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

body.page-products .feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink);
}

body.page-products .feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

body.page-products .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--line);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

body.page-products .status-pill.beta {
  background: var(--accent-light);
  color: var(--accent);
}

body.page-products .mini-window {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

body.page-products .mini-head {
  display: flex;
  gap: 5px;
  margin-bottom: 16px;
}

body.page-products .mini-head span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

body.page-products .mini-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.page-products .mini-line {
  height: 9px;
  border-radius: 5px;
  background: var(--line);
}

body.page-products .mini-line.w-80 {
  width: 80%;
}

body.page-products .mini-line.w-60 {
  width: 60%;
}

body.page-products .mini-line.w-70 {
  width: 70%;
}

body.page-products .mini-badge {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}

body.page-products .api {
  background: var(--primary);
}

body.page-products .api-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.page-products .api-inner .eyebrow.gold {
  background: rgba(255, 255, 255, 0.14);
  color: var(--accent-light);
}

body.page-products .api-inner h2 {
  color: var(--white);
  font-size: 30px;
}

body.page-products .api-inner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
}

body.page-products .api-inner .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

body.page-products .api-inner .btn-outline:hover {
  border-color: var(--white);
}

@media (max-width: 860px) {
  body.page-products .product-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  body.page-products .product-visual {
    order: -1;
  }
}
/* ===== portfolio page (scoped to body.page-portfolio) ===== */

body.page-portfolio .case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

body.page-portfolio .case-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.page-portfolio .case-top h2 {
  font-size: 20px;
  margin: 12px 0 6px;
}

body.page-portfolio .client {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

body.page-portfolio .summary {
  color: var(--ink-soft);
  font-size: 14.5px;
}

body.page-portfolio .results {
  display: flex;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.page-portfolio .result {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-portfolio .result strong {
  font-size: 22px;
  color: var(--primary);
}

body.page-portfolio .result span {
  font-size: 12.5px;
  color: var(--ink-soft);
}

body.page-portfolio .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-portfolio .tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}

body.page-portfolio .cta {
  background: var(--primary);
}

body.page-portfolio .cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

body.page-portfolio .cta-inner h2 {
  font-size: 28px;
  color: var(--white);
}

body.page-portfolio .cta-inner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 460px;
}

body.page-portfolio .cta-inner .btn-primary {
  background: var(--white);
  color: var(--primary);
}

body.page-portfolio .cta-inner .btn-primary:hover {
  background: var(--accent-light);
}

@media (max-width: 800px) {
  body.page-portfolio .case-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== contact page (scoped to body.page-contact) ===== */

body.page-contact .contact-section {
  background: linear-gradient(160deg, var(--primary-dark), var(--navy-black));
}

body.page-contact .contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

body.page-contact .info-col h2 {
  font-size: 28px;
  color: var(--on-dark);
}

body.page-contact .info-col .lead {
  margin-top: 14px;
  color: var(--on-dark-soft);
  font-size: 15.5px;
}

body.page-contact .channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

body.page-contact .channel {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.page-contact .channel .icon-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(184, 134, 47, 0.16);
  color: #e0b563;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-contact .channel .icon-badge svg {
  width: 20px;
  height: 20px;
}

body.page-contact .channel-label {
  display: block;
  font-size: 12.5px;
  color: var(--on-dark-faint);
  margin-bottom: 2px;
}

body.page-contact .channel strong {
  font-size: 15px;
  color: var(--on-dark);
}

body.page-contact .office-card {
  margin-top: 32px;
  background: var(--on-dark-surface);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius);
  padding: 22px;
}

body.page-contact .office-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--on-dark);
}

body.page-contact .office-card p {
  font-size: 13.5px;
  color: var(--on-dark-soft);
  margin-bottom: 4px;
}

body.page-contact .contact-form {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}

body.page-contact .success-banner {
  background: #e4f6ea;
  color: #1e7a44;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
}

body.page-contact .error-banner {
  background: #fbe9e7;
  color: #b3261e;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
}

body.page-contact .contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

body.page-contact .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

body.page-contact .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-contact .field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

body.page-contact .field input,
body.page-contact .field select,
body.page-contact .field textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.page-contact .field input:focus,
body.page-contact .field select:focus,
body.page-contact .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

body.page-contact .field textarea {
  resize: vertical;
}

body.page-contact .contact-form .btn {
  align-self: flex-start;
  margin-top: 6px;
}

@media (max-width: 900px) {
  body.page-contact .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.page-contact .field-row {
    grid-template-columns: 1fr;
  }
  body.page-contact .contact-form {
    padding: 24px;
  }
}
