/* ============================================================
   MINDTRIX AI — enhanced styles
   ============================================================ */

:root {
  --bg: #08080b;
  --bg-soft: #0e0e14;
  --bg-elev: #141420;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ece9e1;
  --text-dim: #a4a49c;
  --text-mute: #6b6b72;

  --gold: hsl(45, 100%, 58%);
  --gold-2: hsl(38, 100%, 52%);
  --gold-soft: hsla(45, 100%, 58%, 0.15);
  --gold-glow: hsla(45, 100%, 58%, 0.35);

  --radius: 14px;
  --radius-lg: 20px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui:   'Sora', var(--font-body);
  --font-display: 'Sora', var(--font-body);

  --max: 1200px;
  --ease: cubic-bezier(.16,1,.32,1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============================================================
   Custom scrollbar (gold theme)
   ============================================================ */
html {
  scrollbar-color: hsl(45, 100%, 58%) rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  border-radius: 6px;
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px hsla(45, 100%, 58%, 0.35);
}
::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.15);
}
:root[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(20, 20, 30, 0.04);
}
:root[data-theme="light"] ::-webkit-scrollbar-thumb {
  border-color: var(--bg);
}

main, .nav, .footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
p { color: var(--text-dim); margin: 0; }

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

/* ============================================================
   Global animated background (site-wide)
   ============================================================ */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: none;
}
/* Backdrop lives on <body> so the site grid (body::before) paints above it.
   Kept fixed so the glow stays pinned to the viewport while the page scrolls. */
body {
  background:
    radial-gradient(1200px 800px at 50% -10%, hsla(45, 100%, 58%, 0.08), transparent 60%) fixed,
    linear-gradient(180deg, #08080b 0%, #05050a 100%) fixed;
}

/* Site grid — one layer, the full height of the document, scrolling with the
   page. It drifts by moving its background position rather than transforming
   the layer, so the pattern never pulls away from the edges. */
body { position: relative; }
body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 90%, transparent 100%);
  animation: gridShift 40s linear infinite;
}

@keyframes gridShift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: -56px -56px, -56px -56px; }
}

/* Floating gold orbs — the hero effect, drifting over the whole page */
.site-bg-orbs { position: absolute; inset: 0; }

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.bg-orb-1 {
  width: 520px; height: 520px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, hsla(45,100%,58%,.55), transparent 70%);
  animation: drift1 26s ease-in-out infinite;
}
.bg-orb-2 {
  width: 460px; height: 460px;
  top: 25%; right: -140px;
  background: radial-gradient(circle, hsla(38,100%,52%,.45), transparent 70%);
  animation: drift2 32s ease-in-out infinite;
}
.bg-orb-3 {
  width: 380px; height: 380px;
  top: 55%; left: 30%;
  background: radial-gradient(circle, hsla(45,100%,58%,.30), transparent 70%);
  animation: drift3 38s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate3d(0,   0,   0) scale(1); }
  50%      { transform: translate3d(80px, 60px, 0) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-70px, 40px, 0) scale(1.1); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33%      { transform: translate3d(40px, -60px, 0) scale(1.08); }
  66%      { transform: translate3d(-50px, 30px, 0) scale(0.95); }
}

/* ============================================================
   Utility
   ============================================================ */

.gold-text { color: var(--gold); }

.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 50%, #fff6c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  background: var(--gold-soft);
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  animation: pulse 2.2s ease-in-out infinite;
}
.eyebrow [data-lucide] { width: 14px; height: 14px; color: var(--gold); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.85); }
}

/* Lucide icons */
[data-lucide] { width: 18px; height: 18px; stroke-width: 1.8; }
.icon-wrap [data-lucide] { width: 22px; height: 22px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s ease, color .25s ease, filter .3s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #141410;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 36px -12px var(--gold-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 50px -14px var(--gold-glow);
  filter: brightness(1.08);
}
.btn-primary [data-lucide] { stroke-width: 2.4; transition: transform .2s var(--ease); }
.btn-primary:hover [data-lucide] { transform: translateX(3px); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky; top: 0;
  z-index: 50;
  padding: 16px 0;
  background: rgba(8, 8, 11, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, padding .3s ease;
}
.nav.scrolled {
  border-color: var(--border);
  background: rgba(8, 8, 11, 0.78);
  padding: 12px 0;
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 15px;
}
.brand-mark {
  color: var(--gold);
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  animation: spin-slow 18s linear infinite;
}
.brand-mark svg { width: 100%; height: 100%; }

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

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a {
  position: relative;
  transition: color .2s ease;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gold);
  color: #141410;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   Sticky mobile CTA
   ============================================================ */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 80;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 10px 40px -10px var(--gold-glow);
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateY(120%);
  transition: transform .4s var(--ease);
}
.mobile-cta.visible { transform: translateY(0); }
@media (max-width: 720px) {
  .mobile-cta { display: inline-flex; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-bg .orb-1 {
  width: 420px; height: 420px;
  left: -60px; top: -80px;
  background: radial-gradient(circle, hsla(45,100%,58%,.55), transparent 70%);
  animation: drift1 18s ease-in-out infinite;
}
.hero-bg .orb-2 {
  width: 360px; height: 360px;
  right: -40px; top: 10%;
  background: radial-gradient(circle, hsla(38,100%,52%,.45), transparent 70%);
  animation: drift2 22s ease-in-out infinite;
}
.hero-bg .orb-3 {
  width: 300px; height: 300px;
  left: 40%; bottom: -100px;
  background: radial-gradient(circle, hsla(45,100%,58%,.35), transparent 70%);
  animation: drift3 26s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy .eyebrow { margin-bottom: 26px; }

.hero-stats-wrap {
  position: relative;
  z-index: 1;
  margin-top: 64px;
}

.hero-title {
  font-family: var(--font-ui);
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim);
  margin: 0 0 32px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-mute);
  max-width: 500px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

/* ------ Hero automation loop ------ */

.flow {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
}
.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* the loop itself */
.flow-track {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: .18;
  stroke-width: 1.4;
}
/* a lit segment that runs around the loop, like current through a circuit */
.flow-current {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 120 880;
  filter: drop-shadow(0 0 6px hsla(45, 100%, 58%, .5));
  animation: flowCurrent 12s linear infinite;
}
@keyframes flowCurrent { to { stroke-dashoffset: -1000; } }

.flow-stops circle {
  filter: drop-shadow(0 0 7px hsla(45, 100%, 58%, .65));
  transform-origin: center;
  transform-box: fill-box;
  animation: flowStop 12s ease-in-out infinite;
}
.flow-stops circle:nth-child(1) { animation-delay: 0s; }
.flow-stops circle:nth-child(2) { animation-delay: 3s; }
.flow-stops circle:nth-child(3) { animation-delay: 6s; }
.flow-stops circle:nth-child(4) { animation-delay: 9s; }
@keyframes flowStop {
  0%, 12%, 100% { transform: scale(1);   opacity: .55; }
  4%            { transform: scale(1.9); opacity: 1; }
}

.flow-packets circle { filter: drop-shadow(0 0 7px hsla(45, 100%, 75%, .9)); }

/* centre badge */
.flow-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 104px; height: 104px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: radial-gradient(circle at 50% 35%, hsla(45, 100%, 58%, .16), rgba(10, 10, 14, .9));
  border: 1px solid var(--gold-soft);
  box-shadow: inset 0 0 26px hsla(45, 100%, 58%, .15), 0 18px 44px -20px var(--gold-glow);
  color: var(--gold);
}
.flow-core [data-lucide] { width: 30px; height: 30px; stroke-width: 1.7; }
.flow-core span {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* the four stages, sitting inside the loop */
.flow-stage {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(16, 16, 22, 0.86);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  animation: flowStage 12s ease-in-out infinite;
}
.flow-stage [data-lucide] { width: 13px; height: 13px; color: var(--gold); }
.flow-stage-1 { top: 27%; left: 30%; animation-delay: 0s; }
.flow-stage-2 { top: 27%; left: 70%; animation-delay: 3s; }
.flow-stage-3 { top: 73%; left: 70%; animation-delay: 6s; }
.flow-stage-4 { top: 73%; left: 30%; animation-delay: 9s; }
@keyframes flowStage {
  0%, 14%, 100% { border-color: var(--card-border); box-shadow: none; }
  5%            { border-color: var(--gold-soft);  box-shadow: 0 0 0 1px var(--gold-soft), 0 12px 30px -18px var(--gold-glow); }
}
:root[data-theme="light"] .flow-stage {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}
:root[data-theme="light"] .flow-core {
  background: radial-gradient(circle at 50% 35%, hsla(45, 100%, 58%, .22), rgba(255, 255, 255, .95));
}


/* ------ Hero stat tiles ------ */
.stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 22px 18px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), border-color .3s ease, background .3s ease;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: var(--gold-soft);
  background: var(--surface-1-hover);
}
.stat-icon {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  margin-bottom: 4px;
}
.stat-icon [data-lucide] { width: 16px; height: 16px; stroke-width: 2; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

/* ============================================================
   Marquee
   ============================================================ */

.marquee {
  position: relative;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
  text-align: center;
}
.marquee-cap {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 22px;
}
.marquee-inner {
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: 68px;
  align-items: center;
  width: max-content;
  animation: scroll 38s linear infinite;
  color: var(--text-mute);
}
.marquee-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s ease;
  opacity: .75;
}
.marquee-logo:hover { color: var(--gold); opacity: 1; }
.marquee-logo svg { width: 26px; height: 26px; flex-shrink: 0; }

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 120px 0; position: relative; }
.section-alt {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 10%, rgba(255, 255, 255, 0.018) 90%, transparent);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin: 0 0 16px;
}
.section-head .lede { font-size: 16px; color: var(--text-dim); }

