/* ════════════════════════════════════════════
   SPARCLE — main.css
   Sections:
   1.  Variables & Reset
   2.  Scrollbar & Selection
   3.  Cursor
   4.  Page Transition
   5.  Navbar
   6.  Hero
   7.  Shimmer / Glitch
   8.  Ticker
   9.  Services
   10. Stats
   11. Process
   12. Tech Bar
   13. CTA Section
   14. Footer
   15. Reveal Animation
   16. Contact Page
   17. Responsive
════════════════════════════════════════════ */

/* ── 1. VARIABLES & RESET ── */
:root {
  --purple:     #8b5cf6;
  --purple-dim: rgba(139,92,246,.08);
  --black:      #0a0a0a;
  --white:      #ffffff;
  --gray-dark:  #111111;
  --gray-mid:   #888888;
  --gray-light: #a0a0a0;
  --border:     #1f1f1f;
  --surface:    #111111;
  --surface-hi: #161616;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

a    { text-decoration: none; color: inherit; }
button { font-family: 'Inter', sans-serif; }
img  { max-width: 100%; display: block; }

/* ── 2. SCROLLBAR & SELECTION ── */
::-webkit-scrollbar              { width: 4px; }
::-webkit-scrollbar-track        { background: #0a0a0a; }
::-webkit-scrollbar-thumb        { background: #333333; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover  { background: #444444; }

::selection { background: #333333; color: var(--white); }

.cursor { display: none; }

/* ── 4. PAGE TRANSITION ── */
.page-overlay {
  display: none;
  pointer-events: none;
}
.page-overlay.out {
  display: none;
  pointer-events: none;
}

/* Particles bg canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Content wrapper sits above canvases */
.content-wrap {
  position: relative;
  z-index: 1;
}

/* ── 5. NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 56px;
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition:
    padding      .4s cubic-bezier(.4,0,.2,1),
    border-color .4s ease,
    background   .4s ease;
}
nav.scrolled {
  padding: 13px 56px;
  background: rgba(10,10,10,.95);
  border-bottom-color: #1f1f1f;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 501;
  flex-shrink: 0;
}
.nav-logo svg {
  flex-shrink: 0;
  transition: width .4s cubic-bezier(.4,0,.2,1),
              height .4s cubic-bezier(.4,0,.2,1);
}
nav.scrolled .nav-logo svg { width: 28px; height: 28px; }

.nav-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  display: inline-block;
  overflow: hidden;
  max-width: 140px;
  white-space: nowrap;
  transition:
    opacity     .35s ease,
    transform   .4s  cubic-bezier(.4,0,.2,1),
    max-width   .4s  cubic-bezier(.4,0,.2,1),
    margin-left .4s  cubic-bezier(.4,0,.2,1);
}
nav.scrolled .nav-logo-text {
  opacity: 1;
  transform: none;
  max-width: 140px;
  margin-left: 0;
}

/* Nav right group (lang + CTA) */
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Nav links pill */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 10px;
  padding: 5px;
  transition: background .4s ease, border-color .4s ease;
  justify-self: center;
}
nav.scrolled .nav-links {
  background: transparent;
  border-color: transparent;
}
/* Plain nav links */
.nav-links a, .nav-plain {
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  padding: 7px 16px;
  border-radius: 7px;
  transition: color .2s, background .2s, padding .4s;
  text-decoration: none;
  cursor: pointer;
}
.nav-links a:hover, .nav-plain:hover { color: var(--white); background: #1a1a1a; }
nav.scrolled .nav-links a, nav.scrolled .nav-plain { padding: 6px 12px; font-size: 12px; }

/* ── Dropdown nav items ── */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* invisible bridge stops gap from closing dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 20px;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #777777;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  letter-spacing: .04em;
  padding: 7px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-trigger:hover { color: var(--white); background: #1a1a1a; }
nav.scrolled .nav-trigger { padding: 6px 12px; font-size: 12px; }

.nav-chevron {
  opacity: .6;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .2s;
  flex-shrink: 0;
}
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 250px;
  background: #111111;
  border: 1px solid #222222;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 0 0 0.5px rgba(255,255,255,.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s cubic-bezier(.4,0,.2,1), transform .2s cubic-bezier(.4,0,.2,1);
  z-index: 600;
}
.nav-dropdown--wide {
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown items */
.nav-drop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  transition: background .15s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.nav-drop-item:hover { background: #1a1a1a; }
.nav-drop-item--muted { opacity: .45; cursor: default; pointer-events: none; }
.nav-drop-item--muted:hover { background: none; }

.ndi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  flex-shrink: 0;
  margin-top: 1px;
}
.ndi-icon--purple { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.2); color: var(--purple); }
.ndi-icon--red    { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.2); }
.nav-drop-item:hover .ndi-icon { border-color: #333333; color: #cccccc; }
.nav-drop-item:hover .ndi-icon--purple { border-color: rgba(139,92,246,.35); color: #c084fc; }

.ndi-body { min-width: 0; }
.ndi-title {
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ndi-sub {
  font-size: 12px;
  color: #555555;
  margin-top: 2px;
  line-height: 1.4;
}
.ndi-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: rgba(139,92,246,.15);
  color: #a78bfa;
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Nav CTA */
.nav-cta {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  transition:
    background   .2s ease,
    transform    .15s ease,
    padding      .4s cubic-bezier(.4,0,.2,1),
    font-size    .4s cubic-bezier(.4,0,.2,1);
}
.nav-cta:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}
nav.scrolled .nav-cta {
  padding: 7px 15px;
  font-size: 12px;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #111111;
  border: 1px solid #222222;
  border-radius: 8px;
  padding: 4px;
}
.lang-btn {
  background: none;
  border: none;
  color: #555555;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 5px 10px;
  border-radius: 5px;
  transition: color .2s, background .2s;
  cursor: pointer;
}
.lang-btn:hover  { color: #cccccc; }
.lang-btn.active { background: var(--purple); color: #ffffff; }
.lang-divider {
  color: #333333;
  font-size: 11px;
  user-select: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 501;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 499;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 36px;
  font-weight: 700;
  color: #444444;
  letter-spacing: -.02em;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu .mobile-cta {
  margin-top: 16px;
  background: var(--white);
  color: #000000;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* ── 6. HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  margin-top: -80px;
}

/* Centered max-width container — Resend two-column layout */
.hero-inner {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 70% 46%, rgba(139,92,246,.14) 0%, transparent 52%),
    radial-gradient(ellipse at 30% 80%, rgba(80,40,200,.05) 0%, transparent 48%);
  pointer-events: none;
}
/* Resend-style floor darkening */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42%;
  z-index: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  pointer-events: none;
}

.hero-text {
  max-width: 560px;
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #e2d9ff;
  letter-spacing: .02em;
  margin-bottom: 40px;
  cursor: default;
  position: relative;
  /* Gradient border via background-clip trick */
  background:
    linear-gradient(#0f0f14, #0f0f14) padding-box,
    linear-gradient(90deg, #7c3aed, #c084fc, #7c3aed) border-box;
  border: 1px solid transparent;
  background-size: 200% 100%;
  animation: badge-border-flow 3s linear infinite, badge-glow-pulse 2.5s ease-in-out infinite;
  box-shadow:
    0 0 18px rgba(139,92,246,.25),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
/* Sweep shimmer across the badge */
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, transparent 20%, rgba(192,132,252,.18) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: badge-sweep 2.8s ease-in-out infinite;
  pointer-events: none;
}
.hero-badge svg {
  color: #c084fc;
  flex-shrink: 0;
  animation: badge-arrow-pulse 2.5s ease-in-out infinite;
}
@keyframes badge-border-flow {
  0%   { background-position: 0% 0, 0% 0; }
  100% { background-position: 0% 0, 200% 0; }
}
@keyframes badge-glow-pulse {
  0%,100% { box-shadow: 0 0 14px rgba(139,92,246,.22), inset 0 1px 0 rgba(255,255,255,.06); }
  50%      { box-shadow: 0 0 32px rgba(139,92,246,.50), 0 0 60px rgba(139,92,246,.15), inset 0 1px 0 rgba(255,255,255,.08); }
}
@keyframes badge-sweep {
  0%   { background-position: -100% 0; }
  100% { background-position: 300% 0; }
}
@keyframes badge-arrow-pulse {
  0%,100% { transform: translateX(0); opacity: .7; }
  50%      { transform: translateX(3px); opacity: 1; }
}

.hero h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 80px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.04em;
  margin-bottom: 28px;
}
.hero p {
  font-size: 17px;
  color: #666666;
  line-height: 1.72;
  max-width: 440px;
  margin: 0 0 44px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: 0 0 24px rgba(139,92,246,.25);
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139,92,246,.45);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.12);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.05);
}

/* Hero Three.js canvas — right flex column, same row as text */
.hero-canvas-wrap {
  flex: 0 0 auto;
  width: 42%;
  height: 60vh;
  pointer-events: none;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  cursor: default;
}

/* ── 6b. FEATURES SECTION ── */
.features-section {
  display: block;
  padding: 140px 80px;
  box-sizing: border-box;
  width: 100%;
}
.features-header {
  margin-bottom: 80px;
  text-align: center;
}
.features-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.features-sub {
  font-size: 17px;
  color: #555;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}
.features-grid {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: stretch;
}
.features-grid .feat-card {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 50%;
}

/* ── Feature card ── */
.feat-card {
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .3s;
}
.feat-card:hover { border-color: #333; }

.feat-preview {
  flex: 0 0 auto;
  height: 500px;
  background: #060609;
  border-bottom: 1px solid #161616;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  padding: 36px 28px 0;
}
.feat-preview > * {
  width: 100%;
  flex: 1;
}
.feat-preview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, #060609, transparent);
  pointer-events: none;
  z-index: 10;
}

.feat-body {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feat-icon {
  width: 40px; height: 40px;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b5cf6;
  margin-bottom: 2px;
}
.feat-name {
  font-size: 20px;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: -.02em;
}
.feat-desc {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.75;
}
.feat-link {
  font-size: 14px;
  color: #555;
  transition: color .2s;
  margin-top: 2px;
}
.feat-link:hover { color: #c084fc; }

/* ── Chat demo ── */
.chat-demo {
  width: 100%;
  max-width: 100%;
  background: #0f0f14;
  border: 1px solid #1e1e2e;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(139,92,246,.06), 0 32px 80px rgba(0,0,0,.7);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #1a1a24;
  background: #0a0a10;
}
.chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #8b5cf6;
  display: flex; align-items: center; justify-content: center;
}
.chat-name { font-size: 13px; font-weight: 600; color: #e8e8e8; }
.chat-status {
  font-size: 11px; color: #444;
  display: flex; align-items: center; gap: 5px; margin-top: 2px;
}
.chat-online {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  display: inline-block;
  animation: online-pulse 2s ease infinite;
}
@keyframes online-pulse {
  0%,100% { box-shadow: 0 0 4px #22c55e; }
  50%      { box-shadow: 0 0 10px #22c55e; }
}
.chat-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.chat-msg.visible { opacity: 1; transform: translateY(0); }
.chat-in {
  background: #1c1c22;
  color: #c8c8c8;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-out {
  background: rgba(139,92,246,.2);
  border: 1px solid rgba(139,92,246,.25);
  color: #ddd0ff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-out-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.chat-ai-badge {
  font-size: 9px; font-weight: 700;
  letter-spacing: .07em;
  background: rgba(139,92,246,.35);
  color: #c084fc;
  border-radius: 4px;
  padding: 2px 6px;
}
/* Typing indicator */
.chat-typing {
  align-self: flex-start;
  background: #1c1c22;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: flex; gap: 5px; align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.chat-typing.visible { opacity: 1; transform: translateY(0); }
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #555;
  animation: typing-bounce .9s ease infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes typing-bounce {
  0%,60%,100% { transform: translateY(0); background: #444; }
  30%          { transform: translateY(-5px); background: #8b5cf6; }
}

/* ── CRM demo ── */
.crm-demo {
  width: 100%;
  max-width: 100%;
  background: #0a0a10;
  border: 1px solid #1e1e2e;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(139,92,246,.06), 0 32px 80px rgba(0,0,0,.7);
}
.crm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #181822;
  background: #080810;
}
.crm-topbar-title {
  font-size: 13px; font-weight: 600; color: #888;
  display: flex; align-items: center; gap: 8px;
}
.crm-live-badge {
  font-size: 10px; font-weight: 700;
  background: rgba(34,197,94,.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 20px;
  padding: 2px 8px;
  display: flex; align-items: center; gap: 4px;
}
.crm-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #22c55e;
  animation: online-pulse 1.5s ease infinite;
}
.crm-counter {
  font-size: 12px; color: #333;
}
.crm-counter span {
  color: #8b5cf6;
  font-weight: 600;
}
.crm-thead {
  display: flex;
  padding: 10px 18px;
  border-bottom: 1px solid #141420;
  color: #333;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.crm-tbody { position: relative; }
.crm-row {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid #0f0f18;
  color: #aaa;
  font-size: 12.5px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s ease, transform .4s ease, background .2s;
}
.crm-row.visible { opacity: 1; transform: translateY(0); }
.crm-row.crm-new {
  background: rgba(139,92,246,.07);
  animation: crm-flash .6s ease;
}
@keyframes crm-flash {
  0%   { background: rgba(139,92,246,.22); }
  100% { background: rgba(139,92,246,.07); }
}
.crm-col       { flex: 1; }
.crm-col-name  { flex: 1.6; display: flex; align-items: center; gap: 8px; color: #ddd; font-weight: 500; }
.crm-col-date  { flex: 1.4; color: #555; font-size: 12px; }
.crm-col-pax   { flex: .5; color: #666; text-align: center; }
.crm-col-stato { flex: 1.2; }
.crm-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.crm-dot-green  { background: #22c55e; box-shadow: 0 0 5px rgba(34,197,94,.4); }
.crm-dot-yellow { background: #eab308; }
.crm-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px; display: inline-block;
}
.crm-badge-ok   { background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.18); }
.crm-badge-wait { background: rgba(234,179,8,.1);  color: #facc15; border: 1px solid rgba(234,179,8,.18); }

@media (max-width: 960px) {
  .features-section { padding: 80px 20px; }
  .features-title { font-size: 40px; }
  .features-grid { flex-direction: column; gap: 24px; }
  .features-grid .feat-card { width: 100%; flex: none; }
  .feat-preview { height: 380px; }
}
@media (max-width: 600px) {
  .features-section { padding: 60px 16px; }
  .features-title { font-size: 32px; }
}

/* ── 7. SHIMMER / GLITCH ── */
.shimmer {
  display: inline-block;
  background: linear-gradient(
    100deg,
    #888888 0%,
    #cccccc 30%,
    #ffffff 50%,
    #cccccc 70%,
    #888888 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-move 3.5s linear infinite;
}
@keyframes shimmer-move {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    100deg,
    #888888 0%, #cccccc 30%, #ffffff 50%, #cccccc 70%, #888888 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-move 3.5s linear infinite;
}
.glitch::before {
  animation: shimmer-move 3.5s linear infinite, glitch-top 5s ease-in-out infinite;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
}
.glitch::after {
  animation: shimmer-move 3.5s linear infinite, glitch-bot 5s ease-in-out infinite;
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
}
@keyframes glitch-top {
  0%,86%,100% { transform: translate(0); opacity: 0; }
  88% { transform: translate(-4px, 1px); opacity: .8; }
  90% { transform: translate(3px, -1px); opacity: .8; }
  92% { transform: translate(-2px, 0);  opacity: .8; }
  94% { transform: translate(0);        opacity: 0; }
}
@keyframes glitch-bot {
  0%,86%,100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(4px, 1px); opacity: .8; }
  91% { transform: translate(-3px, -1px); opacity: .8; }
  93% { transform: translate(0);          opacity: 0; }
}

/* ── 8. TICKER ── */
.ticker {
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
  padding: 14px 0;
  position: relative;
  z-index: 1;
}
.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ticker-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #555555;
  padding: 0 22px;
}
.ticker-sep {
  color: #444444;
  opacity: .5;
  font-size: 8px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── 9. SERVICES ── */
.services {
  padding: 110px 56px;
  position: relative;
  z-index: 1;
}
.section-label {
  font-size: 11px;
  color: #a78bfa;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 16px;
  color: #666666;
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 64px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: #0f0f0f;
  padding: 42px 34px;
  position: relative;
  transition: background .3s ease, transform .35s ease;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color .3s ease;
  pointer-events: none;
}
.service-card:hover {
  background: #141414;
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0,0,0,.4);
  z-index: 1;
}
.service-card:hover::after {
  border-color: rgba(255,255,255,.1);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: #161616;
  border: 1px solid #222222;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: border-color .3s, background .3s;
}
.service-card:hover .service-icon {
  border-color: rgba(255,255,255,.2);
  background: #1e1e1e;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.65;
}

/* ════════════════════════════════════════════
   SERVICE PAGES
════════════════════════════════════════════ */
.srv-hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px 56px 72px;
  position: relative;
  overflow: hidden;
}
.srv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(109,40,217,.07) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(168,85,247,.04) 0%, transparent 50%);
  pointer-events: none;
}
.srv-breadcrumb { font-size: 12px; color: #555555; letter-spacing: .06em; margin-bottom: 28px; }
.srv-breadcrumb a { color: #555555; transition: color .2s; }
.srv-breadcrumb a:hover { color: var(--white); }
.srv-breadcrumb span { margin: 0 8px; }
.srv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  color: #a78bfa;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
  background: rgba(139,92,246,.08);
}
.srv-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: #8b5cf6;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(139,92,246,.9);
  flex-shrink: 0;
}
.srv-hero h1 {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .97;
  margin-bottom: 24px;
  max-width: 780px;
  font-family: 'Space Grotesk', sans-serif;
}
.srv-hero h1 .tg {
  background: linear-gradient(90deg, #a78bfa 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.srv-hero-sub { font-size: 18px; color: #888888; max-width: 520px; line-height: 1.65; margin-bottom: 40px; }

.srv-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 56px;
  border-top: 1px solid rgba(255,255,255,.04);
  position: relative;
  z-index: 1;
}
.srv-overview-text h2 {
  font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}
.srv-overview-text p  { font-size: 16px; color: #888888; line-height: 1.75; margin-bottom: 28px; }
.srv-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.srv-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: #888888; line-height: 1.5; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.srv-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 6px rgba(139,92,246,.6); flex-shrink: 0; margin-top: 6px; }
.srv-visual {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  border: 1px solid rgba(139,92,246,.15);
  box-shadow: 0 0 60px rgba(109,40,217,.08), inset 0 0 40px rgba(0,0,0,.3);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.srv-features { padding: 80px 56px; border-top: 1px solid rgba(255,255,255,.04); position: relative; z-index: 1; }
.srv-features > h2 {
  font-size: 36px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 48px;
  font-family: 'Space Grotesk', sans-serif;
}
.srv-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.srv-feature-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.srv-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.3), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.srv-feature-card:hover { border-color: rgba(139,92,246,.3); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(109,40,217,.12); }
.srv-feature-card:hover::before { opacity: 1; }
.srv-feature-icon {
  width: 44px; height: 44px;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.srv-feature-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.01em; }
.srv-feature-card p  { font-size: 14px; color: #888888; line-height: 1.65; }

.srv-example { padding: 80px 56px; border-top: 1px solid rgba(255,255,255,.04); position: relative; z-index: 1; }
.srv-example > h2 { font-size: 36px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; }
.srv-example > p  { font-size: 15px; color: #888888; margin-bottom: 48px; }
.srv-demo-frame { background: rgba(255,255,255,.015); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; overflow: hidden; }
.srv-demo-topbar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.04); background: rgba(0,0,0,.3); }
.srv-demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.srv-demo-title { font-size: 11px; color: #444444; margin-left: 8px; letter-spacing: .05em; }
.srv-demo-body { padding: 32px; }

.srv-related { padding: 80px 56px; border-top: 1px solid rgba(255,255,255,.04); position: relative; z-index: 1; }
.srv-related > h3 { font-size: 13px; color: #555555; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: 28px; }
.srv-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.srv-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.srv-related-card:hover { border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.05); box-shadow: 0 8px 24px rgba(109,40,217,.1); }
.srv-related-card span { font-size: 14px; font-weight: 500; }
.srv-related-card svg { color: #444444; transition: color .25s; }
.srv-related-card:hover svg { color: #a78bfa; }

@media (max-width: 1024px) {
  .srv-hero h1 { font-size: 60px; }
  .srv-overview { grid-template-columns: 1fr; gap: 48px; }
  .srv-features-grid { grid-template-columns: 1fr 1fr; }
  .srv-related-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .srv-hero { padding: 120px 20px 56px; }
  .srv-hero h1 { font-size: 40px; }
  .srv-hero-sub { font-size: 16px; }
  .srv-overview { padding: 64px 20px; gap: 40px; }
  .srv-overview-text h2 { font-size: 30px; }
  .srv-features { padding: 56px 20px; }
  .srv-features-grid { grid-template-columns: 1fr; }
  .srv-example { padding: 56px 20px; }
  .srv-related { padding: 56px 20px; }
  .srv-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .srv-hero h1 { font-size: 32px; }
  .srv-features > h2, .srv-example > h2 { font-size: 28px; }
}

/* ── 10. REVIEWS ── */
.reviews {
  padding: 110px 56px;
  position: relative;
  z-index: 1;
}
.reviews-outer {
  margin-top: 56px;
  overflow: hidden;
  position: relative;
}
/* Fade edges */
.reviews-outer::before,
.reviews-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.reviews-outer::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0a 0%, transparent 100%);
}
.reviews-outer::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0a 0%, transparent 100%);
}
.reviews-track {
  display: flex;
  gap: 24px;
  padding: 12px 4px;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  cursor: grab;
}
.reviews-track.dragging { cursor: grabbing; transition: none; }

.review-card {
  flex: 0 0 clamp(280px, 32vw, 400px);
  background: #111111;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  padding: 36px 30px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  user-select: none;
}
.review-card:hover {
  border-color: rgba(255,255,255,.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.review-stars svg { width: 15px; height: 15px; }
.review-text {
  font-size: 14px;
  color: #666666;
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #161616;
  border: 1px solid #282828;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #888888;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.review-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.review-role { font-size: 12px; color: #555555; }

/* Controls */
.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 44px;
}
.reviews-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #222222;
  border-radius: 50%;
  background: transparent;
  color: #555555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}
.reviews-btn:hover {
  border-color: #555555;
  color: var(--white);
  background: rgba(255,255,255,.05);
}
.reviews-dots { display: flex; gap: 8px; align-items: center; }
.reviews-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #222222;
  cursor: pointer;
  transition: background .25s, transform .25s, width .25s;
}
.reviews-dot.active {
  background: var(--purple);
  width: 22px;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews { padding: 60px 20px; }
  .reviews-outer::before,
  .reviews-outer::after { width: 32px; }
  .review-card { flex: 0 0 85vw; padding: 28px 22px; }
}
@media (max-width: 480px) {
  .reviews { padding: 48px 16px; }
  .review-card { flex: 0 0 90vw; }
}

/* ── STATS ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: #1a1a1a;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  z-index: 1;
}
.stat {
  background: #0f0f0f;
  padding: 52px 48px;
  position: relative;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.02) 0%, transparent 65%);
  pointer-events: none;
}
.stat-num {
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-num .accent {
  background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: #666666;
  letter-spacing: .02em;
}

/* ── 11. PROCESS ── */
.process {
  padding: 110px 56px;
  position: relative;
  z-index: 1;
}
.process-connector {
  margin: 48px 0 44px;
  height: 1px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.process-line-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8b5cf6 0%, rgba(139,92,246,.1) 100%);
  transition: width 1.6s cubic-bezier(.4,0,.2,1);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
}
.step-num {
  font-size: 10px;
  color: #a78bfa;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.step h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: #666666;
  line-height: 1.65;
}

/* ── 12. TECH BAR ── */
.tech-bar {
  padding: 36px 0;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #0d0d0d;
}
.tech-bar-label {
  font-size: 10px;
  color: #444444;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
  font-weight: 500;
}
.tech-inner {
  display: flex;
  width: max-content;
  animation: ticker-scroll 50s linear infinite;
}
.tech-track {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 28px;
  white-space: nowrap;
}
.tech-item {
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: color .3s;
}
.tech-item:hover { color: #777777; }

/* ── 13. CTA SECTION ── */
.cta-section {
  padding: 110px 56px;
  position: relative;
  z-index: 1;
}
.cta-card {
  background: rgba(255,255,255,.018);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 20px;
  padding: 80px 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(109,40,217,.08);
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(109,40,217,.06) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 20%, rgba(168,85,247,.04) 0%, transparent 52%);
  pointer-events: none;
}
/* CTA floating particles injected by JS */
.cta-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: float-up var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes float-up {
  0%   { transform: translate(0,0)    scale(1);   opacity: 0; }
  15%  { opacity: .6; }
  80%  { opacity: .2; }
  100% { transform: translate(var(--tx), var(--ty)) scale(.3); opacity: 0; }
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.cta-text p { font-size: 15px; color: #888888; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.cta-input-row { display: flex; gap: 10px; }
.cta-input {
  background: rgba(255,255,255,.04);
  border: 1px solid #222222;
  color: var(--white);
  padding: 13px 18px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  width: 240px;
  outline: none;
  transition: border-color .25s;
}
.cta-input::placeholder { color: #444444; }
.cta-input:focus        { border-color: #555555; }
.cta-note { font-size: 12px; color: #444444; }

/* ── 14. FOOTER ── */
footer {
  padding: 48px 56px;
  border-top: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.footer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-copy { font-size: 13px; color: #555555; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: #555555; transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ── 15. REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 16. CONTACT PAGE ── */
.contact-page {
  display: flex;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Contact nav */
.contact-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #1a1a1a;
}
.contact-nav-back {
  font-size: 13px;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.contact-nav-back:hover { color: var(--white); }

/* Contact left */
.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 80px 80px;
  position: relative;
  z-index: 1;
}
.contact-label {
  font-size: 11px;
  color: #888888;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.contact-title {
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .95;
  margin-bottom: 60px;
}

/* Form fields */
.contact-form { display: flex; flex-direction: column; gap: 44px; max-width: 460px; }
.form-field   { position: relative; }
.form-field label {
  display: block;
  font-size: 10px;
  color: #555555;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1e1e1e;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  padding: 8px 0 14px;
  outline: none;
  resize: none;
  transition: border-color .3s;
}
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: #555555; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #333333; }
.form-field textarea { height: 72px; line-height: 1.6; }

.form-line {
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: #ffffff;
  transition: width .4s ease;
  pointer-events: none;
}
.form-field input:focus ~ .form-line,
.form-field textarea:focus ~ .form-line { width: 100%; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: #000;
  border: none;
  padding: 16px 36px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  align-self: flex-start;
  transition: background .25s, color .25s, transform .15s, box-shadow .25s;
}
.btn-submit:hover {
  background: #e5e5e5;
  color: #000000;
  transform: translateY(-2px);
}

/* Contact right (3D canvas) */
.contact-right {
  flex: 0 0 50%;
  position: relative;
  z-index: 1;
}
#contact-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── 17. RESPONSIVE ── */

/* ── Tablet landscape (max 1100px) ── */
@media (max-width: 1100px) {
  nav { padding: 20px 36px; }
  nav.scrolled { padding: 12px 36px; }

  .hero-inner { padding: 0 48px; gap: 32px; }
  .hero h1 { font-size: 62px; }
  .hero-canvas-wrap { width: 44%; height: 52vh; }

  .services  { padding: 80px 36px; }
  .section-title { font-size: 44px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }

  .stats { grid-template-columns: repeat(2,1fr); }
  .stat  { padding: 40px 36px; }

  .process { padding: 80px 36px; }
  .process-steps { grid-template-columns: repeat(2,1fr); gap: 40px; }

  .cta-section { padding: 80px 36px; }
  .cta-card    { padding: 56px 48px; flex-direction: column; align-items: flex-start; }
  .cta-actions { align-items: flex-start; width: 100%; }

  footer { padding: 40px 36px; }

  .contact-left { padding: 120px 48px 60px; }
  .contact-title { font-size: 72px; }
}

/* ── Tablet portrait / large phone (max 768px) ── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }

  /* Nav */
  nav { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
  nav.scrolled { padding: 12px 20px; }
  .nav-links     { display: none; }
  .nav-right     { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    padding: 120px 24px 60px;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .hero h1 { font-size: 44px; letter-spacing: -.03em; text-align: center; }
  .hero p  { font-size: 16px; max-width: 100%; text-align: center; }
  .hero-btns { flex-direction: column; align-items: center; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; }
  .hero-canvas-wrap { width: 100%; height: 42vh; opacity: 1; }

  /* Sections */
  .services  { padding: 60px 20px; }
  .section-title { font-size: 34px; }
  .section-sub   { font-size: 15px; margin-bottom: 40px; }
  .services-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .service-card  { padding: 32px 24px; }

  /* Stats */
  .stats { grid-template-columns: repeat(2,1fr); }
  .stat  { padding: 28px 20px; }
  .stat-num { font-size: 40px; }
  .stat-label { font-size: 12px; }

  /* Process */
  .process { padding: 60px 20px; }
  .process-connector { display: none; }
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .step { border-left: 2px solid #1a1a1a; padding-left: 16px; }

  /* Tech bar */
  .tech-bar { padding: 28px 0; }

  /* CTA */
  .cta-section { padding: 60px 20px; }
  .cta-card    { padding: 36px 24px; border-radius: 14px; }
  .cta-text h2 { font-size: 30px; }
  .cta-input-row { flex-direction: column; width: 100%; }
  .cta-input  { width: 100%; }
  .cta-actions { align-items: flex-start; width: 100%; }

  /* Footer */
  footer {
    padding: 32px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-left { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-copy { margin-left: 0; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  /* Contact */
  .contact-page  { display: flex; flex-direction: column; height: auto; min-height: 100vh; }
  .contact-nav   { padding: 14px 20px; }
  .contact-left  { padding: 90px 20px 40px; overflow-y: visible; }
  .contact-title { font-size: 52px; }
  .contact-subtitle { font-size: 14px; margin-bottom: 28px; }
  .contact-form  { gap: 28px; max-width: 100%; }
  .contact-right { flex: none; width: 100%; height: 50vw; min-height: 260px; max-height: 380px; }

  /* Service page nav */
  .contact-nav { padding: 14px 20px; }
  .contact-nav-back span { display: none; }

  /* Service page sections */
  .srv-hero { padding: 100px 20px 48px; }
  .srv-overview { padding: 56px 20px; gap: 40px; }
  .srv-features { padding: 56px 20px; }
  .srv-example  { padding: 56px 20px; }
  .srv-related  { padding: 56px 20px; }
  .srv-demo-body { padding: 16px; }

  /* Soluzioni page */
  .product-feature { padding: 32px 20px; }
  .product-feature-body { grid-template-columns: 1fr; gap: 32px; }
  .pf-left h3 { font-size: 26px; }
  .pf-btns { flex-direction: column; }
  .pf-btns a, .pf-btns button { width: 100%; text-align: center; justify-content: center; }
  .phones-showcase { gap: 10px; }
  .phones-showcase .phone-outer.side { display: none; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }

  /* Mobile menu enhancements */
  .mobile-menu { padding: 80px 24px 40px; justify-content: center; gap: 20px; overflow-y: auto; }
  .mobile-menu a { font-size: 28px; }
  .mobile-menu-services { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  .mobile-menu-services a { font-size: 15px !important; color: #555 !important; font-weight: 500 !important; }
  .mobile-menu-services a:hover { color: #fff !important; }
  .mobile-menu-divider { width: 100%; height: 1px; background: #1a1a1a; }
  .mobile-cta { width: 100%; display: flex; align-items: center; justify-content: center; }
}

/* ── Small phones (max 480px) ── */
@media (max-width: 480px) {
  nav { padding: 14px 16px; }

  .hero-inner { padding: 100px 16px 48px; }
  .hero h1 { font-size: 34px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }
  .hero-canvas-wrap { opacity: 1; }

  .services  { padding: 48px 16px; }
  .section-title { font-size: 28px; }
  .service-card  { padding: 28px 20px; }
  .service-card h3 { font-size: 15px; }

  .stats { grid-template-columns: repeat(2,1fr); }
  .stat  { padding: 24px 16px; }
  .stat-num { font-size: 36px; }

  .process { padding: 48px 16px; }

  .cta-section { padding: 48px 16px; }
  .cta-card    { padding: 28px 16px; }
  .cta-text h2 { font-size: 26px; }

  footer { padding: 28px 16px; }

  /* Contact */
  .contact-left  { padding: 80px 16px 36px; }
  .contact-title { font-size: 38px; letter-spacing: -.04em; }
  .contact-right { height: 44vw; min-height: 220px; }
  .btn-submit    { padding: 14px 28px; font-size: 14px; }
  .form-progress { gap: 0; margin-bottom: 24px; }
  .progress-dot  { width: 26px; height: 26px; font-size: 11px; }

  /* Service pages */
  .srv-hero { padding: 90px 16px 40px; }
  .srv-hero h1 { font-size: 32px; letter-spacing: -.03em; }
  .srv-hero-sub { font-size: 15px; }
  .srv-overview { padding: 48px 16px; }
  .srv-features { padding: 48px 16px; }
  .srv-features > h2 { font-size: 26px; }
  .srv-example  { padding: 48px 16px; }
  .srv-example > h2 { font-size: 26px; }
  .srv-related  { padding: 48px 16px; }
  .srv-related-grid { grid-template-columns: 1fr; }
  .srv-demo-body { padding: 14px; }
  .code-block { font-size: 12px; padding: 16px; }

  /* Soluzioni */
  .product-feature { padding: 24px 16px; margin-top: 32px; }
  .pf-left h3 { font-size: 22px; }
  .pf-left > p { font-size: 14px; }

  /* CTA card */
  .cta-card { padding: 28px 16px; }
  .cta-text h2 { font-size: 24px; }
}

/* ── Very small phones (max 375px) ── */
@media (max-width: 375px) {
  .hero h1 { font-size: 30px; }
  .hero-canvas-wrap { height: 190px; }
  .section-title { font-size: 26px; }
  .stat-num { font-size: 32px; }
  .cta-text h2 { font-size: 24px; }
  .contact-title { font-size: 36px; }
}

/* ── Touch devices: increase tap targets ── */
@media (hover: none) and (pointer: coarse) {
  .cursor { display: none; }
  body { cursor: auto; }

  .btn-primary,
  .btn-secondary,
  .btn-submit,
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  .service-card:hover { transform: none; box-shadow: none; }
  .btn-primary:hover  { transform: none; }
  .btn-submit:hover   { transform: none; }
}

/* ── 18. PRODUCTS / PORTFOLIO ── */
.products {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.product-feature::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.02) 0%, transparent 70%);
  pointer-events: none;
}

.product-feature-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pf-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(139,92,246,.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pf-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pf-logo span {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--white);
}

.pf-left h3 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.05em;
  margin-bottom: 16px;
  color: var(--white);
}

.pf-left > p {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.75;
  margin-bottom: 28px;
}

.pf-list {
  list-style: none;
  margin-bottom: 36px;
}

.pf-list li {
  font-size: 13px;
  color: var(--gray-light);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #555555;
  flex-shrink: 0;
}

.pf-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* WhatsApp chat mockup */
.wa-mockup {
  background: #0a0918;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-hi);
  border-bottom: 1px solid var(--border);
}

.wa-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-bot-name { font-weight: 600; font-size: 13px; color: var(--white); }
.wa-online   { font-size: 11px; color: #25D366; margin-top: 1px; }

.wa-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.wa-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 13px;
}

.wa-msg.recv {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.wa-msg.sent {
  background: #333333;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.wa-confirm {
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.2);
  border-radius: 12px;
  padding: 12px 14px;
  align-self: flex-end;
  max-width: 82%;
  font-size: 12px;
  color: #25D366;
  line-height: 1.6;
}

/* ── 19. SERVICE PAGE — AGENDA ── */
.srv-hero { padding: 120px 24px 80px; max-width: 960px; margin: 0 auto; }
.srv-breadcrumb {
  font-size: 12px;
  color: var(--gray-mid);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 24px;
}
.srv-breadcrumb a:hover { color: var(--white); }
.srv-breadcrumb span:last-child { color: var(--gray-light); }

.srv-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.25);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  width: fit-content;
}
.srv-badge::before {
  content: '';
  width: 5px; height: 5px;
  background: #8b5cf6;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(139,92,246,.9);
  flex-shrink: 0;
}

.srv-hero h1 {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1.0;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}
.srv-hero h1 .tg {
  background: linear-gradient(90deg, #a78bfa 0%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.srv-hero-sub {
  font-size: 18px;
  color: #888888;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 36px;
}

.srv-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.srv-overview-text h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}

.srv-overview-text p {
  font-size: 15px;
  color: #888888;
  line-height: 1.75;
  margin-bottom: 28px;
}

.srv-list {
  list-style: none;
}

.srv-list li {
  font-size: 14px;
  color: #888888;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex;
  gap: 10px;
  align-items: center;
}

.srv-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 6px rgba(139,92,246,.6);
  flex-shrink: 0;
}

.srv-visual {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  border: 1px solid rgba(139,92,246,.15);
  box-shadow: 0 0 60px rgba(109,40,217,.08);
  position: relative;
}

/* Features grid on service page */
.srv-features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.srv-features-title {
  text-align: center;
  margin-bottom: 48px;
}

.srv-features-title h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: 12px;
}

.srv-features-title p {
  font-size: 15px;
  color: var(--gray-light);
}

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

.feature-card {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature-card:hover {
  border-color: rgba(139,92,246,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(109,40,217,.12);
}

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.7;
}

/* How it works */
.srv-how {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.srv-how h2 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: 48px;
  text-align: center;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-step {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.how-step-num {
  font-size: 48px;
  font-weight: 900;
  color: var(--purple);
  opacity: .25;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 16px;
}

.how-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.7;
}

/* Responsive products */
@media (max-width: 860px) {
  .product-feature { padding: 32px 24px; }
  .product-feature-body { grid-template-columns: 1fr; gap: 40px; }
  .pf-left h3 { font-size: 28px; }
  .srv-overview { grid-template-columns: 1fr; gap: 40px; padding: 60px 16px; }
  .srv-hero h1 { font-size: 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
}
