/* ═══════════════════════════════════════════════════════════════
   Xubit — main.css  v14 (computed-styles diff — slider round, paddings exact)
═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:       #ffffff;
  --bg-alt:   #f8fafc;   /* slate-50 */
  --surface:  #ffffff;
  --border:   #f1f5f9;   /* slate-100 */
  --border-2: #e2e8f0;   /* slate-200 */
  --text:     #0f172a;   /* slate-900 */
  --text-2:   #334155;   /* slate-700 */
  --text-3:   #475569;   /* slate-600 / muted — 6.9:1 WCAG AA */
  --text-4:   #5e6c7e;   /* custom — 4.9:1 WCAG AA */
  --nav-bg:   rgba(255,255,255,0.92);
  --nav-border: rgba(0,0,0,0.06);

  /* Brand — matching live site */
  --primary:        #4e4c9a;
  --primary-hover:  #3d3b8a;
  --primary-light:  rgba(78,76,154,0.08);

  /* Type */
  --font-sans:    "DM Sans", Inter, sans-serif;
  --font-display: "Syncopate", sans-serif;

  /* Layout */
  --max-w:   1280px;  /* max-w-7xl */
  --pad-x:   2rem;    /* px-8 = 32px matches live */
  --pad-sec: clamp(4rem, 8vw, 8rem);
  --ease:    cubic-bezier(.4, 0, .2, 1);
  --t:       150ms var(--ease);
}

[data-theme="dark"] {
  --bg:       #0f172a;
  --bg-alt:   #1e293b;
  --surface:  #1e293b;
  --border:   #1e293b;
  --border-2: #334155;
  --text:     #f8fafc;
  --text-2:   #e2e8f0;
  --text-3:   #94a3b8;
  --text-4:   #475569;
  --nav-bg:   rgba(15,23,42,0.92);
  --nav-border: rgba(255,255,255,0.06);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.625;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(78,76,154,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,76,154,.09) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--t), color var(--t);
  overflow-x: hidden;
}
[data-theme="dark"] body {
  background-color: #0f172a;
  background-image:
    linear-gradient(rgba(78,76,154,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,76,154,.12) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}

/* ── Site background: blobs + grid overlay ──────────────── */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: #fff;
  transition: background .3s;
}
[data-theme="dark"] .site-bg { background: #0f172a; }
.site-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.site-blob-1 {
  top: -20%; right: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(78,76,154,.1) 0%, transparent 70%);
  opacity: .4;
}
.site-blob-2 {
  top: 20%; left: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(78,76,154,.05) 0%, transparent 70%);
  opacity: .3;
}
.site-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: linear-gradient(rgb(78,76,154) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(78,76,154) 1px, transparent 1px);
  background-size: 40px 40px;
}
[data-theme="dark"] .site-grid-overlay { opacity: .04; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
summary { cursor: pointer; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section-pad { padding-block: var(--pad-sec); }
.section-alt  {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(78,76,154,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,76,154,.09) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}
.section-white { background: #ffffff; }
.section-sep  { border-top: 1px solid var(--border); }

/* ── Typography ──────────────────────────────────────────────── */
/* Why H2 in primary violet (matches live site) */
#por-que .section-header h2 { color: var(--primary); }

/* ROI eyebrow: Space Mono bold (matches live site) */
#roi-calculator .section-label {
  font-family: "Space Mono", monospace !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  color: var(--primary) !important;
}

/* Architecture eyebrow: lowercase DM Sans (matches live site) */
#arquitectura .section-label {
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--text-3);
}

/* Auto-apply Syncopate to all section h2s without touching HTML */
.section-header h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: 1;
  font-size: clamp(1.875rem, 4vw, 3.75rem);
  color: var(--text);
}
.roi-left h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: .9;
  font-size: clamp(1.5rem, 3vw, 3rem);  /* max 48px matches live */
  color: var(--text);
  margin-bottom: .75rem;
}