/* ============================================================
   Glass cards
   ============================================================ */

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s ease, background .3s ease;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, var(--gold-soft) 60%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 70px -28px var(--gold-glow), 0 0 0 1px var(--gold-soft) inset;
}
.glass-card:hover::before { opacity: 1; }

.glass-card h3 { font-size: 19px; margin: 16px 0 8px; }
.glass-card p  { font-size: 14.5px; }

.gradient-border {
  position: relative;
}
.gradient-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 30%, transparent 70%, var(--gold-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}

.icon-wrap {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, hsla(45, 100%, 58%, 0.20), hsla(45, 100%, 58%, 0.04));
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  box-shadow: inset 0 0 20px hsla(45, 100%, 58%, 0.12), 0 4px 12px -4px var(--gold-glow);
  transition: transform .3s var(--ease);
}
.glass-card:hover .icon-wrap { transform: scale(1.08) rotate(-3deg); }

/* Tilt parallax — JS adds --tilt-x and --tilt-y */
.tilt {
  transform: perspective(900px)
             rotateX(var(--tilt-x, 0deg))
             rotateY(var(--tilt-y, 0deg))
             translateY(var(--tilt-ty, 0px));
}

/* ============================================================
   About
   ============================================================ */

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

/* ============================================================
   Services
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service { min-height: 240px; display: flex; flex-direction: column; }
.service p { flex: 1; }

/* ============================================================
   Filter chips (portfolio)
   ============================================================ */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 40px;
}
.filter-chip {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-chip:hover {
  color: var(--text);
  border-color: var(--gold-soft);
}
.filter-chip.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  border-color: transparent;
  box-shadow: 0 10px 26px -12px var(--gold-glow);
}
:root[data-theme="light"] .filter-chip {
  background: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Portfolio
   ============================================================ */

.portfolio-card.hidden {
  display: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.portfolio-card.featured {
  grid-column: span 2;
  grid-row: span 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

.portfolio-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portfolio-card .tag {
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-soft);
}
.portfolio-card h3 { margin: 4px 0; font-size: 20px; }
.portfolio-card.featured h3 { font-size: 26px; }
.portfolio-card .metric,
.portfolio-card .metric-row .metric {
  display: flex; align-items: baseline; gap: 10px;
}
.portfolio-card .metric {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.portfolio-card .metric strong,
.portfolio-card .metric-row .metric strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
}
.portfolio-card .metric span,
.portfolio-card .metric-row .metric span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}
.portfolio-card .metric-row {
  display: flex;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-wrap: wrap;
}

/* Mockup tiles */
.mockup {
  position: relative;
  aspect-ratio: 16/9;
  background: #0c0c12;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.portfolio-card.featured .mockup {
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--border);
}
.mockup svg { display: block; width: 100%; height: 100%; }

