/* ==========================================================================
   TMB Tech — Stylesheet
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff4ff;
  --text: #111827;
  --muted: #6b7280;
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;

  /* Accent palette — used for icon badges and small colourful details */
  --accent-blue-1: #3b82f6;
  --accent-blue-2: #2563eb;
  --accent-purple-1: #a855f7;
  --accent-purple-2: #7c3aed;
  --accent-teal-1: #2dd4bf;
  --accent-teal-2: #0d9488;
  --accent-orange-1: #fb923c;
  --accent-orange-2: #ea580c;
  --accent-pink-1: #f472b6;
  --accent-pink-2: #db2777;
  --accent-indigo-1: #818cf8;
  --accent-indigo-2: #4f46e5;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.12);

  --header-h: 84px;
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* overflow:hidden on body would also break the header's position:sticky
   (it turns body into a scroll container); clip avoids that. */
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { color: var(--muted); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

section, .section { scroll-margin-top: var(--header-h); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  z-index: 900;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.5); transform: translateY(-1px); }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 550ms ease;
}
.btn-primary:hover::before { left: 125%; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  width: 100%;
  margin-top: 8px;
}
.btn-outline:hover { background: var(--primary-light); border-color: var(--primary); }

.btn-light { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

/* ---------- Header: floating glass capsule ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 10px 12px;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.header-inner {
  position: relative;
  isolation: isolate;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Glass lives on a pseudo-element: a backdrop-filter on an ancestor would
   re-anchor the fixed mobile menu to that ancestor instead of the viewport. */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 10px 30px -14px rgba(15, 23, 42, 0.25);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled .header-inner::before {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 16px 40px -16px rgba(15, 23, 42, 0.35);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner::before { background: rgba(255, 255, 255, 0.97); }
}
/* A lighter blur keeps scrolling smooth on phones. */
@media (max-width: 767px) {
  .header-inner::before {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img { height: 40px; width: auto; display: block; transition: transform 280ms cubic-bezier(.34,1.56,.64,1); }
.logo-img-footer { height: 36px; }
.logo:hover .logo-img { transform: scale(1.05); }

.main-nav { position: relative; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}
.nav-link {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.55); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active:hover { background: transparent; }

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 4px 12px -2px rgba(37, 99, 235, 0.25);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: left 340ms cubic-bezier(.4,0,.2,1), top 340ms cubic-bezier(.4,0,.2,1),
    width 340ms cubic-bezier(.4,0,.2,1), height 340ms cubic-bezier(.4,0,.2,1), opacity 200ms ease;
}
.nav-indicator.visible { opacity: 1; }

.header-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.nav-toggle:hover { background: rgba(15, 23, 42, 0.05); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  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); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  z-index: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}
.nav-backdrop.visible { opacity: 1; visibility: visible; }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: -360px;
    width: min(320px, 85vw);
    height: calc(100vh - var(--header-h) - 12px);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-lg);
    transition: right 280ms ease;
    z-index: 450;
    overflow-y: auto;
  }
  .main-nav.open { right: 12px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .nav-link { padding: 14px 18px; font-size: 1rem; }
  .header-cta { display: none; }
  .nav-cta-item { display: block; padding: 8px 12px 4px; }
  .nav-cta { width: 100%; }
  /* a closed drawer must not be reachable with the keyboard */
  .main-nav { visibility: hidden; transition: right 280ms ease, visibility 0s linear 280ms; }
  .main-nav.open { visibility: visible; transition: right 280ms ease, visibility 0s; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .main-nav { background: rgba(255, 255, 255, 0.98); }
}

/* ---------- Hero ---------- */
.hero { padding-block: 64px 96px; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-content h1 { color: var(--text); margin-bottom: 20px; }
.hero-text { font-size: 1.1rem; max-width: 52ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; min-height: 340px; }
.hero-graphic {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  aspect-ratio: 1;
  max-width: 120%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.hero-stage {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transform: rotateY(-12deg) rotateX(6deg);
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
.hero-stage .device-mock { transform-style: preserve-3d; }
.hero-stage .app-row { translate: 0 0 28px; }
.hero-stage .app-panel-foot { translate: 0 0 16px; }
.hero-stage .floating-icon { translate: 0 0 80px; }
.hero-stage .icon-db,
.hero-stage .icon-mobile { translate: 0 0 50px; }

@media (max-width: 767px) {
  .hero-inner { gap: 32px; }
  .hero-visual { min-height: 0; }
  .hero-stage { min-height: 0; padding-block: 8px; transform: none; }
  .hero-stage .device-mock { width: 100%; transform: none !important; }
  .hero-stage .app-row { translate: 0 0 18px; }
  .hero-stage .app-panel-foot { translate: 0 0 10px; }
  .hero-stage .floating-icon { display: none; }
  .hero { padding-bottom: 48px; }
  .hero-sphere { width: 430px; max-width: none; opacity: 0.6; }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  max-width: 90%;
  max-height: 90%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0) 70%);
  z-index: 0;
  pointer-events: none;
  animation: heroGlowDrift 11s ease-in-out infinite;
}

@keyframes heroGlowDrift {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-46%, -54%) scale(1.08); }
}

