/* ============================================================
   YaTech Ltd — Clean Design System (WhatsApp-inspired layout,
   YaTech blue brand palette, subtle tech touches)
   ============================================================ */

:root {
  color-scheme: light;

  /* === YaTech Brand Palette === */
  --cream:        #FCF5EB;       /* warm cream background (kept from WhatsApp) */
  --cream-2:      #FAF0E0;       /* slightly deeper cream */
  --white:        #FFFFFF;

  /* Primary blue (YaTech electric blue) */
  --primary:      #176fff;       /* YaTech electric blue - main CTA */
  --primary-dark: #0d5cd6;       /* hover state */
  --primary-deep: #062f82;       /* darker blue */

  /* Accent cyan (YaTech cyan - small accents only) */
  --accent:       #21d8ff;       /* YaTech cyan - for dots, status, small highlights */

  /* Dark text (matches YaTech logo navy) */
  --ink:          #0a2540;       /* main text - deep navy */
  --ink-2:        #021024;       /* darker navy - footer / dark sections */
  --ink-3:        #01234b;       /* logo navy - nav links */

  /* Greys (kept from WhatsApp for body text readability) */
  --grey:         #54656F;       /* body muted text */
  --grey-2:       #8696A0;       /* lighter muted */
  --grey-line:    #E9E9E9;       /* hairline */
  --grey-soft:    #F7F6F3;

  /* Typography */
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Monaco", "Consolas", monospace;

  /* Layout */
  --max: 1080px;
  --gutter: 24px;
  --nav-height: 80px;
  --nav-pad: 60px;

  /* Radii */
  --r-pill: 50px;
  --r-img: 25px;
  --r-card: 16px;
  --r-card-sm: 12px;

  /* Shadows */
  --shadow-card: 0 4px 16px rgba(10, 37, 64, 0.06), 0 1px 4px rgba(10, 37, 64, 0.04);
  --shadow-hover: 0 12px 28px rgba(10, 37, 64, 0.10), 0 4px 10px rgba(10, 37, 64, 0.06);
  --shadow-blue: 0 8px 24px rgba(23, 111, 255, 0.18);
}

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

html {
  scroll-behavior: smooth;
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Subtle tech grid background pattern (very faint, just on body) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; height: auto; }

::selection { background: var(--primary); color: var(--white); }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--nav-pad);
  padding-right: var(--nav-pad);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

main { flex: 1; }

/* === NAV (sticky, cream, 80px) === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px var(--nav-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-logo {
  height: 44px;        /* slightly taller for crisp display */
  width: auto;
  object-fit: contain;
  filter: saturate(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 24px);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: auto;
}

.nav-links a {
  padding: 8px 0;
  position: relative;
  transition: color 200ms ease;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: 24px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(10, 37, 64, 0.18);
  border-radius: 12px;        /* softer square, not circle */
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === BUTTONS (WhatsApp style) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(23, 111, 255, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 14px 20px;
}

.btn-ghost:hover { color: var(--primary-dark); }

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

.btn-light:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 10px 20px;
  font-size: 14px;
}

/* === HERO (matches WhatsApp hero with overlay text on rounded image) === */
.hero {
  padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 70px);
  background: var(--cream);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 656;
  border-radius: var(--r-img);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(2, 16, 36, 0.82) 0%, rgba(2, 16, 36, 0.55) 50%, rgba(2, 16, 36, 0.30) 100%),
    radial-gradient(circle at 75% 50%, rgba(23, 111, 255, 0.28), transparent 55%),
    radial-gradient(circle at 25% 70%, rgba(33, 216, 255, 0.20), transparent 45%),
    url("/static/pages/img/yatech-hero-brighter-africa.jpg") center/cover no-repeat,
    var(--ink-2);
  background-blend-mode: normal, normal, normal, normal, normal;
  display: flex;
  align-items: center;
}

.hero-image::before {
  /* subtle blue/cyan accent glow on top of image */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(33, 216, 255, 0.08) 0, transparent 24rem),
    radial-gradient(circle at 70% 70%, rgba(23, 111, 255, 0.12) 0, transparent 28rem);
  pointer-events: none;
}

/* Subtle tech grid overlay on hero - very faint */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  width: clamp(280px, 38%, 460px);
  padding: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 56px);
  color: var(--white);
}