.mockup-vision {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0d0d14, #090910);
}
.mockup-chrome {
  display: flex; gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mockup-chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.mockup-chrome span:first-child { background: hsla(0, 80%, 60%, .6); }
.mockup-chrome span:nth-child(2) { background: hsla(45, 100%, 58%, .6); }
.mockup-chrome span:last-child   { background: hsla(140, 70%, 55%, .6); }

.mockup-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mock-box {
  display: flex; align-items: center; gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}
.mock-box.ok { color: #4ade80; border-color: rgba(74, 222, 128, 0.25); }
.mock-box.fail {
  color: #ff6a6a;
  border-color: rgba(255, 106, 106, 0.35);
  background: rgba(255, 106, 106, 0.08);
  animation: fail-flash 2.4s ease-in-out infinite;
}
.mock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

@keyframes fail-flash {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

.mock-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.mock-acc { color: var(--gold); }

/* ============================================================
   Process
   ============================================================ */

.process-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-grid li { position: relative; }
.step-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px hsla(45, 100%, 58%, 0.35);
  line-height: 1;
  pointer-events: none;
}

/* ============================================================
   Why us
   ============================================================ */

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

/* ============================================================
   Floating AI chat widget
   ============================================================ */
.chat-toggle {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  cursor: pointer;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px -10px var(--gold-glow), 0 0 0 1px rgba(0,0,0,0.1);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.chat-toggle:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 50px -10px var(--gold-glow), 0 0 0 1px rgba(0,0,0,0.15);
}
.chat-toggle [data-lucide] {
  width: 26px; height: 26px;
  stroke-width: 2.2;
  transition: opacity .25s ease, transform .35s var(--ease);
  position: absolute;
}
.chat-toggle .chat-icon-closed { opacity: 1; transform: rotate(0) scale(1); }
.chat-toggle .chat-icon-open   { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-toggle.open .chat-icon-closed { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-toggle.open .chat-icon-open   { opacity: 1; transform: rotate(0) scale(1); }

.chat-toggle-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: chatPulse 2.2s ease-out infinite;
  pointer-events: none;
}
.chat-toggle.open .chat-toggle-pulse { display: none; }
@keyframes chatPulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.chat-panel {
  position: fixed;
  bottom: 104px;
  right: 26px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 140px);
  z-index: 94;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.55),
              0 0 0 1px var(--border-strong),
              0 0 80px -30px var(--gold-glow);
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-close {
  margin-left: auto;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s ease;
}
.chat-close:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}
.chat-close [data-lucide] { width: 16px; height: 16px; }

:root[data-theme="light"] .chat-close { background: rgba(255,255,255,0.7); }

@media (max-width: 720px) {
  .chat-toggle { bottom: 96px; right: 16px; width: 54px; height: 54px; }
  .chat-panel {
    bottom: 162px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    height: calc(100vh - 200px);
  }
}

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #141410;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 30px -10px var(--gold-glow), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.team-card h3 { font-size: 19px; margin: 4px 0 2px; }
.team-role {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.team-card p {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.team-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
.team-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.team-socials {
  display: flex;
  gap: 8px;
}
.team-socials a {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  transition: all .2s ease;
}
.team-socials a:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}
.team-socials [data-lucide] { width: 14px; height: 14px; }
:root[data-theme="light"] .team-socials a { background: rgba(255, 255, 255, 0.7); }

/* ============================================================
   Tech stack
   ============================================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-group {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tech-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tech-group-head h3 {
  font-size: 16px;
  margin: 0;
  font-family: var(--font-ui);
}
.tech-group-head .icon-wrap { width: 42px; height: 42px; }
.tech-group-head .icon-wrap [data-lucide] { width: 18px; height: 18px; }

.tech-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all .2s ease;
}
.tech-item:hover {
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}
.tech-chip {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, hsla(45, 100%, 58%, 0.18), hsla(45, 100%, 58%, 0.04));
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  padding: 6px;
  overflow: hidden;
}
.tech-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px hsla(45, 100%, 58%, 0.25));
}
.tech-chip-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tech-name {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.tech-item:hover .tech-name { color: var(--text); }
:root[data-theme="light"] .tech-item { background: rgba(255, 255, 255, 0.5); }

/* ============================================================
   Blog
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.blog-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--hue, 45), 100%, 70%, 0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, hsla(var(--hue, 45), 100%, 55%, 0.45), transparent 55%),
    linear-gradient(135deg, hsla(var(--hue, 45), 60%, 25%, 0.6), hsla(var(--hue, 45), 50%, 12%, 0.8));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.blog-thumb::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: 24px 24px;
}
.blog-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
:root[data-theme="light"] .blog-tag { background: rgba(255, 255, 255, 0.75); }

.blog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.blog-body h3 { font-size: 18px; line-height: 1.3; margin: 0; }
.blog-body p {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-ui);
}
.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.blog-meta [data-lucide] { width: 12px; height: 12px; color: var(--gold); opacity: .8; }

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  transition: gap .2s ease;
}
.blog-link:hover { gap: 10px; }
.blog-link [data-lucide] { width: 14px; height: 14px; }

.blog-footer,
.section-footer {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   Careers
   ============================================================ */
.careers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
.career-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  color: var(--text);
  transition: transform .3s var(--ease), border-color .3s ease, background .3s ease;
}
.career-row:hover {
  transform: translateY(-2px) translateX(4px);
}
.career-main h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.career-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.career-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.career-meta [data-lucide] { width: 13px; height: 13px; color: var(--gold); opacity: .85; }
.career-salary { color: var(--gold) !important; font-weight: 600; }
.career-main p {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}
.career-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.career-row:hover .career-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  border-color: transparent;
  box-shadow: 0 10px 26px -10px var(--gold-glow);
}
.career-cta [data-lucide] { width: 14px; height: 14px; }

.careers-footer {
  text-align: center;
  margin-top: 36px;
  font-size: 14px;
  color: var(--text-mute);
}
.careers-footer a { color: var(--gold); }

:root[data-theme="light"] .career-cta { background: rgba(255, 255, 255, 0.7); }

/* ============================================================
   Newsletter
   ============================================================ */
.newsletter-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 48px 52px;
  align-items: center;
}
.newsletter-copy .kicker { margin-bottom: 14px; }
.newsletter-copy h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 14px;
  line-height: 1.2;
}
.newsletter-copy > p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 540px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 540px;
}
.newsletter-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.newsletter-input-wrap [data-lucide] {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-mute);
  pointer-events: none;
}
.newsletter-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: all .2s ease;
}
.newsletter-input-wrap input::placeholder { color: var(--text-mute); }
.newsletter-input-wrap input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px hsla(45, 100%, 58%, 0.14);
}
:root[data-theme="light"] .newsletter-input-wrap input { background: rgba(255, 255, 255, 0.8); }
.newsletter-form .btn { justify-content: center; }

.newsletter-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--text-mute);
}
.newsletter-note [data-lucide] { width: 14px; height: 14px; color: var(--gold); opacity: .7; }

.newsletter-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 13px;
}
.newsletter-toast [data-lucide] { width: 14px; height: 14px; }

.newsletter-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 40px;
  border-left: 1px solid var(--border);
}
.newsletter-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.newsletter-stat strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.newsletter-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

/* ============================================================
   Demo chat (used inside the floating chat-panel)
   ============================================================ */
.demo-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, rgba(20,20,28,.96), rgba(12,12,18,.98));
  border: none;
}
.demo-shell:hover { transform: none; box-shadow: none; }
:root[data-theme="light"] .demo-shell {
  background: linear-gradient(180deg, #ffffff 0%, #faf7ec 100%);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.demo-header-avatar {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
}
.demo-header-avatar [data-lucide] { width: 24px; height: 24px; stroke-width: 2.2; }
.demo-header-meta { display: flex; flex-direction: column; gap: 2px; }
.demo-header-meta strong { font-family: var(--font-ui); font-size: 14px; color: #fff; }
:root[data-theme="light"] .demo-header-meta strong { color: var(--text); }
.demo-header-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-mute);
}
.demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, .6);
  animation: pulse 2.2s ease-in-out infinite;
}