/* Syncopate headings — matches live site H2/H3 style */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
}
.display-xl  { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.display-lg  { font-size: clamp(1.875rem, 4vw, 3.75rem); }
.display-md  { font-size: clamp(1.5rem,  3vw, 3rem);    }
.display-sm  { font-size: clamp(1.25rem, 2.5vw, 2.25rem); }

.eyebrow {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-4);
  display: block;
  margin-bottom: 1.25rem;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 1000;
  width: 0;
  pointer-events: none;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  /* Left-aligned like the live site */
}
.section-header p {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 560px;
  margin-top: .875rem;
}

/* Gradient text for hero accent word */
.text-gradient {
  color: var(--primary);
}

/* ── Buttons ─────────────────────────────────────────────────── */
/* Matches live site: square, uppercase, small, tracking-widest */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .625rem 1.5rem;
  border-radius: 0;
  transition: background var(--t), opacity var(--t), transform var(--t);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .625rem 1.5rem;
  border-radius: 0;
  border: 1px solid var(--border-2);
  transition: border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--t);
}
.btn-ghost:hover { color: var(--primary); }

.btn-full { width: 100%; justify-content: center; }

/* ── Reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 0;
  transition: padding .3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 72rem; /* max-w-6xl */
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 1px 3px rgba(100,116,139,.08);
  transition: background var(--t), border-color var(--t);
}
[data-theme="dark"] .nav-inner { background: rgba(15,23,42,0.9); }
/* Gradient top line on nav card */
.nav-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(78,76,154,.5), transparent);
  pointer-events: none;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 90px; width: auto; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="dark"]  .logo-light { display: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav-menu a {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--t);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-3);
  border: 1px solid var(--border-2);
  transition: color var(--t), border-color var(--t);
}
.theme-btn:hover { color: var(--primary); border-color: var(--primary); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--t), opacity var(--t);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100dvh;
  padding-top: 12rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(78,76,154,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,76,154,.09) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
  padding-bottom: clamp(4rem, 6vw, 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  letter-spacing: -.02em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 5rem; /* mb-20 */
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .hero-title { font-size: clamp(3rem, 7vw, 5rem); }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 5.5rem; }
}
.hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-end;
}
.hero-desc {
  font-size: 1.125rem;  /* text-lg = 18px matches live */
  font-weight: 400;     /* font-normal matches live */
  color: var(--text-3);
  line-height: 1.65;
  max-width: 55ch;
  flex: 1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  flex-shrink: 0;
}
/* Hero buttons match live site: rounded-full, dark, 15px, normal case */
.hero-row .btn-primary {
  background: #0f172a;
  font-size: .9375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
}
.hero-row .btn-primary:hover { background: #1e293b; transform: none; }
.hero-row .btn-outline {
  background: rgba(245,242,239,.8);
  border: none;
  font-size: .9375rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 1rem 1.75rem;
  border-radius: 30px;
  color: #0f172a;
}
.hero-row .btn-outline:hover { background: rgba(235,232,229,.9); border: none; color: #0f172a; transform: none; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { flex: 1; min-width: 120px; padding-right: 2rem; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: .375rem;
}
.stat-label {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.4;
}
.stat-sep {
  width: 1px;
  background: var(--border);
  margin-block: .25rem;
  align-self: stretch;
  margin-right: 2rem;
}

/* Lang button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-3);
  border: 1px solid var(--border-2);
  padding: .375rem .625rem;
  transition: color var(--t), border-color var(--t);
}
.lang-btn:hover { color: var(--primary); border-color: var(--primary); }
.lang-sep { color: var(--border-2); }

/* ═══════════════════════════════════════════════════════
   CLIENTS TICKER
═══════════════════════════════════════════════════════ */
.clients {
  padding-block: 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.clients-header {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
}
.clients-left .clients-heading {
  font-family: var(--font-sans);
  font-size: .75rem;         /* 12px = text-xs matches live */
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  display: block;
}
.clients-left .clients-desc {
  font-size: 1.25rem;        /* 20px = text-xl matches live */
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.6;
}
.clients-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 4 cols like live */
  gap: 0;
}
.cstat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.5rem;
  border-left: 1px solid var(--border);
}
.cstat:first-child { border-left: none; }
.cstat-icon {
  color: var(--primary);
  margin-bottom: .25rem;
}
.cstat-value {
  font-size: 1.5rem;         /* 24px matches live */
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1;
}
.cstat-label {
  font-family: "Space Mono", monospace;  /* matches live */
  font-size: .625rem;        /* 10px matches live */
  font-weight: 300;          /* weight 300 matches live */
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  line-height: 1.3;
}
/* keep legacy stats for hero-stats class just in case */
.clients-header .hero-stats { display: none; }
/* legacy title kept for compat */
.clients-title {
  font-size: .625rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 2rem;
}
.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding-inline: 3rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  opacity: .3;
  filter: grayscale(1);
  transition: opacity var(--t), filter var(--t);
}
.ticker-item:hover { opacity: 1; filter: grayscale(0); }
.ticker-item em { font-style: normal; color: var(--text-4); font-weight: 400; }
.ticker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════ */
.section-header-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .section-header-row {
    flex-direction: row;
    align-items: flex-end;
    gap: 3rem;
  }
  .section-header-row h2 { flex: 1; }
  .section-header-row p { max-width: 28rem; }
}
.section-header-row h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.04em;
  line-height: 1;
  font-size: clamp(1.875rem, 4vw, 3.75rem);
  color: var(--text);
}
.section-header-row p {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.65;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.srv-card {
  background: transparent;
  padding: 2.5rem;       /* p-10 = 40px uniform matches live */
  transition: background var(--t);
  position: relative;
  overflow: hidden;
}
.srv-card:hover { background: var(--bg-alt); }
.srv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--primary);
  transition: height .5s ease;
}
.srv-card:hover::before { height: 100%; }
.srv-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.75rem;
  opacity: .5;
  transition: opacity var(--t);
}
.srv-card:hover .srv-icon { opacity: 1; }
.srv-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;   /* text-xl = 20px matches live */
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.srv-card p {
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.srv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-top: .5rem;
}
.srv-tags li {
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.srv-tags li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;  /* round bullets */
  background: var(--primary);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   WHY XUBIT
═══════════════════════════════════════════════════════ */
.why-list,
.why-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--border);
}
.why-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem;         /* p-12 = 48px uniform matches live */
  background: transparent;
  align-items: start;
  border-bottom: 1px solid var(--border);
  transition: background .5s;
}
.why-item:last-child { border-bottom: none; }
.why-item:hover { background: var(--bg-alt); }
.why-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--border);   /* slate-100 — almost invisible, matches live text-slate-100 */
  line-height: 1;
  transition: color .5s;
}
.why-item:hover .why-num { color: rgba(78,76,154,.2); } /* violet on hover, matches group-hover:text-xubit-primary/20 */
.why-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .75rem;
  text-transform: uppercase;
}
.why-item p {
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   ARCHITECTURE
═══════════════════════════════════════════════════════ */
.arch { position: relative; overflow: hidden; }
.arch::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--primary) 1px, transparent 0px);
  background-size: 40px 40px;
  opacity: .05;
  pointer-events: none;
}
[data-theme="dark"] .arch::before { opacity: .04; }