/* Small monospace "tech" tag above hero headline */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(33, 216, 255, 0.4);
  border-radius: 50px;
  background: rgba(33, 216, 255, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 216, 255, 0.25);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--white);
  font-family: var(--font);
}

.hero-lead {
  margin: 18px 0 28px;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  color: var(--white);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-footnote {
  margin-top: 16px;
  font-size: 12px;
  color: var(--grey-2);
  max-width: var(--max);
  padding: 0 var(--gutter);
  margin-left: auto;
  margin-right: auto;
}

/* === FEATURE SECTIONS (cream or dark, image + text side-by-side) === */
.feature {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--cream);
}

.feature.dark {
  background: var(--ink-2);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle tech grid + blue glow on dark feature section */
.feature.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(23, 111, 255, 0.12) 0, transparent 24rem),
    radial-gradient(circle at 80% 70%, rgba(33, 216, 255, 0.08) 0, transparent 24rem);
  pointer-events: none;
  z-index: 0;
}

.feature.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent 100%);
}

.feature.dark > * { position: relative; z-index: 1; }

.feature.dark h2 { color: var(--white); }
.feature.dark p { color: rgba(255, 255, 255, 0.78); }
.feature.dark .feature-link { color: var(--primary); }
.feature.dark .feature-image {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  gap: 24px;
  align-items: center;
}

.feature-inner.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1 1 0;
  min-width: 0;
}

.feature-image {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-img);
  background: var(--grey-soft);
  overflow: hidden;
  border: 1px solid var(--grey-line);
  display: grid;
  place-items: center;
  position: relative;
}

.feature-image::before {
  /* Decorative gradient overlay - YaTech blue/cyan tint */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(23, 111, 255, 0.16) 0%, transparent 50%, rgba(33, 216, 255, 0.12) 100%),
    radial-gradient(circle at 30% 20%, rgba(23, 111, 255, 0.12) 0, transparent 18rem),
    radial-gradient(circle at 70% 80%, rgba(33, 216, 255, 0.14) 0, transparent 18rem);
  pointer-events: none;
}

.feature-image::after {
  /* Decorative tech grid pattern on top of gradient */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0;
  pointer-events: none;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.feature-image-placeholder {
  /* When no image, show a labeled gradient block with icon */
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 32px;
  color: var(--ink);
  font-family: var(--font);
  opacity: 0.78;
}

.feature-image-placeholder svg {
  color: var(--ink);
  opacity: 0.65;
}

.feature-image-placeholder span {
  font-family: var(--mono);  /* tech touch - monospace label */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-image-placeholder::before {
  /* Small accent cyan dot - "live" tech indicator */
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 216, 255, 0.25);
}

.feature.dark .feature-image-placeholder { color: var(--white); opacity: 0.92; }
.feature.dark .feature-image-placeholder svg { color: var(--white); opacity: 0.85; }
.feature.dark .feature-image-placeholder::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 216, 255, 0.32);
}

.feature h2 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.4vw, 3.75rem);  /* 60px desktop */
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 480px;
}

.feature h2.break {
  /* whatsapp breaks h2 into two lines intentionally */
  max-width: 380px;
}

.feature p {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  color: var(--grey);
  max-width: 460px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-dark);
  transition: gap 200ms ease;
}

.feature-link:hover { gap: 12px; }

/* === MANIFESTO STRIP === */
.manifesto {
  padding: clamp(50px, 7vw, 80px) 0;
  background: var(--cream);
}

.manifesto-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.manifesto h2 {
  margin: 0 auto;
  max-width: 880px;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
  color: var(--ink);
}

/* === CARD GRID === */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--cream);
}

.section-head {
  max-width: 720px;
  margin: 0 0 clamp(40px, 5vw, 64px);
  text-align: left;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--mono);  /* tech touch - monospace kicker */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-kicker::before {
  content: "// ";  /* tech comment prefix */
  color: var(--grey-2);
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--ink);
}

.section-lead {
  margin: 16px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  color: var(--grey);
  max-width: 580px;
}

.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

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

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--r-card);
  border: 1px solid transparent;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

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

.card-num {
  display: inline-block;
  margin-bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--grey);
}

/* === STEPS (4-column process) === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  padding: 28px 24px;
  background: transparent;
}

.step-num {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--mono);  /* tech touch - monospace number */
  font-size: 32px;
  font-weight: 500;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.step p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--grey);
}