.demo-messages {
  padding: 24px;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.demo-messages::-webkit-scrollbar { width: 6px; }
.demo-messages::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }

.demo-msg {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  animation: msgIn .35s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.demo-msg.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
:root[data-theme="light"] .demo-msg.bot {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
}
.demo-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  border-bottom-right-radius: 4px;
}
.demo-msg.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 18px;
}
.demo-msg.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: typing 1.2s ease-in-out infinite;
}
.demo-msg.typing span:nth-child(2) { animation-delay: .15s; }
.demo-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50%      { transform: translateY(-4px); opacity: 1; }
}
.demo-msg strong { color: var(--gold); font-weight: 700; }
.demo-msg.user strong { color: #141410; }

.demo-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}
.demo-suggest {
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.demo-suggest:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}

.demo-form {
  display: flex;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.demo-form input {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all .2s ease;
}
.demo-form input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px hsla(45, 100%, 58%, 0.12);
}
:root[data-theme="light"] .demo-form input {
  background: rgba(255, 255, 255, 0.8);
}
.demo-form button {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.demo-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px var(--gold-glow);
}

/* ============================================================
   Testimonial carousel
   ============================================================ */
.testimonial-carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.carousel-slide {
  display: none;
  animation: fadeIn .5s var(--ease);
}
.carousel-slide.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.carousel-slide .testimonial {
  padding: 42px 44px;
  min-height: 260px;
}
.carousel-slide .testimonial blockquote {
  font-size: 18px;
  line-height: 1.7;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  transition: all .25s ease;
}
:root[data-theme="light"] .carousel-arrow { background: rgba(255, 255, 255, 0.7); }
.carousel-arrow:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}
.carousel-arrow.prev { left: -66px; }
.carousel-arrow.next { right: -66px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  transition: all .2s ease;
}
.carousel-dots button.is-active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 6px;
  transition: all .3s var(--ease);
  backdrop-filter: blur(10px);
}
.faq-item[open] {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 20px 50px -24px var(--gold-glow);
}
:root[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.65);
}
:root[data-theme="light"] .faq-item[open] {
  background: rgba(255, 255, 255, 0.95);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  flex-shrink: 0;
}
.faq-item .faq-chev {
  margin-left: auto;
  color: var(--text-mute);
  transition: transform .35s var(--ease), color .2s ease;
}
.faq-item[open] .faq-chev {
  transform: rotate(180deg);
  color: var(--gold);
}
.faq-answer {
  padding: 0 24px 22px 46px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ============================================================
   Testimonials (legacy selector, kept for rendering compatibility)
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.testimonial .quote-mark {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  color: var(--gold);
  opacity: 0.2;
}
.testimonial .stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}
.testimonial .stars [data-lucide] {
  width: 16px; height: 16px;
  fill: var(--gold);
}
.testimonial blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.testimonial figcaption strong { color: #fff; font-weight: 600; display: block; font-size: 14px; }
.testimonial figcaption span { font-size: 12px; color: var(--text-mute); }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-grid h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  margin: 0 0 16px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex; flex-direction: column; gap: 16px;
  color: var(--text-dim);
  font-size: 15px;
}
.contact-list li {
  display: flex; align-items: center; gap: 14px;
}
.icon-pill {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-soft);
}

.contact-form {
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-mute); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px hsla(45, 100%, 58%, 0.12);
}
.contact-form .btn { justify-content: center; }

.form-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-size: 14px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.form-note [data-lucide] { width: 16px; height: 16px; }
.form-note.is-error,
.newsletter-toast.is-error {
  background: hsla(0, 80%, 60%, 0.12);
  border-color: hsla(0, 80%, 60%, 0.25);
  color: hsl(0, 80%, 70%);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 80px 0 28px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.footer-tagline {
  margin: 18px 0;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 320px;
}
.footer h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: #fff;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a { color: var(--text-dim); font-size: 14px; transition: color .2s ease; }
.footer a:hover { color: var(--gold); }

.icon-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.icon-list li [data-lucide] {
  flex-shrink: 0;
  width: 15px; height: 15px;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity .2s ease, transform .2s ease;
}
.icon-list li:hover [data-lucide] {
  opacity: 1;
  transform: translateX(2px);
}

.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  transition: all .25s ease;
}
.socials a:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: var(--text-mute);
}
.footer-bottom .legal { display: flex; gap: 22px; }

/* ============================================================
   Reveal animations
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */


@media (max-width: 1024px) {
  .about-grid,
  .services-grid,
  .portfolio-grid,
  .why-grid,
  .testimonials-grid,
  .team-grid,
  .tech-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 36px 32px;
  }
  .newsletter-stats {
    flex-direction: row;
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 1px solid var(--border);
    justify-content: space-around;
  }
  .career-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .career-cta {
    justify-self: flex-start;
  }
  .portfolio-card.featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
  .portfolio-card.featured .mockup {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 260px;
  }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; }
  .hero-copy { text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-note { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 380px; }

  .pricing-card.popular { transform: none; }
  .carousel-arrow.prev { left: 4px; }
  .carousel-arrow.next { right: 4px; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }

  .nav { padding: 12px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 62px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 18px;
    background: rgba(8, 8, 11, 0.96);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
  }
  :root[data-theme="light"] .nav-links.open { background: rgba(255, 255, 255, 0.96); }
  .nav-links.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .theme-toggle { width: 38px; height: 38px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 56px 0 60px; }
  .hero-inner { gap: 44px; }
  .hero-title { font-size: clamp(32px, 8vw, 44px); }
  .hero-visual { min-height: 300px; }
  .flow { max-width: 330px; }
  .flow-core { width: 84px; height: 84px; }
  .flow-core [data-lucide] { width: 24px; height: 24px; }
  .flow-core span { font-size: 8.5px; }
  .flow-stage { font-size: 10px; padding: 5px 10px; }
  .hero-stats-wrap { margin-top: 44px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 16px 14px; }
  .stat-num { font-size: 24px; }

  .about-grid, .services-grid, .portfolio-grid, .why-grid, .testimonials-grid,
  .process-grid, .team-grid, .tech-grid, .blog-grid { grid-template-columns: 1fr; }

  .newsletter-card { padding: 28px 22px; grid-template-columns: 1fr; gap: 28px; }
  .newsletter-stats {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    padding-top: 20px;
    border-left: none;
    border-top: 1px solid var(--border);
    justify-content: space-between;
    gap: 16px;
  }
  .newsletter-stat strong { font-size: 24px; }
  .newsletter-input-wrap { min-width: 0; }

  .team-avatar { width: 64px; height: 64px; font-size: 18px; }
  .tech-items { grid-template-columns: 1fr; }
  .tech-group { padding: 22px; }

  .portfolio-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .portfolio-body { padding: 22px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding: 56px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; padding-top: 20px; }

  .marquee { padding: 32px 0; }
  .marquee-cap { margin-bottom: 16px; }
  .marquee-track { gap: 42px; }
  .marquee-logo { font-size: 14px; }
  .marquee-logo svg { width: 22px; height: 22px; }

  .bg-orb { filter: blur(60px); }

  /* Modal fills more of the mobile viewport */
  .modal { padding: 10px; }
  .modal-panel { max-height: calc(100vh - 20px); border-radius: 16px; }
  .modal-scroll { padding: 40px 22px 26px; }
  .modal-content h2 { font-size: 24px; }
  .modal-content .sec ul { grid-template-columns: 1fr; }
  .modal-content .outcomes { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .blog-modal-hero { margin: -40px -22px 20px; aspect-ratio: 16/9; }
  .blog-modal-body p { font-size: 14.5px; }

  /* Testimonial carousel */
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
  .carousel-slide .testimonial { padding: 28px 22px; min-height: 0; }
  .carousel-slide .testimonial blockquote { font-size: 15px; }
  .carousel-dots { margin-top: 22px; }

  /* Chat widget */
  .demo-messages { padding: 16px; }
  .demo-suggestions { padding: 0 16px 12px; }
  .demo-form { padding: 12px 16px 16px; }

  body { padding-bottom: 90px; } /* room for sticky mobile CTA */
}

/* Extra-small phones */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 48px; }
  .hero-title { font-size: 30px; line-height: 1.08; }
  .hero-sub { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .section-head .lede { font-size: 14.5px; }
  .glass-card { padding: 22px; }
  .brand-text { font-size: 12px; letter-spacing: 0.1em; }
  .brand-mark { width: 24px; height: 24px; }
  .flow { max-width: 272px; }
  .flow-core { width: 72px; height: 72px; }
  .flow-stage { font-size: 9.5px; padding: 4px 9px; gap: 5px; }
  .flow-stage [data-lucide] { width: 11px; height: 11px; }
  .mobile-cta { font-size: 14px; padding: 14px 18px; }
  .chat-toggle { bottom: 86px; right: 14px; width: 48px; height: 48px; }
  .chat-toggle [data-lucide] { width: 22px; height: 22px; }
  .chat-panel { bottom: 144px; right: 14px; left: 14px; height: calc(100vh - 200px); }
  .footer-bottom .legal { flex-direction: column; gap: 8px; align-items: center; }
  .kicker { font-size: 10px; letter-spacing: 0.22em; padding: 5px 12px; }
  .blog-modal-meta { gap: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body::before, .bg-orb, .beam, .brand-mark, .marquee-track,
  .flow-current, .flow-stops circle, .flow-stage { animation: none !important; }
}

/* ============================================================
   Theme toggle button
   ============================================================ */

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  transform: translateY(-1px);
}
.theme-toggle [data-lucide] {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: opacity .25s ease, transform .35s var(--ease);
}
.theme-toggle .theme-sun  { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .theme-moon { opacity: 1; transform: rotate(0) scale(1); }

:root[data-theme="light"] .theme-toggle .theme-sun  { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-toggle .theme-moon { opacity: 0; transform: rotate(90deg) scale(.6); }

/* ============================================================
   LIGHT THEME
   ============================================================ */

:root[data-theme="light"] {
  --bg: #f6f3ea;
  --bg-soft: #ffffff;
  --bg-elev: #ffffff;
  --border: rgba(20, 20, 30, 0.09);
  --border-strong: rgba(20, 20, 30, 0.18);
  --text: #141420;
  --text-dim: #4a4a56;
  --text-mute: #7a7a84;
  --gold: hsl(45, 100%, 58%);
  --gold-2: hsl(45, 100%, 50%);
  --gold-soft: hsla(45, 100%, 58%, 0.18);
  --gold-glow: hsla(45, 100%, 58%, 0.35);
}

:root[data-theme="light"] body { color: var(--text); }

:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3,
:root[data-theme="light"] h4 { color: #0f0f1a; }

:root[data-theme="light"] p { color: var(--text-dim); }

/* Background */
:root[data-theme="light"] body {
  background:
    radial-gradient(1200px 800px at 50% -10%, hsla(45, 100%, 58%, 0.14), transparent 60%) fixed,
    linear-gradient(180deg, #f6f3ea 0%, #faf7ec 100%) fixed;
}
:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(30, 30, 45, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 30, 45, 0.07) 1px, transparent 1px);
}
:root[data-theme="light"] .bg-orb-1 {
  background: radial-gradient(circle, hsla(45, 100%, 58%, 0.45), transparent 70%);
}
:root[data-theme="light"] .bg-orb-2 {
  background: radial-gradient(circle, hsla(45, 100%, 52%, 0.40), transparent 70%);
}
:root[data-theme="light"] .bg-orb-3 {
  background: radial-gradient(circle, hsla(45, 100%, 62%, 0.32), transparent 70%);
}

/* Nav */
:root[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.65);
}
:root[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
}
:root[data-theme="light"] .nav-toggle span { background: #141420; }

/* Hero bg */

/* Glass cards */
:root[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(20, 20, 30, 0.08);
  backdrop-filter: blur(14px) saturate(120%);
}
:root[data-theme="light"] .glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 70px -28px rgba(180, 120, 10, 0.3),
              0 0 0 1px var(--gold-soft) inset;
}

/* Stats */
:root[data-theme="light"] .stat {
  background: rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .stat:hover {
  background: rgba(255, 255, 255, 0.92);
}

/* Buttons */
:root[data-theme="light"] .btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}
:root[data-theme="light"] .btn-ghost:hover { background: #ffffff; }

/* Forms */
:root[data-theme="light"] .contact-form input,
:root[data-theme="light"] .contact-form textarea {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}
:root[data-theme="light"] .contact-form input:focus,
:root[data-theme="light"] .contact-form textarea:focus {
  background: #ffffff;
}

/* Eyebrow & kicker */
:root[data-theme="light"] .eyebrow {
  background: rgba(255, 255, 255, 0.6);
}

/* Marquee */
:root[data-theme="light"] .marquee { background: rgba(255, 255, 255, 0.45); }

/* Progress rail */

/* Socials */
:root[data-theme="light"] .socials a {
  background: rgba(255, 255, 255, 0.7);
}

/* Theme toggle */
:root[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.7);
}

/* Modal */
:root[data-theme="light"] .modal-backdrop {
  background: rgba(20, 20, 35, 0.55);
}
:root[data-theme="light"] .modal-panel {
  background: linear-gradient(180deg, #ffffff 0%, #faf7ec 100%);
  box-shadow: 0 40px 120px -30px rgba(20, 20, 35, 0.4),
              0 0 80px -20px var(--gold-glow);
}
:root[data-theme="light"] .modal-close {
  background: rgba(20, 20, 30, 0.03);
}
:root[data-theme="light"] .modal-content .chip {
  background: rgba(20, 20, 30, 0.04);
}

/* Footer */
:root[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.5);
}

/* Testimonials quote mark stronger */
:root[data-theme="light"] .testimonial .quote-mark { opacity: 0.3; }

/* Hero title color override — the `Starts Here` part */
:root[data-theme="light"] .hero-title { color: #0f0f1a; }

/* Stars and lucide strokes a touch thicker for legibility */
:root[data-theme="light"] [data-lucide] { stroke-width: 2; }

/* ============================================================
   Clickable card affordance
   ============================================================ */

.service,
.portfolio-card {
  cursor: pointer;
}
.service::after,
.portfolio-card::after {
  content: 'Learn more →';
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.service:hover::after,
.portfolio-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.portfolio-card::after { bottom: 22px; right: 26px; }
.portfolio-card.featured::after { bottom: 30px; right: 32px; }

/* ============================================================
   Modal
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.75);
  backdrop-filter: blur(10px);
  animation: fadeIn .3s var(--ease);
}

.modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  background: linear-gradient(180deg, rgba(20, 20, 28, 0.95), rgba(12, 12, 18, 0.96));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7),
              0 0 80px -20px var(--gold-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn .45s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  cursor: pointer;
  z-index: 2;
  transition: all .2s ease;
}
.modal-close:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  transform: rotate(90deg);
}

.modal-scroll {
  overflow-y: auto;
  max-height: inherit;
  padding: 48px 52px 42px;
}
.modal-scroll::-webkit-scrollbar { width: 10px; }
.modal-scroll::-webkit-scrollbar-track { background: transparent; }
.modal-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

.modal-content .tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  margin-bottom: 18px;
}
.modal-content h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 18px;
  line-height: 1.15;
}
.modal-content .lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.modal-content .sec {
  margin-bottom: 28px;
}
.modal-content .sec h4 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.modal-content .sec p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}
.modal-content .sec ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.modal-content .sec li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}
.modal-content .sec li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 30%, transparent 70%);
  box-shadow: 0 0 8px var(--gold-glow);
}

.modal-content .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-content .chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all .2s ease;
}
.modal-content .chip:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: var(--gold-soft);
}

.modal-content .outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(45, 100%, 58%, 0.05), transparent);
  margin-bottom: 28px;
}
.modal-content .outcome {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.modal-content .outcome strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.modal-content .outcome span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

.modal-content .cta-row {
  display: flex;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

body.modal-open { overflow: hidden; }

/* Careers modal content */
.careers-cta-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  margin-bottom: 28px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(45, 100%, 58%, 0.08), transparent);
}
.careers-cta-card > [data-lucide] {
  flex-shrink: 0;
  width: 32px; height: 32px;
  color: var(--gold);
  padding: 8px;
  background: var(--gold-soft);
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
  box-sizing: content-box;
}
.careers-cta-card h4 {
  font-family: var(--font-ui);
  font-size: 15px;
  margin: 0 0 6px;
  color: #fff;
}
:root[data-theme="light"] .careers-cta-card h4 { color: var(--text); }
.careers-cta-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-dim);
}

