@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #faf9fc;
  --bg-dark: #2b1466;
  --bg-dark-alt: #381d80;
  --text-primary: #1a1325;
  --text-secondary: #4a4456;
  --text-muted: #847e93;
  --text-light: #ffffff;
  --text-light-muted: rgba(255,255,255,0.68);
  --border: #ece9f3;
  --border-strong: #d6d0e6;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --blue: #1d4ed8;
  /* Primary brand: purple + white — tech company identity. Do not drift to gray/neutral as the primary accent. */
  --brand: #7b4dff;
  --brand-dark: #6429e0;
  --brand-light: #f1ecff;
  --font-heading: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --radius: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.36s cubic-bezier(0.4,0,0.2,1);
  --max-w: 1280px;
  --nav-h: 64px;
  /* Section padding: more breathing room on mobile (was 28px min). Mobile is priority. */
  --section-pad: clamp(44px, 8vw, 96px);
  --announcement-h: 0px;
  --shadow-sm: 0 1px 3px rgba(43,20,102,0.06), 0 1px 2px rgba(43,20,102,0.04);
  --shadow-md: 0 4px 24px rgba(43,20,102,0.10);
  --shadow-lg: 0 16px 48px rgba(43,20,102,0.16);
  /* Shared content gaps — used across grids so "cramped" components share one fix point */
  --gap-sm: 12px;
  --gap-md: clamp(20px, 4vw, 28px);
  --gap-lg: clamp(28px, 6vw, 44px);

  /* Theme morph — single shared transition token applied to structural elements
     so switching light/dark crossfades as one coherent motion, not a flicker. */
  --theme-transition: background-color 0.4s cubic-bezier(0.4,0,0.2,1),
                       color 0.4s cubic-bezier(0.4,0,0.2,1),
                       border-color 0.4s cubic-bezier(0.4,0,0.2,1),
                       box-shadow 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Dark theme ───────────────────────────────────────────────────────────
   Applied via [data-theme="dark"] on <html>, set by inline pre-paint script
   in base.html (reads localStorage before first paint — no flash) and
   toggled by static/js/main.js: themeToggle(). Only variables are swapped;
   no component CSS is duplicated, so dark mode inherits every existing rule. */
html[data-theme="dark"] {
  --bg: #14101f;
  --bg-alt: #1b1530;
  --bg-dark: #0e0a1a;
  --bg-dark-alt: #15102a;
  --text-primary: #f4f2fa;
  --text-secondary: #b8b2c8;
  --text-muted: #7e7894;
  --text-light: #ffffff;
  --text-light-muted: rgba(255,255,255,0.68);
  --border: #2a2440;
  --border-strong: #3a3258;
  --brand-light: #241c40;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.22);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

html[data-theme="dark"] .navbar {
  background: rgba(20,16,31,0.97);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .navbar.scrolled {
  background: rgba(20,16,31,0.99);
}

html[data-theme="dark"] .nav-mobile-menu {
  background: var(--bg);
}

html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-textarea {
  background: var(--bg-alt);
}

html[data-theme="dark"] img:not(.logo-img):not(.footer-logo) {
  filter: brightness(0.94);
}

html[data-theme="dark"] .btn-outline--light:hover {
  color: var(--bg-dark);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
  height: -webkit-fill-available;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--announcement-h, 0px);
  min-height: -webkit-fill-available;
  transition: var(--theme-transition);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--text-primary);
}

/* Mobile-first type scale — larger floors than before so headings don't feel squashed on small phones */
h1 { font-size: clamp(2.125rem, 9vw, 3.75rem); }
h2 { font-size: clamp(1.625rem, 6vw, 2.375rem); }
h3 { font-size: clamp(1.1875rem, 4.5vw, 1.375rem); }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .nav-mobile-menu { transition: none !important; }
  @keyframes float { from { transform: none; } to { transform: none; } }
  :root { --theme-transition: none; }
}

.section-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  /* Mobile gets real side padding, not a squeezed clamp floor */
  padding: 0 clamp(20px, 6vw, 48px);
}

.section {
  padding: var(--section-pad) 0;
}

.section--alt { background: var(--bg-alt); transition: var(--theme-transition); }
.section--dark { background: var(--bg-dark); transition: var(--theme-transition); }