/* Architecture section header: centered */
#arquitectura .section-header {
  text-align: center;
  max-width: 56rem;
  margin-inline: auto;
}

/* H2 accent for architecture */
.arch .section-header h2 span { color: var(--primary); }

/* Arch eyebrow: monospace */
#arquitectura .section-label {
  font-family: "Space Mono", monospace !important;
  font-size: .6875rem !important;
  letter-spacing: .3em !important;
}

.arch-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
/* Horizontal connector line */
.arch-steps::before {
  content: '';
  position: absolute;
  top: calc(56px / 2 + 2.5rem);
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  pointer-events: none;
  z-index: 0;
}
.arch-step {
  background: transparent;
  padding: 2.5rem;       /* p-10 = 40px uniform matches live */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
  position: relative;
  z-index: 1;
}
.arch-step:hover {
  background: rgba(78,76,154,.04);
  border-color: rgba(78,76,154,.2);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.arch-step-num {
  font-family: var(--font-display);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--primary);
}
.arch-step-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--bg);
  transition: border-color var(--t);
}
.arch-step:hover .arch-step-icon { border-color: var(--primary); }
.arch-step h3 {
  font-family: var(--font-display);
  font-size: clamp(.875rem, 1.5vw, 1.125rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.arch-step p {
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.65;
}
.arch-badge {
  display: inline-block;
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  padding: .25rem .625rem;
  width: fit-content;
  margin-top: auto;
}
.arch-badge-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
/* Hide old connector arrows */
.arch-connector { display: none; }

/* ═══════════════════════════════════════════════════════
   CASES
═══════════════════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.case-card {
  background: transparent;
  padding: 2.5rem;       /* p-10 = 40px uniform matches live */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--t);
  position: relative;
}
.case-card:hover { background: var(--bg-alt); }
.case-quote-mark {
  font-size: 3.5rem;
  line-height: .8;
  color: var(--primary);
  opacity: .25;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: .25rem;
}
.case-quote-icon {
  color: var(--primary);
  opacity: .2;
  margin-bottom: 1rem;
}
.case-metric-badge {
  padding: .75rem 1rem;
  background: rgba(78,76,154,.05);
  border-left: 2px solid var(--primary);
  margin-bottom: 1.5rem;
}
.case-metric {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}
.case-card blockquote {
  font-size: 1.125rem;  /* 18px matches live */
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.case-client {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.case-client img  { width: 48px; height: 48px; object-fit: contain; border: 1px solid var(--border); padding: 4px; background: var(--bg); }
.case-client strong { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.case-client span   { font-size: .6rem; font-weight: 400; color: var(--text-4); letter-spacing: .08em; text-transform: uppercase; }
.case-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--t), gap var(--t);
  margin-top: .5rem;
}
.case-link:hover { color: var(--primary); gap: .625rem; }

/* ═══════════════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.product-card {
  background: transparent;
  padding: 2.5rem;       /* p-10 = 40px uniform matches live */
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--t);
}
.product-card:hover { background: var(--bg-alt); }
.product-badge {
  display: inline-block;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: .2rem .5rem;
  width: fit-content;
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.product-tagline {
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  margin-top: -.5rem;
}
.product-desc {
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.65;
}
.product-features { display: flex; flex-direction: column; gap: .625rem; }
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-2);
}
.product-features svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.product-tags span {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  padding: .25rem .625rem;
}