/* Blog modal content */
.blog-modal-hero {
  position: relative;
  aspect-ratio: 21/9;
  margin: -48px -52px 24px;
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--hue, 45), 100%, 70%, 0.40), transparent 55%),
    radial-gradient(circle at 70% 70%, hsla(var(--hue, 45), 100%, 55%, 0.50), transparent 55%),
    linear-gradient(135deg, hsla(var(--hue, 45), 60%, 25%, 0.6), hsla(var(--hue, 45), 50%, 12%, 0.8));
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.blog-modal-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: 32px 32px;
}
.blog-modal-hero .blog-tag {
  top: 20px;
  left: 20px;
}
.blog-modal-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-mute);
}
.blog-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-modal-meta [data-lucide] {
  width: 14px; height: 14px;
  color: var(--gold);
}
.blog-modal-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.blog-modal-body p:last-child { margin-bottom: 28px; }

/* ============================================================
   Sub-page hero (used by blog.html, solutions.html)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 100px 0 40px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero-title {
  font-family: var(--font-ui);
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.page-hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
}

/* Active nav link (for sub-pages) */
.nav-links a.is-active {
  color: var(--gold);
}
.nav-links a.is-active::after {
  width: 100%;
}

/* ============================================================
   Solutions grid
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  cursor: pointer;
}
.solution-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.solution-head .icon-wrap { width: 48px; height: 48px; }
.solution-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.solution-card h3 {
  font-size: 22px;
  margin: 0;
}
.solution-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.solution-sec h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.solution-sec p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.solution-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(45, 100%, 58%, 0.06), transparent);
}
.solution-outcomes .outcome {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.solution-outcomes .outcome strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.solution-outcomes .outcome span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}
.solution-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.solution-tech .chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
}
:root[data-theme="light"] .solution-tech .chip { background: rgba(255, 255, 255, 0.6); }
.solution-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  transition: gap .2s ease;
}
.solution-card:hover .solution-link { gap: 10px; }
.solution-link [data-lucide] { width: 14px; height: 14px; }

@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { padding: 72px 0 24px; }
  .solution-card { padding: 24px; }
  .solution-outcomes { grid-template-columns: 1fr; }
}

/* Blog list modal (All articles) */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.blog-list-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: all .25s var(--ease);
  font-family: inherit;
}
.blog-list-item:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 40px -20px var(--gold-glow);
}
:root[data-theme="light"] .blog-list-item {
  background: rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .blog-list-item:hover {
  background: rgba(255, 255, 255, 0.95);
}
.blog-list-thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, hsla(var(--hue, 45), 100%, 70%, 0.40), transparent 55%),
    radial-gradient(circle at 70% 70%, hsla(var(--hue, 45), 100%, 55%, 0.50), transparent 55%),
    linear-gradient(135deg, hsla(var(--hue, 45), 60%, 25%, 0.6), hsla(var(--hue, 45), 50%, 12%, 0.8));
}
.blog-list-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
}
.blog-list-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.75);
  backdrop-filter: blur(6px);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.blog-list-body h3 {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.3;
}
.blog-list-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-mute);
}
.blog-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-list-meta [data-lucide] {
  width: 11px; height: 11px;
  color: var(--gold);
  opacity: .85;
}
.blog-list-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  transition: all .25s var(--ease);
}
.blog-list-item:hover .blog-list-arrow {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  transform: translateX(3px);
}
.blog-list-arrow [data-lucide] { width: 16px; height: 16px; }