/* === PROJECTS (numbered rows) === */
.project-list {
  display: grid;
  gap: 12px;
}

.project-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--white);
  border-radius: var(--r-card);
  transition: background 220ms ease, transform 220ms ease;
}

a.project-row:hover {
  background: var(--cream-2);
  transform: translateX(4px);
}

.project-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--primary);
  font-family: var(--mono);  /* tech touch - monospace */
  font-size: 16px;
  font-weight: 500;
  border: 1px solid rgba(23, 111, 255, 0.18);
}

.project-row-body { min-width: 0; }

.project-tag {
  display: inline-block;
  margin-bottom: 6px;
  font-family: var(--mono);  /* tech touch - monospace tag */
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.project-tag::before {
  content: "// ";  /* tech comment-style prefix */
  color: var(--grey-2);
}

.project-row h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}

.project-row p {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--grey);
  max-width: 560px;
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink);
  font-size: 18px;
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease;
}

a.project-row:hover .project-arrow {
  background: var(--primary);
  color: var(--white);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-meta span {
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--cream-2);
  color: var(--ink);
  font-family: var(--mono);  /* tech touch - monospace meta */
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--grey-line);
}

/* === CONTACT BLOCK === */
.contact-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  padding: 0;
  background: transparent;
}

.contact-card h2 {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--ink);
}

.contact-card > p {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 25px;
  color: var(--grey);
  max-width: 520px;
}

.contact-lines {
  display: grid;
  gap: 0;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--grey-line);
}

.contact-line:last-child { border-bottom: 1px solid var(--grey-line); }

.contact-line span {
  color: var(--grey);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-line b {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

a.contact-line:hover {
  color: var(--primary-dark);
}

.contact-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-img);
  background:
    linear-gradient(135deg, rgba(23, 111, 255, 0.18) 0%, transparent 50%, rgba(33, 216, 255, 0.14) 100%),
    radial-gradient(circle at 30% 20%, rgba(23, 111, 255, 0.12) 0, transparent 18rem),
    radial-gradient(circle at 70% 80%, rgba(33, 216, 255, 0.16) 0, transparent 18rem),
    var(--cream-2);
  border: 1px solid var(--grey-line);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--mono);  /* tech touch - monospace */
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.contact-visual::before {
  /* small cyan status dot top-right */
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(33, 216, 255, 0.25);
}

/* === CTA BANNER (dark) === */
.cta-banner {
  padding: clamp(60px, 9vw, 100px) 0;
  background: var(--ink-2);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle tech grid + blue glow on dark CTA section */
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(23, 111, 255, 0.16) 0, transparent 24rem),
    radial-gradient(circle at 80% 70%, rgba(33, 216, 255, 0.10) 0, transparent 24rem);
  pointer-events: none;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.cta-banner h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--white);
}

.cta-banner p {
  margin: 0 auto 32px;
  max-width: 580px;
  font-size: 18px;
  line-height: 25px;
  color: rgba(255, 255, 255, 0.78);
}

/* === FOOTER (dark, like WhatsApp footer) === */
.footer {
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 32px;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

/* Subtle blue accent line at top of footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary) 30%, var(--accent) 70%, transparent);
  opacity: 0.45;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.footer-brand .footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
  font-weight: 400;
}

.footer h4 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

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

.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 400;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 400;
}

.footer-bottom p { margin: 0; }

/* === BREADCRUMB (interior pages) === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--grey);
}

.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* === PAGE HEAD (interior pages - matches feature sections) === */
.page-head {
  padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 60px);
  background: var(--cream);
}

.page-head-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-head h1 {
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 5.4vw, 3.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 880px;
}

.page-head-lead {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 25px;
  color: var(--grey);
  max-width: 660px;
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  :root { --nav-pad: 24px; }
  .feature-inner, .feature-inner.reverse { flex-direction: column; }
  .feature-image { aspect-ratio: 16/10; width: 100%; }
  .feature-text { width: 100%; }
  .contact-block { grid-template-columns: 1fr; }
  .contact-visual { aspect-ratio: 16/10; }
}