/* ═══════════════════════════════════════════════════════
   ROI CALCULATOR
═══════════════════════════════════════════════════════ */
.roi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.roi-left h2 { margin-bottom: .75rem; }
.roi-left > p {
  font-size: 1.125rem;   /* text-lg = 18px matches live */
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.slider-group { margin-bottom: 2rem; }
.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .625rem;
}
.slider-row label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.slider-row label svg { color: var(--primary); flex-shrink: 0; }
output {
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;           /* h-1.5 = 6px matches live */
  background: var(--border-2);
  border-radius: 9999px; /* rounded-lg matches live */
  outline: none;
  accent-color: var(--primary); /* accent-xubit-primary matches live */
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;    /* ROUND — matches live native thumb */
  transition: transform var(--t);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.3); }
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: none;
  border-radius: 50%;    /* ROUND — matches live native thumb */
  cursor: pointer;
}

.roi-result {
  background: transparent;
  border: 1px solid var(--border);
  padding: 2.5rem;       /* uniform matches live card style */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.roi-result svg { color: var(--primary); }
.roi-result h3 {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.roi-amount {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
#roiValue {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);  /* max 60px matches live */
  font-weight: 700;
  color: var(--text);                     /* dark color matches live */
  letter-spacing: -.03em;
  transition: opacity .15s;
}
.roi-amount small { font-size: .625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.roi-result > p { font-size: .8125rem; font-weight: 300; color: var(--text-3); line-height: 1.65; }
.roi-disclaimer { font-size: .5625rem; color: var(--text-4); letter-spacing: .05em; }

/* ═══════════════════════════════════════════════════════
   FAQ  — button-based animated accordion (matches live site)
═══════════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
/* button-based FAQ item */
.faq-item {
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background var(--t);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: none; }
.faq-item.open { background: var(--bg-alt); }

/* FAQ trigger button */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;          /* bold 700 matches live */
  font-size: 1.125rem;       /* 18px matches live */
  color: var(--text);
  text-align: left;
  letter-spacing: -.01em;
  text-transform: uppercase; /* live uses uppercase */
  transition: color var(--t), background var(--t);
  gap: 1rem;
}
.faq-trigger:hover { background: var(--bg-alt); }
.faq-item.open .faq-trigger { color: var(--primary); }

/* Chevron icon in FAQ trigger */
.faq-chevron {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* FAQ answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.7;
}

/* Legacy <details> FAQ support (fallback) */
.faq-item[open] { background: var(--bg-alt); }
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: .8125rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color var(--t);
  letter-spacing: .01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform var(--t);
}
.faq-item[open] summary::after  { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--primary); }
.faq-item > p {
  padding: 0 1.5rem 1.25rem;
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   WORK
═══════════════════════════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 800px;
}
.work-card {
  background: transparent;
  padding: 2.5rem;       /* uniform matches live card style */
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: background var(--t);
}
.work-card:hover { background: var(--bg-alt); }
.work-card-alt { background: var(--primary); }
.work-card-alt:hover { background: var(--primary-hover); }
.work-role {
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-4);
}
.work-card-alt .work-role { color: rgba(255,255,255,.5); }
.work-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.work-card-alt h3 { color: #fff; }
.work-card > p {
  font-size: .8125rem;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.65;
}
.work-card-alt > p { color: rgba(255,255,255,.7); }
.work-card-alt .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.work-card-alt .btn-outline:hover { border-color: #fff; }

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: .75rem; }
.contact-info > p { font-size: .8125rem; font-weight: 300; color: var(--text-3); line-height: 1.65; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.75rem; }
.contact-details li { display: flex; align-items: center; gap: .625rem; font-size: .8125rem; font-weight: 300; color: var(--text-2); }
.contact-details a:hover { color: var(--primary); }
.contact-social { display: flex; gap: .5rem; }
.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-2);
  color: var(--text-3);
  transition: border-color var(--t), color var(--t);
}
.contact-social a:hover { border-color: var(--primary); color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label {
  font-size: .5625rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--border-2);
  border-radius: 0;
  color: var(--text);
  font-size: .8125rem;
  font-weight: 300;
  transition: border-color var(--t);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-bottom-color: var(--primary); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-4); font-size: .75rem; letter-spacing: .05em; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-success { font-size: .75rem; color: #00c758; font-weight: 600; padding: .875rem; background: rgba(0,199,88,.06); text-align: center; letter-spacing: .05em; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(78,76,154,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,76,154,.09) 1px, transparent 1px);
  background-size: 60px 60px;
  background-attachment: fixed;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer img { height: 80px; width: auto; }
.footer p { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text-4); }
.footer-tagline { color: var(--primary) !important; }