@media (max-width: 720px) {
  .blog-list-item { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .blog-list-thumb { aspect-ratio: 16/7; }
  .blog-list-arrow { display: none; }
}

@media (max-width: 720px) {
  .modal { padding: 12px; }
  .modal-scroll { padding: 44px 24px 28px; }
  .modal-content .sec ul { grid-template-columns: 1fr; }
  .modal-content .outcomes { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------
   Products (MINDTRIX-built products — reuses .solution-card styling)
   --------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-card .solution-head {
  flex-wrap: wrap;
  gap: 10px;
}
.product-subtitle {
  margin: -8px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .product-card .solution-head { gap: 8px; }
  .product-subtitle { margin-top: -4px; font-size: 14px; }
}

/* =====================================================================
   REFINEMENT LAYER — typography, surfaces, controls, responsive
   ---------------------------------------------------------------------
   Appended last on purpose: these rules refine the components defined
   above without rewriting them, so keep this block at the end of the
   file. Everything theme-dependent goes through the tokens below, which
   are redefined for the light theme, so no component rule needs a
   second light-mode copy.
   ===================================================================== */

:root {
  /* Surfaces */
  --surface-1:       linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  --surface-1-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  --surface-2:       rgba(255, 255, 255, 0.04);
  --surface-sunken:  rgba(255, 255, 255, 0.03);
  --card-border:     rgba(255, 255, 255, 0.08);
  --card-inset:      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-md:       0 14px 34px -18px rgba(0, 0, 0, 0.8);
  --shadow-lg:       0 28px 64px -30px rgba(0, 0, 0, 0.9);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  /* Type rhythm */
  --tracking-caps: 0.14em;
}

:root[data-theme="light"] {
  --surface-1:       linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  --surface-1-hover: #ffffff;
  --surface-2:       rgba(255, 255, 255, 0.72);
  --surface-sunken:  rgba(20, 20, 30, 0.04);
  --card-border:     rgba(20, 20, 30, 0.09);
  --card-inset:      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-md:       0 14px 30px -20px rgba(90, 70, 15, 0.26);
  --shadow-lg:       0 26px 58px -28px rgba(90, 70, 15, 0.3);
}

/* ---------------------------------------------------------------
   Typography — Sora for display/UI, Inter for reading copy
   --------------------------------------------------------------- */

body {
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.18; }
h1 { letter-spacing: -0.03em; }

.hero-title,
.page-hero-title { font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.hero-title { font-size: clamp(34px, 5.2vw, 64px); }
.page-hero-title { font-size: clamp(32px, 5vw, 58px); }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 700; }
.section-head .lede,
.page-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--text-dim);
}

.glass-card h3 { font-size: clamp(17px, 1.3vw, 19.5px); font-weight: 600; margin: 14px 0 8px; }
.glass-card p  { font-size: 14.5px; line-height: 1.68; color: var(--text-dim); }

/* Numerals never jitter while counters animate */
.stat-num,
.metric strong,
.metric-row .metric strong,
.outcome strong,
.newsletter-stat strong,
.mock-acc {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.015em;
}

/* Micro-caps labels: Sora needs less tracking than Orbitron did */
.kicker { font-size: 10.5px; letter-spacing: 0.2em; font-weight: 600; }
.eyebrow { letter-spacing: 0.1em; }
.tag,
.chip,
.solution-tag,
.blog-tag,
.marquee-cap,
.stat-label,
.metric span,
.metric-row .metric span,
.outcome span { letter-spacing: var(--tracking-caps); }

.brand { letter-spacing: 0.15em; font-weight: 700; }

/* ---------------------------------------------------------------
   Cards — one surface language across every card type
   --------------------------------------------------------------- */

.glass-card {
  background: var(--surface-1);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: var(--card-inset);
  backdrop-filter: blur(14px) saturate(130%);
}
.glass-card:hover {
  transform: translateY(-4px);
  background: var(--surface-1-hover);
  border-color: var(--gold-soft);
  box-shadow: var(--card-inset), var(--shadow-lg);
}
:root[data-theme="light"] .glass-card { background: var(--surface-1); border-color: var(--card-border); }
:root[data-theme="light"] .glass-card:hover {
  background: var(--surface-1-hover);
  box-shadow: var(--card-inset), var(--shadow-lg);
}

.stat,
.tech-item,
.career-cta,
.faq-item { background: var(--surface-2); }
:root[data-theme="light"] .stat,
:root[data-theme="light"] .tech-item { background: var(--surface-2); }

.service { min-height: 0; }
.solution-card,
.product-card { gap: 16px; }
.product-subtitle { margin: -6px 0 0; font-size: 14.5px; line-height: 1.6; }

/* Portfolio / case-study cards */
.portfolio-card { border-radius: var(--radius-lg); }
.portfolio-card h3 { font-size: clamp(17px, 1.4vw, 20px); }
.portfolio-card.featured h3 { font-size: clamp(21px, 2.2vw, 26px); }
.mockup { border-radius: var(--radius) var(--radius) 0 0; }

/* Metric / outcome tiles */
.metric-row,
.solution-outcomes,
.modal-content .outcomes {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
}
.metric,
.metric-row .metric,
.outcome {
  background: var(--surface-sunken);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

/* Icon badges — no gimmick rotation */
.icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 18px hsla(45, 100%, 58%, 0.1);
}
.icon-wrap [data-lucide] { width: 20px; height: 20px; }
.glass-card:hover .icon-wrap { transform: scale(1.05) rotate(0deg); }

/* Pills: tags, chips, status-free and uniform */
.tag,
.chip,
.solution-tag,
.blog-tag {
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
}
.chip {
  background: var(--surface-sunken);
  border: 1px solid var(--card-border);
  color: var(--text-dim);
}

/* ---------------------------------------------------------------
   Controls — segmented filter bar, buttons, focus states
   --------------------------------------------------------------- */

.filter-bar {
  display: flex;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  background: var(--surface-sunken);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 10px 18px;
  min-height: 42px;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  color: var(--text-dim);
}
.filter-chip:hover { background: var(--surface-2); border-color: transparent; color: var(--text); }
.filter-chip.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #141410;
  border-color: transparent;
  box-shadow: 0 6px 18px -10px var(--gold-glow);
}
:root[data-theme="light"] .filter-chip { background: transparent; }
:root[data-theme="light"] .filter-chip:hover { background: rgba(20, 20, 30, 0.05); }
:root[data-theme="light"] .filter-chip.is-active { color: #141410; }

.btn {
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.btn-ghost { background: var(--surface-2); border-color: var(--card-border); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold); }

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ---------------------------------------------------------------
   Navigation
   --------------------------------------------------------------- */

.nav { padding: 14px 0; backdrop-filter: blur(18px) saturate(150%); }
.nav-links { gap: 28px; font-size: 13.5px; font-weight: 500; }
.nav-links a { padding: 6px 0; }
.nav-links a::after { height: 2px; border-radius: 2px; }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: 13.5px; }

/* ---------------------------------------------------------------
   Modal — comfortable on desktop, a sheet on phones
   --------------------------------------------------------------- */

.modal-content h2 { font-size: clamp(24px, 3vw, 34px); }
.modal-content .lead { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; }
.modal-content .sec h4 { letter-spacing: var(--tracking-caps); }

