/* ══════════════════════════════════════════════════════════
   CHROMA SYNC v4 — Design System (Overhaul)
   ══════════════════════════════════════════════════════════ */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --bg: #06060f;
  --bg-2: #0d0d1c;
  --bg-3: #111128;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.12);
  --text: #f0f0f8;
  --text-2: #9090b0;
  --text-3: #606078;
  --c-violet: #e1315f;
  --c-blue: #3d9fff;
  --c-cyan: #ff6b8a;
  --c-amber: #ffb84d;
  --c-rose: #e1315f;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 10px;
  --r-xl: 10px;
  --f-display: 'Syne', sans-serif;
  --f-body: 'DM Sans', sans-serif;
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }
.no-scroll { overflow: hidden !important; }

/* ─── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
  transition: opacity 0.5s, visibility 0.5s;
  padding: 2rem;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  text-align: center;
  max-width: 90vw;
  overflow: hidden;
}
.loader-logo-img { height: clamp(28px, 5vw, 42px); width: auto; filter: brightness(0) invert(1); }
.footer-logo-img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.loader-bar {
  width: min(180px, 55vw); height: 2px;
  background: var(--border);
  border-radius: 10px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--c-violet), #ff6b8a);
  transition: width 0.08s linear;
  border-radius: 10px;
}

/* ─── Logo ───────────────────────────────────────────────── */
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.1em; }
.logo-img { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); }
.lc { color: var(--text); }
.ls { color: var(--c-violet); }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 68px;
  display: flex; align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.opaque {
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  border-color: var(--border);
}
.nav-inner {
  width: 100%; max-width: 1400px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.nav-links {
  display: flex; list-style: none; gap: clamp(1rem, 2.5vw, 2rem); align-items: center;
  flex-shrink: 0;
}
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border-2) !important;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem !important;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-cta:hover { background: var(--surface-2) !important; border-color: var(--c-violet) !important; }

.logo { flex-shrink: 0; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
@media (max-width: 900px) {
  .nav-links { gap: 1rem; }
  .nav-cta { padding: 0.4rem 0.8rem; font-size: 0.78rem !important; }
}
@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(6,6,15,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    z-index: 99;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 1.5rem; width: 100%; font-size: 0.95rem; }
  .nav-cta { margin: 0.4rem 1.5rem !important; width: calc(100% - 3rem) !important; text-align: center; padding: 0.6rem 1rem !important; font-size: 0.875rem !important; }
}

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  will-change: transform;
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.hero-video-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a0a15 0%, #0d0d1c 40%, #10080c 100%);
  z-index: -1;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(6,6,15,0.7) 100%);
}
/* 60% Dark overlay — video shows at ~40% */
.hero-dark-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.60);
  pointer-events: none;
}
.grain {
  position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  max-width: 1200px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(225,49,95,0.08); border: 1px solid rgba(225,49,95,0.2);
  border-radius: 10px; padding: 0.4rem 1rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 2rem;
  opacity: 0;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-violet);
  box-shadow: 0 0 0 0 rgba(225,49,95,0.6);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(225,49,95,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(225,49,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,49,95,0); }
}

/* Title */
.hero-title {
  font-family: var(--f-display); font-size: clamp(1.2rem, 8vw, 3.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  word-break: normal;
  overflow-wrap: normal;
}
.title-line { display: block; color: #fff; }
.title-line--ghost {
  display: block;
  color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.5);
  margin-top: 0.3rem;
}
@media (max-width: 768px) {
  .title-line--ghost {
    -webkit-text-stroke: 1px rgba(255,255,255,0.5);
  }
}
#dynamicLine1, #dynamicLine2 {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--text-2); max-width: 540px; margin: 0 auto 2rem;
  line-height: 1.7; opacity: 0;
}

.hero-ctas {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.5rem; opacity: 0;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-violet); color: #fff;
  padding: 0.85rem 1.8rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.3s, transform 0.2s;
  will-change: transform;
}
.cta-primary:hover { background: #ff4d7a; box-shadow: 0 0 30px rgba(225,49,95,0.35); }
.cta-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-2); color: var(--text);
  padding: 0.85rem 1.8rem; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}