.device-mock {
  position: relative;
  width: min(420px, 100%);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 2;
}
.device-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.device-bar span:first-child { background: var(--primary); }

/* Hero product panel */
.app-panel {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8faff);
}
.app-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.app-panel-head .device-bar { margin-bottom: 0; }
.app-panel-title { font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.3);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.7,.2,1);
}
.app-row img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.app-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.app-row-text strong { font-size: 0.95rem; color: var(--text); }
.app-row-text span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.app-pill { flex-shrink: 0; padding: 4px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.pill-green { background: #ecfdf5; color: #047857; }
.pill-blue { background: var(--primary-light); color: var(--primary-dark); }

.app-panel-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.app-panel-foot span {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue-1), var(--accent-indigo-2));
}

.panel-in .app-row { opacity: 1; transform: none; }
.panel-in .app-row:nth-of-type(2) { transition-delay: 120ms; }
.panel-in .app-row:nth-of-type(3) { transition-delay: 240ms; }
.panel-in .app-row:nth-of-type(4) { transition-delay: 360ms; }

@media (max-width: 480px) {
  .app-row {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    row-gap: 6px;
  }
  .app-row img { grid-row: span 2; }
  .app-pill { justify-self: start; }
}

.floating-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--background);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  z-index: 3;
}
.floating-icon svg { width: 26px; height: 26px; }

.icon-float {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconBob 4.5s ease-in-out infinite;
}
.icon-mobile .icon-float { animation-delay: 0s; }
.icon-api .icon-float { animation-delay: 0.6s; animation-duration: 5.2s; }
.icon-db .icon-float { animation-delay: 1.1s; animation-duration: 4.8s; }
.icon-cloud .icon-float { animation-delay: 0.3s; animation-duration: 5.6s; }

@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.icon-mobile { top: 6%; left: 4%; }
.icon-api { top: 12%; right: 2%; }
.icon-db { bottom: 10%; left: 0%; }
.icon-cloud { bottom: 4%; right: 10%; }

@media (max-width: 480px) {
  .floating-icon { width: 44px; height: 44px; }
  .floating-icon svg { width: 20px; height: 20px; }
}

/* ---------- Stats strip ---------- */
.stats { padding-block: 8px 56px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, var(--surface));
}
.stat-num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-blue-1), var(--accent-indigo-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; margin-top: 6px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }

/* ---------- Why TMB Tech ---------- */
.why .section-head .eyebrow { margin-bottom: 12px; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.why-card {
  position: relative;
  padding: 30px 28px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover { box-shadow: var(--shadow-lg); border-color: #d7e0ee; }
.why-card h3 { margin-bottom: 8px; }
.why-card p { font-size: 0.95rem; }

/* ---------- 3D tilt ---------- */
[data-tilt] { transform-style: preserve-3d; }
@media (hover: hover) and (pointer: fine) {
  [data-tilt] { will-change: transform; }
}
[data-tilt] .card-icon,
[data-tilt] .product-logo { translate: 0 0 36px; }
[data-tilt] h3 { translate: 0 0 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: 96px;
  background: radial-gradient(120% 140% at 10% 0%, #1e40af 0%, #0f172a 55%, #020617 100%);
  color: #fff;
  text-align: center;
}
.cta-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 70%;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation: ctaGridMove 6s linear infinite;
  pointer-events: none;
}
@keyframes ctaGridMove {
  from { transform: perspective(500px) rotateX(62deg) translateY(0); }
  to { transform: perspective(500px) rotateX(62deg) translateY(48px); }
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(226, 232, 240, 0.85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Intro ---------- */
.intro { padding-block: 64px; background: var(--surface); border-block: 1px solid var(--border); }
.intro-inner { display: grid; gap: 32px; }
.intro-text h2 { margin-bottom: 14px; max-width: 30ch; }
.intro-text p { max-width: 62ch; }

.intro-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.intro-tags li {
  padding: 8px 16px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

@media (min-width: 1024px) {
  .intro-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
}

/* ---------- Sections generic ---------- */
.section { padding-block: 88px; }
.section-alt { background: var(--surface); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 12px; }
.section-head-left { max-width: none; }

.card-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid, .solution-grid, .project-grid { grid-template-columns: repeat(3, 1fr); }
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent-blue-1), var(--accent-blue-2));
  box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.4);
  color: #fff;
  margin-bottom: 18px;
}
.card-icon svg { width: 25px; height: 25px; }

.icon-grad-blue { background: linear-gradient(135deg, var(--accent-blue-1), var(--accent-blue-2)); box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.45); }
.icon-grad-purple { background: linear-gradient(135deg, var(--accent-purple-1), var(--accent-purple-2)); box-shadow: 0 10px 20px -6px rgba(124, 58, 237, 0.45); }
.icon-grad-teal { background: linear-gradient(135deg, var(--accent-teal-1), var(--accent-teal-2)); box-shadow: 0 10px 20px -6px rgba(13, 148, 136, 0.45); }
.icon-grad-orange { background: linear-gradient(135deg, var(--accent-orange-1), var(--accent-orange-2)); box-shadow: 0 10px 20px -6px rgba(234, 88, 12, 0.45); }
.icon-grad-pink { background: linear-gradient(135deg, var(--accent-pink-1), var(--accent-pink-2)); box-shadow: 0 10px 20px -6px rgba(219, 39, 119, 0.45); }
.icon-grad-indigo { background: linear-gradient(135deg, var(--accent-indigo-1), var(--accent-indigo-2)); box-shadow: 0 10px 20px -6px rgba(79, 70, 229, 0.45); }

/* ---------- Product & Project cards ---------- */
.product-card, .project-card, .solution-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover, .project-card:hover, .solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d7e0ee;
}
.card-icon {
  transition: transform 280ms cubic-bezier(.34,1.56,.64,1), box-shadow 280ms ease;
}
.product-card:hover .card-icon,
.project-card:hover .card-icon,
.solution-card:hover .card-icon {
  transform: scale(1.1) rotate(-4deg);
}
.product-card:hover .icon-grad-blue, .project-card:hover .icon-grad-blue, .solution-card:hover .icon-grad-blue { box-shadow: 0 16px 28px -6px rgba(37, 99, 235, 0.55); }
.product-card:hover .icon-grad-purple, .project-card:hover .icon-grad-purple, .solution-card:hover .icon-grad-purple { box-shadow: 0 16px 28px -6px rgba(124, 58, 237, 0.55); }
.product-card:hover .icon-grad-teal, .project-card:hover .icon-grad-teal, .solution-card:hover .icon-grad-teal { box-shadow: 0 16px 28px -6px rgba(13, 148, 136, 0.55); }
.product-card:hover .icon-grad-orange, .project-card:hover .icon-grad-orange, .solution-card:hover .icon-grad-orange { box-shadow: 0 16px 28px -6px rgba(234, 88, 12, 0.55); }
.product-card:hover .icon-grad-pink, .project-card:hover .icon-grad-pink, .solution-card:hover .icon-grad-pink { box-shadow: 0 16px 28px -6px rgba(219, 39, 119, 0.55); }
.product-card:hover .icon-grad-indigo, .project-card:hover .icon-grad-indigo, .solution-card:hover .icon-grad-indigo { box-shadow: 0 16px 28px -6px rgba(79, 70, 229, 0.55); }