.section-header {
  margin-bottom: clamp(24px, 5vw, 36px);
}

.section-header--center { text-align: center; }

.section-title {
  font-size: clamp(1.625rem, 5.5vw, 2.375rem);
  letter-spacing: -0.03em;
}

.section-title--light { color: var(--text-light); }

.section-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 10px 0 0;
  line-height: 1.65;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}

.eyebrow--light { color: #c9b3ff; }

.section-action {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 5vw, 36px);
}

.navbar {
  position: fixed;
  top: var(--announcement-h, 0px);
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.99);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px);
}

.nav-left, .nav-right {
  display: none;
  gap: 0;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo .logo-img {
  height: clamp(34px, 5vw, 38px);
  width: auto;
  display: block;
  transition: opacity var(--transition);
}

.nav-logo:hover .logo-img { opacity: 0.8; }

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active { color: var(--brand); }

.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--brand);
  color: var(--text-light);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  margin-left: 6px;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123,77,255,0.35);
  color: var(--text-light);
}

/* ── Theme toggle ─────────────────────────────────────────────────────────
   Reuses the icon-button language already used by .nav-mobile-close —
   same 40-44px circular footprint, no new visual vocabulary. */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--theme-transition), transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color var(--transition), color var(--transition);
  margin-left: 8px;
  flex-shrink: 0;
  font-size: 0.9375rem;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: rotate(15deg);
}

.theme-toggle i {
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}

.theme-toggle[aria-pressed="true"] i {
  transform: rotate(180deg);
}

.nav-mobile-footer .theme-toggle {
  width: 100%;
  height: 52px;
  border-radius: var(--radius);
  margin-left: 0;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.nav-mobile-footer .theme-toggle .theme-toggle-label::after {
  content: "Dark Mode";
}

.nav-mobile-footer .theme-toggle[aria-pressed="true"] .theme-toggle-label::after {
  content: "Light Mode";
}

.nav-mobile-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1101;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-mobile-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}

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

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,19,37,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.nav-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: -8px 0 48px rgba(43,20,102,0.18);
  border-left: 1px solid var(--border);
  will-change: transform;
}

.nav-mobile-menu.is-open { transform: translateX(0); }

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  min-height: var(--nav-h);
  flex-shrink: 0;
}

.nav-mobile-header .logo-img {
  height: 30px;
  width: auto;
}

.nav-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.nav-mobile-close:hover {
  background: var(--bg-alt);
  border-color: var(--border-strong);
}

.nav-mobile-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.nav-mobile-links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
  text-decoration: none;
  position: relative;
}

.nav-mobile-links a:hover {
  color: var(--brand);
  background: var(--bg-alt);
  padding-left: 30px;
}

.nav-mobile-links a:last-child { border-bottom: none; }

.nav-mobile-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.nav-mobile-footer .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: var(--brand);
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: opacity var(--transition), transform var(--transition);
  text-decoration: none;
}

.nav-mobile-footer .mobile-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--text-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  user-select: none;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  border-radius: inherit;
}

.btn:active::before { opacity: 0.1; }
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--brand);
  color: var(--text-light);
  border-color: var(--brand);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,77,255,0.35);
  color: var(--text-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline--light {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255,255,255,0.35);
}

.btn-outline--light:hover {
  background: var(--text-light);
  border-color: var(--text-light);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--border-strong);
  color: var(--brand);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.8125rem;
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand);
  text-decoration: none;
  min-height: 48px;
  transition: gap var(--transition), opacity var(--transition);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn-text-link:hover {
  gap: 14px;
  opacity: 0.75;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  transition: gap var(--transition);
  text-decoration: none;
}

.card-link:hover { gap: 10px; }

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 10px clamp(48px, 8vw, 80px) 10px clamp(16px, 4vw, 48px);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  /* Was 1100 — equal to/above the mobile nav menu, which caused the
     announcement bar to render on top of the mobile menu's close button
     since both are position:fixed at top:0. Mobile nav must always sit
     above page chrome while open. */
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}

.announcement-bar__text {
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.01em;
}

.announcement-bar__text strong {
  color: var(--text-light);
  font-weight: 700;
}

.announcement-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: var(--text-light) !important;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
  min-height: 32px;
}

.announcement-bar__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.announcement-bar__cta i { font-size: 0.625rem; }