@media (max-width: 780px) {
  /* Reduce nav height on mobile to give content more room */
  :root { --nav-height: 64px; --nav-pad: 16px; --gutter: 18px; }

  .topbar { height: var(--nav-height); }
  .nav {
    padding: 10px var(--nav-pad);
    gap: 12px;
    justify-content: space-between;
  }
  .brand { margin-right: auto; }       /* push logo left, buttons right */
  .brand-logo { height: 34px; }

  .nav-links {
    display: none;
    position: fixed;                     /* overlay rather than push content */
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--grey-line);
    box-shadow: 0 12px 24px rgba(10, 37, 64, 0.06);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--grey-line);
    width: 100%;
    margin-left: 0;
    font-size: 17px;                    /* slightly larger for touch */
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--primary); }

  .nav-actions {
    margin-left: 0;                     /* override desktop margin */
    gap: 10px;
  }
  .nav-actions .btn { padding: 8px 16px; font-size: 14px; min-height: 38px; }

  .nav-toggle { display: flex; }

  /* Hero adjustments */
  .hero { padding: 28px 0 40px; }
  .hero-inner { padding: 0 var(--gutter); }
  .hero-image {
    aspect-ratio: 16 / 11;             /* shorter hero on mobile */
  }
  .hero-text {
    width: 92%;
    padding: 26px 24px;
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-lead { font-size: 15px; line-height: 22px; margin: 14px 0 22px; }
  .hero-tag { font-size: 10px; padding: 5px 10px; margin-bottom: 14px; }
  .hero-actions .btn { min-height: 40px; padding: 10px 18px; font-size: 14px; }
  .hero-footnote { font-size: 11px; margin-top: 12px; }

  /* Feature sections */
  .feature { padding: 56px 0; }
  .feature-inner { gap: 28px; }
  .feature-text h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .feature p { font-size: 16px; line-height: 24px; }

  /* Cards collapse to single column */
  .cards-3, .cards-4, .steps { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; margin-bottom: 32px; }

  /* Project rows compact */
  .project-row { grid-template-columns: 48px 1fr; padding: 18px 16px; gap: 14px; }
  .project-arrow { display: none; }
  .project-num { width: 48px; height: 48px; font-size: 14px; }
  .project-row h3 { font-size: 18px; }
  .project-row p { font-size: 14px; }

  /* Page heads compact */
  .page-head { padding: 36px 0 32px; }
  .page-head h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .page-head-lead { font-size: 16px; line-height: 22px; margin-top: 14px; }

  /* CTA banner */
  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .cta-banner p { font-size: 16px; line-height: 22px; }

  /* Section heads */
  .section { padding: 48px 0; }
  .section h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .section-lead { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .section-head { margin-bottom: 32px; }

  /* Contact block */
  .contact-card h2 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .contact-card > p { font-size: 16px; line-height: 22px; }
  .contact-line { padding: 14px 0; }
  .contact-line span { font-size: 12px; }
  .contact-line b { font-size: 14px; }
}

@media (max-width: 480px) {
  :root { --nav-height: 58px; }
  .brand-logo { height: 30px; }
  .nav-actions .btn-primary { padding: 8px 14px; font-size: 13px; min-height: 36px; }
  .nav-toggle { width: 40px; height: 40px; }

  .hero { padding: 22px 0 32px; }
  .hero-image { aspect-ratio: 4 / 5; border-radius: 18px; }     /* portrait-friendly */
  .hero-text { width: 100%; padding: 28px 22px; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .hero-lead { font-size: 14.5px; line-height: 21px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { min-height: 38px; padding: 9px 16px; font-size: 13.5px; }
  .hero-footnote { font-size: 10.5px; }

  .feature { padding: 44px 0; }
  .feature-inner { gap: 20px; }
  .feature-text h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .feature p { font-size: 15px; line-height: 22px; }

  .section { padding: 40px 0; }
  .section h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .cta-banner { padding: 44px 0; }
  .cta-banner h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .cta-banner p { font-size: 15px; }
  .cta-banner .btn { padding: 10px 18px; font-size: 13.5px; }

  .project-row { padding: 16px 14px; gap: 12px; }
  .project-num { width: 42px; height: 42px; font-size: 13px; }
  .project-row h3 { font-size: 17px; }
  .project-row p { font-size: 13.5px; }
  .project-meta span { font-size: 10.5px; padding: 3px 8px; }

  .footer { padding: 44px 0 24px; }
  .footer-top { padding-bottom: 24px; margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