/* ---------------------------------------------------------------
   Global guards
   --------------------------------------------------------------- */

img, svg, video { max-width: 100%; }
html { overflow-x: clip; }
body { overflow-x: clip; }
::selection { background: var(--gold-soft); color: var(--text); }

/* ---------------------------------------------------------------
   Responsive — fluid first, with fixes at the real pinch points
   --------------------------------------------------------------- */

.container { padding: 0 clamp(16px, 3vw, 24px); }
.section { padding: clamp(64px, 9vw, 120px) 0; }

/* Tablet band: six nav links plus the gold CTA stop fitting beside the
   brand, so the nav CTA hands off to the sticky bottom CTA. */
@media (max-width: 1140px) and (min-width: 1001px) {
  .nav-links { gap: 20px; font-size: 13px; }
  .nav-cta { padding: 9px 15px; font-size: 13px; }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .nav-links { gap: 18px; font-size: 13px; }
  .nav-cta { display: none; }
  .mobile-cta { display: inline-flex; }
}

@media (max-width: 720px) {
  .nav { padding: 12px 0; }
  .glass-card { padding: clamp(18px, 4.6vw, 24px); border-radius: var(--radius); }
  .product-card .solution-head { gap: 8px; }
  .product-subtitle { margin-top: -2px; font-size: 14px; }
  .filter-bar { margin-left: 0; margin-right: 0; justify-content: flex-start; }
  .section-head { text-align: left; }
  .section-head .lede { margin-left: 0; }
  .modal-content h2 { font-size: 24px; }
  .mockup { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  /* two across reads better than three cramped tiles on a phone */
  .metric-row,
  .solution-outcomes,
  .modal-content .outcomes { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-cta .btn,
  .cta-row .btn,
  .section-footer .btn,
  .modal-content .cta-row .btn { width: 100%; justify-content: center; }
  .cta-row, .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .icon-wrap { width: 40px; height: 40px; }
  .icon-wrap [data-lucide] { width: 18px; height: 18px; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .section { padding: 56px 0; }
  .hero-title { font-size: 30px; line-height: 1.08; }
  .page-hero-title { font-size: 28px; }
  .section-head h2 { font-size: 24px; }
  .section-head .lede { font-size: 14.5px; }
  .glass-card h3 { font-size: 16.5px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .filter-chip { padding: 9px 14px; font-size: 12px; min-height: 40px; }
  .kicker { font-size: 10px; letter-spacing: 0.16em; }
  .brand { font-size: 13.5px; letter-spacing: 0.12em; }
}

/* Honour reduced motion for the new hover transforms too */
@media (prefers-reduced-motion: reduce) {
  .glass-card:hover,
  .glass-card:hover .icon-wrap { transform: none; }
}

/* ---------------------------------------------------------------
   Value tiles (.outcome / .metric)
   Sized for short numerics; a word value must shrink and wrap
   inside its tile rather than spill out of the card.
   --------------------------------------------------------------- */

.solution-outcomes,
.modal-content .outcomes,
.portfolio-card .metric-row { min-width: 0; }

.outcome,
.metric,
.portfolio-card .metric,
.portfolio-card .metric-row .metric { min-width: 0; }

.solution-outcomes .outcome strong,
.modal-content .outcome strong,
.portfolio-card .metric strong,
.portfolio-card .metric-row .metric strong,
.solution-outcomes .outcome span,
.modal-content .outcome span,
.portfolio-card .metric span,
.portfolio-card .metric-row .metric span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* Word values: smaller, tighter, two lines if needed */
.solution-outcomes[data-compact] .outcome strong,
.modal-content .outcomes[data-compact] .outcome strong {
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.22;
  letter-spacing: 0;
}
.portfolio-card .metric-row[data-compact] .metric strong,
.portfolio-card .metric[data-compact] strong {
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: 0;
}

/* Case-study metrics read better stacked than value-beside-label once the
   values are words instead of figures */
.portfolio-card .metric,
.portfolio-card .metric-row .metric {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.portfolio-card .metric-row { gap: 18px; }
.portfolio-card .metric-row[data-compact] { gap: 14px; }

/* Long tech chips wrap instead of forcing the card wider */
.solution-tech .chip,
.modal-content .chips .chip { max-width: 100%; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------
   Final polish
   --------------------------------------------------------------- */

/* A last tech category that would sit alone at the start of a row takes the
   full width instead, and spreads its items across it. */
.tech-group:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.tech-group:last-child:nth-child(3n + 1) .tech-items { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .tech-group:last-child:nth-child(3n + 1) .tech-items { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .tech-group:last-child:nth-child(3n + 1) .tech-items { grid-template-columns: 1fr; }
}

/* Tech cells: long names wrap inside the cell rather than widening it */
.tech-items { min-width: 0; }
.tech-item { min-width: 0; }
.tech-name { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  /* a lone third tile fills the row instead of leaving a gap */
  .solution-outcomes .outcome:nth-child(3):last-child,
  .modal-content .outcomes .outcome:nth-child(3):last-child { grid-column: 1 / -1; }
  /* comfortable thumb targets on the testimonial carousel */
  .carousel-arrow { width: 40px; height: 40px; }
}

/* Three-letter fallback chips (GPT, AWS, dbt) must fit the 34px tile */
.tech-chip { padding: 4px; }
.tech-chip-text { font-size: 9.5px; letter-spacing: 0; line-height: 1; }

/* Carousel: `.testimonial { display: flex }` is declared after
   `.carousel-slide { display: none }` with equal specificity, so every slide
   rendered at once and the arrows did nothing. Bind the state to the slide
   class itself so only the active slide shows. */
.carousel-slide:not(.is-active) { display: none; }
.carousel-slide.is-active { display: flex; }

/* Filtering: `.portfolio-card.featured { display: grid }` is declared after
   `.portfolio-card.hidden { display: none }` at equal specificity, so the
   featured case study stayed visible under every filter. */
.portfolio-grid .portfolio-card.hidden { display: none; }

/* ---------------------------------------------------------------
   Hero entrance — the page introduces itself in order rather than
   everything appearing at once.
   --------------------------------------------------------------- */
.hero .reveal { transition-duration: .85s; }
.hero .eyebrow   { transition-delay: .04s; }
.hero-title      { transition-delay: .12s; }
.hero-sub        { transition-delay: .22s; }
.hero-cta        { transition-delay: .30s; }
.hero-note       { transition-delay: .38s; }
.hero-visual     { transition-delay: .18s; }
.hero-stats .stat:nth-child(1) { transition-delay: .42s; }
.hero-stats .stat:nth-child(2) { transition-delay: .50s; }
.hero-stats .stat:nth-child(3) { transition-delay: .58s; }
.hero-stats .stat:nth-child(4) { transition-delay: .66s; }

@media (prefers-reduced-motion: reduce) {
  .hero .reveal { transition-delay: 0s !important; }
}