.cta-ghost:hover { background: var(--surface-2); border-color: var(--c-violet); }

/* Hero chips */
.hero-chips { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hchip {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.4rem 0.85rem;
  font-size: 0.78rem; opacity: 0;
}
.hchip-n { font-family: var(--f-display); font-weight: 800; color: var(--c-violet); }
.hchip-l { color: var(--text-2); font-weight: 500; }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 5; color: var(--text-3); font-size: 0.6rem; letter-spacing: 0.2em;
  transition: opacity 0.3s;
}
.scroll-hint.hidden { opacity: 0; }
.sh-mouse {
  width: 20px; height: 32px; border: 1.5px solid var(--text-3);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.sh-wheel { width: 3px; height: 6px; border-radius: 3px; background: var(--text-3); animation: wheel-scroll 1.8s ease-in-out infinite; }
@keyframes wheel-scroll {
  0%,100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 0.2; }
}

/* ─── Marquee ─────────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.marquee-inner { display: flex; }
.mtrack {
  display: flex; gap: 2.5rem; align-items: center;
  white-space: nowrap;
  font-family: var(--f-display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--text-3);
  animation: marquee 28s linear infinite;
}
.msep { color: var(--c-violet); opacity: 0.5; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ─── Services — Horizontal Carousel ─────────────────────── */
.services-section {
  padding: clamp(4rem,8vw,7rem) 0 0;
  overflow: hidden;
}
.section-header {
  text-align: center; max-width: 900px; margin: 0 auto;
  padding: 0 clamp(1.5rem,5vw,4rem);
  margin-bottom: clamp(3rem,5vw,5rem);
  opacity: 0;
}
.s-eyebrow {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--c-violet);
  margin-bottom: 0.75rem;
}
.s-title {
  font-family: var(--f-display); font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.s-title em { font-style: italic; color: var(--text-2); }
.s-sub { font-size: 1.05rem; color: var(--text-2); line-height: 1.7; }

/* Carousel wrapper */
.svc-carousel-wrap { position: relative; }

.svc-carousel {
  display: flex; gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.svc-carousel::-webkit-scrollbar { display: none; }
.svc-carousel:active { cursor: grabbing; }

/* Vertical card — 15% narrower, 15% taller */
.svc-card-v {
  flex: 0 0 400px; min-width: 400px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.3s;
  will-change: transform;
}
.svc-card-v:first-child {
  margin-left: clamp(3rem, 6vw, 6rem) !important;
}
.svc-card-v:last-child {
  margin-right: clamp(3rem, 6vw, 6rem) !important;
}
.svc-card-v:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
}

/* Image half — 15% taller */
.svc-card-img {
  position: relative;
  height: 530px; overflow: hidden;
}
.svc-card-img img {
  transition: transform 0.6s var(--ease-out);
}
/* 30% dark overlay on card images */
.svc-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.30);
  pointer-events: none;
  z-index: 0;
}
.svc-card-overlay { z-index: 1; }
.svc-card-title-block { z-index: 2; }
.svc-card-v:hover .svc-card-img img { transform: scale(1.04); }

/* Gradient overlay that bleeds down — title sits on it */
.svc-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(6,6,15,0.5) 60%,
    rgba(6,6,15,0.95) 100%
  );
  /* accent tint */
  background-image: linear-gradient(
    to bottom,
    transparent 30%,
    color-mix(in srgb, var(--accent) 12%, var(--bg) 88%) 75%,
    color-mix(in srgb, var(--accent) 6%, var(--bg) 94%) 100%
  );
}

/* Title block sits at the bottom of the image */
.svc-card-title-block {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.4rem 1.35rem;
}
.svc-card-eyebrow {
  display: block;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.25rem;
}
.svc-card-name {
  font-family: var(--f-display); font-size: 1.45rem; font-weight: 800;
  line-height: 1.1; color: #fff;
  white-space: nowrap;
}