.announcement-bar__dismiss {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 8px;
  font-size: 1.125rem;
  line-height: 1;
  transition: color var(--transition);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar__dismiss:hover { color: rgba(255,255,255,0.92); }

.hero {
  padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 40px));
  padding-bottom: clamp(32px, 6vw, 40px);
  background: var(--bg);
  overflow: hidden;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text { max-width: 100%; }

.hero-headline {
  font-size: clamp(2.5rem, 10vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-headline em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
  max-width: 520px;
}

.hero-proof-line {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

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

.hero-aside { width: 100%; }

.system-status-card {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  transition: var(--theme-transition);
}

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

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.status-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.status-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4ade80;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.35); }
}

.status-rows { padding: 8px 0; }

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.status-row:last-child { border-bottom: none; }
.status-row-name { color: rgba(255,255,255,0.7); font-weight: 500; }
.status-row-val { font-size: 0.75rem; font-weight: 700; }
.status-green { color: #4ade80; }
.status-amber { color: #fbbf24; }

.status-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.status-footer strong {
  color: #4ade80;
  font-weight: 700;
}

.hero-industries {
  margin-top: clamp(20px, 4vw, 32px);
  border-top: 1px solid var(--border);
}

.hero-industries-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px clamp(20px, 6vw, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hi-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hi-item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.hi-divider {
  width: 3px;
  height: 3px;
  background: var(--border-strong);
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--theme-transition);
}

.trust-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px clamp(20px, 6vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: normal;
}

.trust-strip-item i {
  color: var(--brand);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  border: none;
  border-radius: var(--radius-md);
  overflow: visible;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 5vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

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

.service-card-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 14px;
}

.service-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.methodology-item {
  padding: clamp(24px, 5vw, 32px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  transition: background var(--transition), border-color var(--transition);
}

.methodology-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
}

.methodology-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.14);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  line-height: 1;
}

.methodology-item h3 {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.methodology-item p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light-muted);
  margin: 0;
}

.work-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: clamp(18px, 4vw, 22px) clamp(18px, 4vw, 26px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  text-decoration: none;
  transition: background var(--transition), padding-left var(--transition);
}

.work-item:last-child { border-bottom: none; }

.work-item:hover {
  background: var(--bg);
  padding-left: clamp(22px, 4vw, 34px);
}

.work-item-meta { display: none; }

.work-num {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.work-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.work-item-content h3 {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.work-item-content p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.work-item-thumb { display: none; }

.work-item-arrow {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.work-item:hover .work-item-arrow {
  transform: translateX(5px);
  color: var(--brand);
}

.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stack-category { border-bottom: 1px solid var(--border); }
.stack-category:last-child { border-bottom: none; }

.stack-cat-header {
  padding: 14px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stack-cat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.stack-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.stack-item:hover { background: var(--bg-alt); }
.stack-item:nth-child(even) { border-right: none; }
.stack-item:nth-last-child(-n+2) { border-bottom: none; }

.stack-item-dot {
  width: 5px;
  height: 5px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.outcomes-strip {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.outcomes-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.outcome-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(24px, 5vw, 32px) clamp(18px, 4vw, 28px);
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.outcome-value {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-light);
  line-height: 1;
}

.outcome-label {
  font-size: 0.8125rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.about-text p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
  border: none;
  border-radius: 0;
  overflow: visible;
}

.pillar {
  padding: clamp(20px, 4vw, 26px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.pillar:hover { background: var(--bg); transform: translateY(-2px); }

.pillar i {
  font-size: 1.0625rem;
  color: var(--brand);
  margin-bottom: 12px;
  display: block;
}

.pillar h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }

.pillar p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.cta-section { background: var(--bg-dark); }

.cta-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 6vw, 40px) clamp(24px, 5vw, 36px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta-text h2 {
  color: var(--text-light);
  font-size: clamp(1.5rem, 5vw, 2.125rem);
  margin-bottom: 10px;
}

.cta-text p { color: var(--text-light-muted); font-size: 1rem; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.process-step {
  display: flex;
  gap: 18px;
  padding: clamp(22px, 5vw, 32px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.process-step:last-child { border-bottom: none; }

.process-num {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.process-body h3 {
  font-size: 1.0625rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.process-body p {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Portfolio grid ───────────────────────────────────────────────────────
   Default desktop/tablet behaviour unchanged (grid). Mobile override that
   converts this into a single horizontal scroll row lives in
   mobile-patch.css, scoped under max-width so this base rule stays the
   source of truth for >= 768px. */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
  text-decoration: none;
  display: block;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), background var(--transition), border-color var(--transition);
}

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

.portfolio-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-dark);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  display: block;
}

.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }

.portfolio-meta { padding: clamp(20px, 4vw, 24px); }

.portfolio-cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.portfolio-meta h3 { font-size: 1.0625rem; margin-bottom: 8px; }

.portfolio-meta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Mobile "swipe" hint label — hidden by default, shown only under the
   horizontal-scroll breakpoint in mobile-patch.css. */
.scroll-hint {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
}

.product-block {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), background var(--transition), border-color var(--transition);
}

.product-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.browser-mockup {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-dark);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.browser-dots { display: flex; gap: 5px; flex-shrink: 0; }

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  font-family: ui-monospace, monospace;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-content {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.browser-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.product-block:hover .browser-content img { transform: scale(1.04); }

.browser-content-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
}

/* ── Project detail hero: now an actual photo backdrop, not flat color ───── */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 44px));
  padding-bottom: clamp(28px, 6vw, 40px);
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.page-hero .section-inner { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--text-light);
  font-size: clamp(2rem, 8vw, 3.5rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-light-muted);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  max-width: 540px;
  line-height: 1.7;
  margin: 0;
}

/* Photo-backed hero variant — applied to project_detail when project.image exists */
.page-hero--photo {
  background: var(--bg-dark);
  min-height: clamp(320px, 62vw, 460px);
  display: flex;
  align-items: flex-end;
}

.page-hero--photo .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero--photo .page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero--photo .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,20,102,0.55) 0%, rgba(26,12,63,0.78) 65%, rgba(20,9,48,0.94) 100%);
}