.product-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 18px;
  transition: transform 280ms cubic-bezier(.34,1.56,.64,1), box-shadow 280ms ease, border-color var(--transition);
}
.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-card:hover .product-logo {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.45), 0 0 0 4px var(--primary-light);
  border-color: transparent;
}

.product-card h3, .project-card h3 { margin-bottom: 4px; }
.tagline { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.card-desc { font-size: 0.95rem; margin-bottom: 18px; }

.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.trial-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.tech-tags, .key-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.tech-tags { margin-top: auto; padding-top: 4px; }
.tech-tags li, .key-areas li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}
.key-areas { margin-bottom: 16px; }
.key-areas li { background: var(--primary-light); color: var(--primary-dark); border-color: transparent; }

.solution-card p { font-size: 0.95rem; }

/* ---------- Product detail page ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 28px;
  transition: color var(--transition), transform var(--transition);
}
.back-link:hover { color: var(--primary); transform: translateX(-2px); }

.product-head {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.product-head-logo {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: contain;
  padding: 10px;
  flex-shrink: 0;
}
.product-head h1 { margin-bottom: 8px; }
.product-head .tagline { margin-bottom: 10px; font-size: 1rem; }

.product-head-desc { font-size: 1.05rem; color: var(--text); max-width: 68ch; margin-bottom: 32px; }

.product-detail-section h2 { margin-bottom: 24px; }

.product-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 32px;
}
@media (min-width: 640px) {
  .product-features { grid-template-columns: 1fr 1fr; }
}

.product-tech li { font-size: 0.88rem; padding: 8px 16px; }

/* ---------- Technologies ---------- */
.tech-groups { display: grid; gap: 36px; }
@media (min-width: 768px) {
  .tech-groups { grid-template-columns: repeat(2, 1fr); }
}
.tech-group h3 { margin-bottom: 16px; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-badge {
  padding: 10px 16px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.tech-badge:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: var(--border);
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 900ms ease;
  }
  .timeline.line-drawn::before { transform: scaleX(1); }
}

.timeline-step { position: relative; z-index: 1; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue-1), var(--primary-dark));
  box-shadow: 0 10px 20px -6px rgba(37, 99, 235, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
  transition: transform 280ms cubic-bezier(.34,1.56,.64,1);
}
.timeline-step:hover .step-number { transform: scale(1.1); }
.timeline-step h3 { margin-bottom: 8px; }
.timeline-step p { font-size: 0.95rem; }

/* ---------- About ---------- */
.about-inner { max-width: 900px; }
.about-lead { font-size: 1.15rem; color: var(--text); max-width: 68ch; margin-bottom: 36px; }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .capability-grid { grid-template-columns: repeat(3, 1fr); }
}
.capability-grid li {
  padding: 16px 18px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}