/* Text half */
.svc-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.svc-card-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* "Ver qué incluye" button — Apple Learn More style */
.svc-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(225,49,95,0.12);
  border: 1px solid rgba(225,49,95,0.25);
  color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  align-self: flex-start;
}
.svc-more-btn:hover {
  background: rgba(225,49,95,0.22);
  border-color: rgba(225,49,95,0.45);
  transform: translateX(3px);
}
.svc-more-btn--blue {
  background: rgba(61,159,255,0.12);
  border-color: rgba(61,159,255,0.25);
}
.svc-more-btn--blue:hover {
  background: rgba(61,159,255,0.22);
  border-color: rgba(61,159,255,0.45);
}
.svc-more-btn--amber {
  background: rgba(255,184,77,0.12);
  border-color: rgba(255,184,77,0.25);
}
.svc-more-btn--amber:hover {
  background: rgba(255,184,77,0.22);
  border-color: rgba(255,184,77,0.45);
}
.svc-more-btn--rose {
  background: rgba(255,94,138,0.12);
  border-color: rgba(255,94,138,0.25);
}
.svc-more-btn--rose:hover {
  background: rgba(255,94,138,0.22);
  border-color: rgba(255,94,138,0.45);
}
.svc-more-btn--cyan {
  background: rgba(0,215,189,0.12);
  border-color: rgba(0,215,189,0.25);
}
.svc-more-btn--cyan:hover {
  background: rgba(0,215,189,0.22);
  border-color: rgba(0,215,189,0.45);
}
.smb-icon {
  width: 24px; height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.svc-more-btn:hover .smb-icon { transform: translateX(2px); }

/* Carousel right-fade overlay */
.svc-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 140px;
  height: calc(100% - 80px); /* stop before the nav */
  background: linear-gradient(to right, transparent, var(--bg) 90%);
  pointer-events: none;
  z-index: 2;
}

/* Carousel nav */
.carousel-nav {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem clamp(3rem, 6vw, 6rem) 2rem;
  position: relative; z-index: 3;
}
.cnav-btn {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.cnav-btn:hover { background: rgba(225,49,95,0.15); border-color: rgba(225,49,95,0.4); transform: scale(1.06); }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.cdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.2s;
  min-width: 44px; min-height: 44px; /* large hit area */
  display: flex; align-items: center; justify-content: center;
  background-clip: content-box;
  padding: 18px;
  background-color: var(--border-2);
  border-radius: 50%;
}
.cdot.active {
  background-color: var(--c-violet); width: 24px; border-radius: 4px; padding: 0; min-width: 24px;
}


/* ─── Process Section v2 — Overlay Image Layout ─────────── */
.process-section {
  padding: clamp(4rem,8vw,8rem) clamp(1.5rem,5vw,4rem);
}
.proc-inner-v2 {
  max-width: 1200px; margin: 0 auto;
}

/* Full-width image with overlay */
.proc-hero-img {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 420px;
  margin-bottom: clamp(2rem,4vw,3rem);
}
.proc-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.proc-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.30);
  pointer-events: none;
}
.proc-hero-badges {
  position: absolute; inset: 0;
  pointer-events: none;
}
.proc-badge {
  position: absolute;
  background: rgba(6,6,15,0.88); backdrop-filter: blur(16px);
  border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: 0.75rem 1.1rem; text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
  pointer-events: auto;
}
.pb1 { top: 1.5rem; right: 1.5rem; }
.pb2 { bottom: 1.5rem; left: 1.5rem; }
.pb-n { font-family: var(--f-display); font-size: 1.4rem; font-weight: 800; color: var(--c-violet); display: block; }
.pb-l { font-size: 0.7rem; color: var(--text-2); letter-spacing: 0.08em; }

/* Content below image */
.proc-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4rem);
  align-items: start;
}
.proc-header { margin-bottom: 0; }
.proc-steps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.proc-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.25s, background 0.25s;
  opacity: 0;
}
.proc-step-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.psc-num {
  font-family: var(--f-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--c-violet);
  background: rgba(225,49,95,0.1);
  border: 1px solid rgba(225,49,95,0.25);
  border-radius: 6px;
  width: 32px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.proc-step-card strong { font-size: 0.95rem; font-weight: 600; }
.proc-step-card p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; margin: 0; }