/* ═══════════════════════════════════════════════════════
   WHATSAPP FAB
═══════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  opacity: 0;
  transform: scale(0.8);
  animation: springIn .5s .3s cubic-bezier(.34,1.56,.64,1) forwards;
  transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }
.whatsapp-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .2;
  animation: ping 1s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.chat-fab {
  position: fixed;
  bottom: calc(2rem + 64px + 12px);
  right: 2rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(78,76,154,.35);
  opacity: 0;
  transform: scale(0.8);
  animation: springIn .5s .5s cubic-bezier(.34,1.56,.64,1) forwards;
  transition: transform .3s ease, box-shadow .3s ease;
}
.chat-fab:hover { transform: scale(1.1) translateY(-2px); }
.chat-fab:hover svg { transform: rotate(12deg); }
.chat-fab svg { transition: transform .3s ease; }

@keyframes springIn {
  to { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-steps    { grid-template-columns: 1fr; }
  .roi-inner     { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .cases-grid    { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-item      { grid-template-columns: 48px 1fr; gap: 1rem; }
  .hero-stats    { flex-direction: column; gap: 1.25rem; }
  .stat-sep      { display: none; }
}
@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--nav-bg); border-bottom: 1px solid var(--nav-border); padding: 1.5rem var(--pad-x); gap: 1.25rem; backdrop-filter: blur(12px); }
  .nav-menu.open { display: flex; }
  .nav-burger { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .work-grid     { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
}