.founder-note {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.founder-name { font-weight: 700; color: var(--text); margin: 0 0 2px; }
.founder-role { font-size: 0.85rem; color: var(--muted); margin: 0; }
.founder-email {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition);
}
.founder-email:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 480px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card .card-icon { margin-bottom: 10px; }
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
.contact-value { font-size: 0.98rem; color: var(--text); font-weight: 600; word-break: break-word; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.contact-card[data-placeholder="true"] span::after {
  content: "Link to be added";
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 640px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-error {
  display: none;
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 6px;
}
.form-field.invalid input,
.form-field.invalid textarea { border-color: #dc2626; }
.form-field.invalid .form-error { display: block; }
.form-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 24px; background: var(--surface); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
}
.footer-tagline { margin-top: 10px; font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { font-size: 0.9rem; color: var(--muted); transition: color var(--transition); }
.footer-nav a:hover { color: var(--primary); }
.footer-copy { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 20px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 300;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 600;
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px 32px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  color: var(--muted);
}
.modal-close:hover { background: var(--surface); color: var(--text); }

.modal-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 16px;
}
.modal-logo img { width: 100%; height: 100%; object-fit: contain; }
.modal-body-tagline { color: var(--primary); font-weight: 600; margin-bottom: 16px; }
.modal-body-desc { margin-bottom: 20px; }
.modal-body h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; }
.modal-feature-list { margin-bottom: 24px; }
.modal-feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.modal-visit-link { margin-top: 8px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Mobile: cards flip up in 3D as they scroll into view ---------- */
@supports (animation-timeline: view()) {
  @media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .product-card,
    .solution-card,
    .why-card,
    .project-card {
      animation: cardFlipUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}
@keyframes cardFlipUp {
  from { transform: perspective(900px) rotateX(28deg) translateY(40px) scale(0.92); }
  to   { transform: perspective(900px) rotateX(0) translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .app-row { opacity: 1; transform: none; }
  .parallax-el { transform: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Small screens fine-tuning ---------- */
@media (max-width: 375px) {
  .container { padding-inline: 16px; }
  .hero { padding-block: 48px 64px; }
  .section { padding-block: 64px; }
}

/* ---------- Google Play badge + free trial (values come from settings.json) ---------- */
.card-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 58px; margin-top: 10px; }
.card-extra .btn-sm { padding: 10px 16px; font-size: 0.88rem; }
.play-badge { display: inline-block; line-height: 0; margin-left: -7px; transition: transform 0.25s ease, filter 0.25s ease; }
.play-badge img { height: 58px; width: auto; display: block; }
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.25)); }
.play-soon { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 700; color: var(--text); background: var(--surface); border: 1px dashed var(--border); }

/* ---------- QA fixes ---------- */
.nav-cta-item { display: none; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
html.tmb-pending { scroll-behavior: auto !important; }
h1, h2, h3 { text-wrap: balance; }

/* product grid: three across from 900px, one column below (no lonely third card) */
.product-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
/* projects: 2 x 2 */
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
/* cards: buttons and store badge line up at the bottom of every card */
.product-card .tech-tags { margin-top: 12px; }
.card-foot { margin-top: auto; padding-top: 6px; }
.card-foot .btn-outline { margin-top: 14px; }
@media (min-width: 900px) and (max-width: 1199px) { .card-extra { min-height: 118px; } }
@media (max-width: 899px) { .card-extra { min-height: 0; } }

/* contact cards: two across until there is room for four */
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card .contact-value { overflow-wrap: anywhere; }

/* contact form */
.form-row { margin-bottom: 20px; }
.form-field .field-error, .form-field [id$="-error"] { min-height: 1.1em; display: block; }
@media (max-width: 767px) { .contact-form input, .contact-form textarea { font-size: 16px; } }

/* hero: no floating icons on top of the panel on tablets and small laptops */
@media (max-width: 1200px) { .hero-stage .floating-icon { display: none; } }

/* small things */
.trial-badge { color: #047857; }
.footer-nav a { display: inline-block; padding-block: 9px; }
.founder-email { display: inline-block; padding-block: 9px; }
.modal-close { min-width: 44px; min-height: 44px; }

/* ---------- Performance ---------- */
.section { content-visibility: auto; contain-intrinsic-size: auto 800px; }

/* ---------- Hero effects ---------- */
.hero { position: relative; }
.hero .fx-canvas { --fx-1: #2563eb; --fx-2: #3b82f6; --fx-3: #60a5fa; }
.hero-inner { position: relative; z-index: 1; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 22%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 22%, transparent 78%);
}
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.play-soon { align-items: center; gap: 9px; }
.play-soon::before { content: ""; flex-shrink: 0; width: 12px; height: 14px; background: linear-gradient(135deg, #00d2ff 0%, #34d058 38%, #ffd23f 68%, #ff5a5f 100%); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- Detailed footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-block: 64px 24px; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), var(--accent-purple-2), transparent); z-index: 2; }
.footer-bg { position: absolute; inset: 0; pointer-events: none; }
.footer-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 80% at 8% 0%, rgba(37, 99, 235, 0.09), transparent 70%), radial-gradient(45% 70% at 100% 100%, rgba(124, 58, 237, 0.07), transparent 72%); }
.footer-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(#000, transparent 75%); mask-image: linear-gradient(#000, transparent 75%); }
.site-footer .container { position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 0.8fr 1.3fr 1.4fr; gap: 40px 36px; align-items: start; padding-bottom: 40px; }
.footer-about { margin-top: 12px; font-size: 0.9rem; color: var(--muted); max-width: 34ch; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--border); background: var(--background); color: var(--muted); transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h4 { margin: 0 0 14px; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col a { font-size: 0.93rem; color: var(--text); transition: color var(--transition); display: inline-block; padding-block: 5px; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li > svg { width: 17px; height: 17px; margin-top: 9px; flex-shrink: 0; color: var(--primary); }
.footer-contact .foot-person { align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.foot-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 0.82rem; font-weight: 800; background: var(--primary); color: #fff; }
.foot-person b, .footer-prods b { display: block; font-size: 0.92rem; color: var(--text); }
.foot-person small, .footer-prods small { display: block; font-size: 0.78rem; line-height: 1.35; color: var(--muted); }
.footer-prods { gap: 6px; }
.footer-col .footer-prods a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 14px; transition: background 0.2s ease, transform 0.2s ease; }
.footer-col .footer-prods a:hover { background: var(--primary-light); transform: translateX(3px); }
.footer-prods img { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: #fff; border: 1px solid var(--border); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-bottom .footer-copy { border: 0; padding: 0; }
.footer-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 0.85rem; color: var(--muted); }
.footer-privacy a { padding-block: 6px; color: var(--text); transition: color var(--transition); }
.footer-privacy a:hover { color: var(--primary); }
.footer-top-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); transition: border-color 0.2s ease, color 0.2s ease; }
.footer-top-link:hover { border-color: var(--primary); color: var(--primary); }
.footer-top-link svg { width: 15px; height: 15px; }
@media (max-width: 1040px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Lite mode: switched on automatically on a computer that scrolls badly (see js/perf.js) ---------- */
html.lite *, html.lite *::before, html.lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .blob, html.lite .sparkles, html.lite .fx-canvas, html.lite .hero-sphere, html.lite .hero-glow, html.lite .cta-grid, html.lite .farm-scene-wrap { display: none !important; }
html.lite .marquee-track, html.lite .float-card, html.lite .floating-icon, html.lite .icon-float, html.lite .st-chip,
html.lite .device, html.lite .device-printer, html.lite .cta-grid, html.lite .hero-glow { animation: none !important; }
html.lite [data-stage], html.lite .stage-in, html.lite .st-stage-in, html.lite .hero-stage { transform: none !important; }
html.lite .hdr-in::before, html.lite .header-inner::before { background: var(--hdr-bg-solid, rgba(255, 255, 255, 0.97)) !important; }
html.lite .reveal { transition-duration: 0.2s !important; }