/* ─── Contact Section — Glassmorphism Card ────────────── */
.contact-section {
  padding: clamp(4rem,8vw,8rem) clamp(1.5rem,5vw,4rem);
  background: var(--bg-2); border-top: 1px solid var(--border);
}
.contact-container {
  max-width: 800px; margin: 0 auto;
}
.contact-glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(2rem,4vw,3.5rem);
  box-shadow: 0 8px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.03);
}
.cgc-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.contact-info {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}
.ci-item {
  display: inline-flex; gap: 0.5rem; align-items: center;
  font-size: 0.88rem; color: var(--text-2);
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-wrap { display: flex; flex-direction: column; gap: 0.35rem; }
.field-wrap label { font-size: 0.78rem; font-weight: 500; color: var(--text-2); letter-spacing: 0.03em; }
.field-wrap input,
.field-wrap textarea,
.field-wrap select {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.75rem 1rem;
  color: var(--text); font-family: var(--f-body); font-size: 0.88rem;
  outline: none; width: 100%;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field-wrap input:focus,
.field-wrap textarea:focus,
.field-wrap select:focus {
  border-color: var(--c-violet); background: rgba(225,49,95,0.06);
}
.field-wrap textarea { resize: vertical; min-height: 110px; }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 2.5rem; cursor: pointer; }
.sel-arrow { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-3); }

.form-submit {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-violet); color: #fff;
  font-weight: 600; font-size: 0.95rem; border-radius: 10px;
  padding: 0.9rem 2rem; align-self: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.form-submit:hover { background: #ff4d7a; box-shadow: 0 0 30px rgba(225,49,95,0.35); }
.form-submit.success { background: #059669; }
.fs-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: clamp(3rem,6vw,5rem) clamp(1.5rem,5vw,4rem) 2rem;
}
.footer-top {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--text-3); margin-top: 0.75rem; max-width: 260px; line-height: 1.6; }
.footer-links-group { display: flex; flex-direction: column; gap: 0.6rem; }
.fl-head { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); margin-bottom: 0.5rem; }
.footer-links-group a,
.fl-link {
  font-size: 0.85rem; color: var(--text-2);
  transition: color 0.2s;
  text-align: left;
}
.footer-links-group a:hover,
.fl-link:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  font-size: 0.82rem; color: var(--text-3);
  opacity: 0.7;
}

/* ─── Scroll reveal states ──────────────────────────────── */
.cs-reveal { opacity: 0; }
.ps-reveal { opacity: 0; }

/* ══════════════════════════════════════════════════════════
   POPUP — Apple Sheet Style
   ══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   POPUP PREMIUM — Full-height panel, tabbed interface
   ═══════════════════════════════════════════════════ */

.popup-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px) saturate(1.4);
  display: flex; align-items: stretch; justify-content: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.popup-overlay.active { opacity: 1; pointer-events: all; }

.popup-panel {
  width: 100%; max-width: 620px;
  height: 100%;
  background: #0d0d1c;
  border-left: 1px solid var(--border-2);
  position: relative;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}
.popup-overlay.active .popup-panel { transform: translateX(0); }

.popup-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 20;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.popup-close:hover { background: rgba(255,255,255,0.15); color: var(--text); transform: scale(1.08); }

/* Hero image */
.pp-hero {
  position: relative; height: 280px; flex-shrink: 0; overflow: hidden;
}
.pp-hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform-origin: center;
  transition: transform 8s linear;
}
.popup-overlay.active .pp-hero-img { transform: scale(1.05); }
.pp-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,28,0.1) 0%, rgba(13,13,28,0.25) 40%, rgba(13,13,28,0.88) 70%, rgba(13,13,28,1) 100%);
}
.pp-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem 0;
}
.pp-eyebrow {
  display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 0.3rem;
}
.pp-title {
  font-family: var(--f-display); font-size: clamp(1.6rem, 5vw, 2.75rem);
  font-weight: 800; line-height: 1; color: #fff; margin-bottom: 0.75rem;
  word-break: break-word;
}

/* Metrics row */
.pp-metrics { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-bottom: 1.25rem; }
.pp-metric {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px); border-radius: 10px; padding: 0.6rem 0.9rem; min-width: 80px;
}
.pp-metric-n {
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; line-height: 1;
}
.pp-metric-l { font-size: 0.6rem; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; margin-top: 0.15rem; }