.page-hero--photo::before { display: none; }

.page-hero--photo .section-inner {
  padding-top: clamp(60px, 18vw, 120px);
  padding-bottom: clamp(28px, 5vw, 40px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 18px;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(123,77,255,0.14);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23847e93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

.contact-form-wrap { max-width: 100%; }

.contact-info {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.contact-info-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-item h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-info-item a,
.contact-info-item p {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  text-decoration: none;
  transition: opacity var(--transition);
}

.contact-info-item a:hover { opacity: 0.7; }
.contact-info-item p { color: var(--text-secondary); }

.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.booking-col { padding: clamp(24px, 5vw, 36px); }

.booking-col:first-child {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.booking-col:last-child { background: var(--bg); }

.booking-block-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: block;
}

.slot-date-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.slot-date-label {
  padding: 11px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-date-label i { color: var(--text-muted); font-size: 0.625rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.slot-btn {
  background: var(--bg-alt);
  border: none;
  padding: 14px 6px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: center;
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.slot-btn:hover { background: var(--bg); color: var(--text-primary); }

.slot-btn.active {
  background: var(--brand);
  color: var(--text-light);
}

.slots-scroll {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.slots-scroll::-webkit-scrollbar { width: 4px; }
.slots-scroll::-webkit-scrollbar-track { background: var(--bg); }
.slots-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.selected-time-display {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  background: var(--bg-alt);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
}

.fee-display {
  display: none;
  margin-top: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fee-display p {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fee-display .fee-amount {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ── Trust row: auto-scrolling marquee on small screens, static flex on larger ── */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 22px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .trust-row {
    grid-template-columns: repeat(4, 1fr);
  }
}


.trust-row-track {
  display: contents;
}

.trust-item {
  padding: 16px 18px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  transition: background var(--transition);
}

.trust-item:nth-child(2n) { border-right: none; }
.trust-item:nth-last-child(-n+2) { border-bottom: none; }
.trust-item:hover { background: var(--bg); }


.trust-item i {
  font-size: 1rem;
  color: var(--brand);
  margin-bottom: 6px;
  display: block;
}

.trust-item p {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0;
}

.trust-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.trust-check-row i {
  color: var(--green);
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 4vw, 32px);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover { color: var(--brand); }

.breadcrumb i {
  font-size: 0.5rem;
  color: var(--border-strong);
}

.filter-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  transition: var(--theme-transition);
}

.catalog-filter-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* ── Catalog/portfolio category tabs: edge-bleed scroll so they never feel cramped ── */
.catalog-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(-1 * clamp(20px, 6vw, 48px));
  padding: 0 clamp(20px, 6vw, 48px);
}

.catalog-tabs-scroll::-webkit-scrollbar { display: none; }

.catalog-tabs-track {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  min-width: max-content;
  padding-bottom: 2px;
}

.filter-search { display: flex; gap: 8px; }
.filter-search .form-input { min-height: 44px; padding: 10px 14px; }

.quote-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

.quote-form-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quote-form-section {
  padding: clamp(22px, 5vw, 30px);
  border-bottom: 1px solid var(--border);
}

.quote-form-section:last-child { border-bottom: none; }

.quote-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: block;
}

.quote-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quote-sidebar-block {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}

.quote-sidebar-block:last-child { border-bottom: none; }

.quote-sidebar-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.process-step-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.process-step-row:last-child { margin-bottom: 0; }

.step-num {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--border-strong);
  letter-spacing: -0.04em;
  flex-shrink: 0;
  line-height: 1.1;
}

.step-text p:first-child {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.step-text p:last-child {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 48px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: clamp(40px, 7vw, 60px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  height: 26px;
  width: auto;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-light-muted);
  max-width: 280px;
  margin-bottom: 18px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.footer-social a:hover {
  border-color: var(--brand);
  color: var(--text-light);
  background: rgba(123,77,255,0.22);
}

.footer-nav-group h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.footer-nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-group ul li a {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav-group ul li a:hover { color: var(--text-light); }

.footer-contact-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.footer-contact-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-col address a,
.footer-contact-col address span {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-contact-col address a:hover { color: var(--text-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.quick-contact-fab {
  position: fixed;
  bottom: 24px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px;
  background: var(--brand);
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 26px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(123,77,255,0.35);
  z-index: 499;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.quick-contact-fab.visible {
  opacity: 1;
  pointer-events: auto;
}

.quick-contact-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(123,77,255,0.45);
  color: var(--text-light);
}

.whatsapp-fab {
  position: fixed;
  bottom: 88px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,0.4);
  z-index: 499;
  transition: transform var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37,211,102,0.5);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.founder-grid,
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  align-items: start;
}

.founder-placeholder,
.team-card-avatar {
  aspect-ratio: 1;
  max-width: 152px;
  margin: 0 auto;
  background: var(--brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(24px, 5vw, 32px) clamp(20px, 4vw, 28px);
  background: var(--bg-alt);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

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

.team-card-avatar {
  width: 104px;
  height: 104px;
  max-width: 104px;
  margin: 0 auto 18px;
  font-size: 1.875rem;
}

.team-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.team-card .team-role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  display: block;
}

.team-card p.team-bio {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.team-card-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.team-card-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.8125rem;
  transition: var(--transition);
}

.team-card-socials a:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

.founder-content-col blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding: 0;
  border: none;
}

.founder-content-col p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: start;
}

.pay-tab-btn {
  flex: 1;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  color: var(--text-muted);
  min-height: 48px;
}

.pay-tab-btn.active {
  background: var(--brand);
  color: var(--text-light);
}

.pay-tab-btn:not(.active):hover { color: var(--brand); }

.network-option { display: none; }

.network-option + label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  min-height: 56px;
}

.network-option:checked + label {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand-dark);
}

.network-option + label:hover {
  border-color: var(--border-strong);
  color: var(--brand);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 18px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.receipt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
}

.thumb-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}

/* ── "Built For" banner (project detail) ─────────────────────────────── */
.built-for-banner {
  margin-bottom: 44px;
  padding: clamp(28px, 5vw, 40px);
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.built-for-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.built-for-eyebrow {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9b3ff;
  margin-bottom: 10px;
}

.built-for-heading {
  position: relative;
  font-size: clamp(1.125rem, 3.5vw, 1.375rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.built-for-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.built-for-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
}

.built-for-chip i {
  color: #c9b3ff;
  font-size: 0.75rem;
}

.built-for-banner .btn-primary {
  position: relative;
  background: var(--text-light);
  color: var(--brand-dark);
  border-color: var(--text-light);
}

.built-for-banner .btn-primary:hover {
  opacity: 1;
  background: var(--brand-light);
}