/* Tabs */
.pp-tabs {
  display: flex; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,28,0.98);
  padding: 0 0.5rem;
}
.pp-tab {
  flex: 1; padding: 0.85rem 0.25rem;
  font-size: 0.76rem; font-weight: 500; color: var(--text-3);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.pp-tab.active { color: var(--text); border-bottom-color: var(--c-violet); }
.pp-tab:hover:not(.active) { color: var(--text-2); }

/* Scroll + panes */
.pp-scroll { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.pp-pane { display: none; padding: 1.75rem 1.75rem 2rem; animation: pane-in 0.28s var(--ease-out); }
.pp-pane.active { display: block; }
@keyframes pane-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtitle */
.pp-subtitle {
  font-size: 0.9rem; color: var(--text-2); line-height: 1.75; margin-bottom: 1.75rem;
  border-left: 2px solid var(--c-violet); padding-left: 1rem;
}

/* Feature grid */
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.75rem; }
.pp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.25s, background 0.25s;
}
.pp-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
}
.pp-card-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}
.pp-card strong { font-size: 0.83rem; font-weight: 600; display: block; }
.pp-card p { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; margin: 0; }

/* Use cases */
.pp-usecases { margin-top: 0.5rem; }
.pp-usecases-title {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem;
}
.pp-usecase-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pp-uc-tag {
  font-size: 0.78rem; padding: 0.35rem 0.85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.pp-uc-tag:hover { border-color: var(--border-2); color: var(--text); }

/* Process timeline */
.pp-timeline { display: flex; flex-direction: column; gap: 0; }
.pp-step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.4rem 0; opacity: 0;
  border-bottom: 1px solid var(--border);
}
.pp-step:last-child { border-bottom: none; }
.pp-step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.pp-step-num {
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 0.72rem; font-weight: 700;
}
.pp-step-line { width: 1.5px; flex: 1; min-height: 20px; background: var(--border); margin-top: 6px; }
.pp-step:last-child .pp-step-line { display: none; }
.pp-step-body { padding-top: 0.45rem; }
.pp-step-body strong { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.pp-step-body p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; margin: 0 0 0.5rem 0; }
.pp-step-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem; border-radius: 10px;
}

/* Includes */
.pp-includes-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.pp-inc-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.7rem 0.9rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); opacity: 0;
  transition: border-color 0.2s;
}
.pp-inc-item:hover { border-color: var(--border-2); }
.pp-inc-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.pp-inc-text { font-size: 0.85rem; color: var(--text-2); line-height: 1.55; }
.pp-inc-text strong { display: block; font-weight: 600; color: var(--text); font-size: 0.82rem; }
.pp-not-includes { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 0.5rem; }
.pp-ni-title {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem;
}
.pp-ni-items { display: flex; flex-direction: column; gap: 0.4rem; }
.pp-ni-row { display: flex; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--text-3); }

/* Pricing */
.pp-pricing { display: flex; flex-direction: column; gap: 1rem; }
.pp-price-note {
  font-size: 0.8rem; color: var(--text-2); line-height: 1.65;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1rem;
  border-left: 3px solid var(--c-amber);
}
.pp-price-tiers { display: flex; flex-direction: column; gap: 0.75rem; }
.pp-tier {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.2rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: border-color 0.25s, background 0.25s; opacity: 0;
}
.pp-tier:hover { border-color: var(--border-2); background: var(--surface-2); }
.pp-tier.featured { border-color: rgba(225,49,95,0.4); background: rgba(225,49,95,0.06); }
.pp-tier-name { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.2rem; }
.pp-tier-desc { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }
.pp-tier-price {
  font-family: var(--f-display); font-size: 1.3rem; font-weight: 800;
  white-space: nowrap; flex-shrink: 0; text-align: right;
}
.pp-tier-period { display: block; font-size: 0.66rem; color: var(--text-3); font-weight: 400; font-family: var(--f-body); }
.pp-tier-badge {
  display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 10px;
  background: var(--c-violet); color: #fff; margin-left: 0.5rem; vertical-align: middle;
}
.pp-price-footer { font-size: 0.78rem; color: var(--text-3); text-align: center; padding-top: 0.5rem; }

/* CTA bar */
.pp-cta-bar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(13,13,28,0.96); border-top: 1px solid var(--border); backdrop-filter: blur(12px);
}
.pp-cta-labels { display: flex; flex-direction: column; }
.pp-cta-service { font-weight: 600; font-size: 0.88rem; }
.pp-cta-hint { font-size: 0.72rem; color: var(--text-3); margin-top: 0.1rem; }

@media (max-width: 640px) {
  .popup-overlay { align-items: flex-end; justify-content: center; }
  .popup-panel {
    max-width: 100%; height: 94svh;
    border-left: none; border-top: 1px solid var(--border-2);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    transform: translateY(100%);
  }
  .popup-overlay.active .popup-panel { transform: translateY(0); }
  .pp-hero { height: 160px; }
  .pp-hero-img { object-fit: cover; object-position: center 30%; }
  .pp-hero-content { padding: 1rem 1.25rem 0; }
  .pp-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .pp-eyebrow { font-size: 0.58rem; margin-bottom: 0.2rem; }
  .pp-metrics { gap: 0.5rem; padding-bottom: 0.75rem; }
  .pp-metric { padding: 0.45rem 0.7rem; min-width: 60px; }
  .pp-metric-n { font-size: 1.1rem; }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-pane { padding: 1.25rem 1.25rem 1.5rem; }
  .pp-cta-bar { padding: 0.75rem 1.25rem; }
}


/* ─── Scroll Thread — Single kinetic line following scroll ─────── */
#scrollThread {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  z-index: 90;
  pointer-events: none;
  overflow: visible;
  contain: layout style;
}
/* The SVG inside is positioned via JS (fixed, full page) */
.thread-track {
  stroke: rgba(255,255,255,0.04);
  stroke-width: 1;
  fill: none;
}
.thread-fill {
  stroke: url(#threadGrad);
  stroke-width: 2px;
  fill: none;
  stroke-linecap: round;
  will-change: contents;
}
.thread-dot {
  fill: var(--c-violet);
  will-change: contents;
}

@media (max-width: 900px) {
  #scrollThread { display: none !important; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .proc-content { grid-template-columns: 1fr; }
  .proc-steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .svc-card-v { flex: 0 0 80vw; min-width: 0; }
  .svc-card-img { height: 240px; }
  .form-grid { grid-template-columns: 1fr; }
  .proc-steps-grid { grid-template-columns: 1fr; }
  .proc-hero-img { height: 240px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  /* Hero CTAs — stack on mobile */
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }
  .cta-primary, .cta-ghost {
    width: 100%;
    justify-content: center;
  }
  .cta-ghost {
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: var(--text);
  }
}


@media (max-width: 900px) {
  .scroll-hint {
    display: none !important;
  }
}

/* Hero title — guaranteed fluid scaling on all screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1rem, 5vw, 1.6rem);
  }
  #tl1 {
    white-space: nowrap;
  }
  .title-line--ghost {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.45);
  }
  .hero-sub {
    font-size: 0.8rem;
  }
  .hero-chips {
    gap: 0.35rem;
  }
  .hchip {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }
}

/* ─── Large Screens (1920px+) ──────────────────────────── */
@media (min-width: 1600px) {
  .services-section { padding-top: 8rem; }
  .svc-card-v:first-child { margin-left: calc((100vw - 1400px) / 2 + 2rem) !important; }
  .svc-card-v:last-child { margin-right: calc((100vw - 1400px) / 2 + 2rem) !important; }
  .carousel-nav {
    padding-left: calc((100vw - 1400px) / 2 + 2rem);
    padding-right: calc((100vw - 1400px) / 2 + 2rem);
  }
  .section-header { max-width: 1000px; }
  .proc-inner-v2 { max-width: 1400px; }
  .proc-hero-img { height: 500px; }
  .contact-container { max-width: 900px; }
}

@media (min-width: 2000px) {
  .hero-title { font-size: clamp(3rem, 5vw, 6rem); }
  .svc-card-v { flex: 0 0 440px; min-width: 440px; }
  .svc-card-img { height: 560px; }
}