/* ============================================================
   SPLIXCUBE — Design System
   Bespoke, zero-build CSS. Dark-luxury / enterprise / AI-first.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Core palette */
  --bg: #070707;
  --bg-2: #0a0a0b;
  --surface: #0e0e10;
  --surface-2: #141417;
  --surface-3: #1a1a1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f4f4f5;
  --text-dim: #b4b4bd;
  --muted: #82828c;

  /* Brand */
  --brand: #ccff03;          /* neon lime — logo */
  --brand-dark: #a8cc00;
  --brand-soft: rgba(204, 255, 3, 0.12);
  --blue: #4d8dff;           /* electric blue */
  --purple: #8b5cf6;         /* violet */

  /* Gradients */
  --grad-brand: linear-gradient(120deg, #ccff03 0%, #7fe0b0 100%);
  --grad-cool: linear-gradient(120deg, #4d8dff 0%, #8b5cf6 100%);
  --grad-hero: radial-gradient(1200px 600px at 50% -10%, rgba(204, 255, 3, 0.10), transparent 60%),
               radial-gradient(900px 500px at 85% 10%, rgba(139, 92, 246, 0.10), transparent 55%),
               radial-gradient(900px 500px at 12% 20%, rgba(77, 141, 255, 0.10), transparent 55%);

  /* Type */
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--brand); color: #000; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--brand-soft);
}
.eyebrow--muted { color: var(--text-dim); background: rgba(255,255,255,0.03); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.25rem); margin: 20px 0 16px; }
.section-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-dim); max-width: 60ch; }
.section-head--center .section-sub { margin-inline: auto; }

.gradient-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.gradient-text--cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: 0.98rem;
  padding: 14px 26px; border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn i, .btn svg { transition: transform 0.25s var(--ease); }
.btn:hover i.arrow { transform: translateX(4px); }
.btn--primary { background: var(--brand); color: #050505; box-shadow: 0 8px 30px rgba(204,255,3,0.22); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(204,255,3,0.35); }
.btn--ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Form fields ---------- */
.field { display: block; }
.field > span { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--text); background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: rgba(204,255,3,0.04); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(204,255,3,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand); font-size: 1.35rem; margin-bottom: 20px;
  border: 1px solid rgba(204,255,3,0.2);
}
.card__title { font-size: 1.3rem; margin-bottom: 10px; }
.card__text { color: var(--text-dim); font-size: 0.97rem; }
.card__list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.8rem; color: var(--text-dim); padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: rgba(255,255,255,0.02); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7,7,7,0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled { background: rgba(7,7,7,0.85); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: rgba(7,7,7,0.98);
  backdrop-filter: blur(20px); padding: 32px 24px; transform: translateX(100%);
  transition: transform 0.4s var(--ease); display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 16px 8px; font-family: var(--font-head); font-size: 1.25rem; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.mobile-menu a:hover { color: var(--brand); }
.mobile-menu a.btn { margin-top: 20px; border-bottom: none; }
.mobile-menu a.btn--primary { color: #050505; }
.mobile-menu a.btn--primary:hover { color: #050505; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: var(--grad-hero); z-index: 0; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.55; }
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
}
.hero__inner { position: relative; z-index: 2; max-width: 900px; margin-inline: auto; text-align: center; }
.hero__title { font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -0.03em; margin: 26px 0; }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--text-dim); max-width: 62ch; margin: 0 auto 38px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__stats { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: clamp(48px, 7vw, 80px); }
.hero__stat { text-align: center; }
.hero__stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; color: var(--text); }
.hero__stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Logo / tech marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; white-space: nowrap; }
.marquee__item i { color: var(--brand); font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split__panel { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface-2), var(--surface)); padding: 28px; overflow: hidden; }
.feature-list { display: grid; gap: 18px; margin-top: 8px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list .fi { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 0.8rem; margin-top: 3px; }
.feature-list b { font-family: var(--font-head); font-weight: 500; display: block; }
.feature-list p { color: var(--muted); font-size: 0.93rem; }

/* Mock dashboard */
.mock { display: grid; gap: 12px; }
.mock__row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.mock__bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), transparent); flex: 1; }
.mock__pill { margin-left: auto; font-size: 0.72rem; color: var(--brand); padding: 3px 10px; border: 1px solid rgba(204,255,3,0.25); border-radius: var(--radius-pill); }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.timeline__step { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.3s, background 0.3s; }
.timeline__step:hover { border-color: rgba(204,255,3,0.3); background: var(--surface-2); }
.timeline__step .num { font-family: var(--font-head); font-size: 0.85rem; color: var(--brand); letter-spacing: 0.1em; }
.timeline__step h4 { font-size: 1.15rem; margin: 10px 0 8px; }
.timeline__step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Industries ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-dim); font-weight: 500; transition: all 0.3s var(--ease); }
.chip i { color: var(--brand); }
.chip:hover { border-color: rgba(204,255,3,0.35); color: var(--text); transform: translateY(-3px); }

/* ---------- Case studies (placeholder) ---------- */
.case { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s; }
.case:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.case__media { aspect-ratio: 16/10; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(204,255,3,0.14), transparent 60%), linear-gradient(160deg, var(--surface-3), var(--surface)); color: var(--muted); position: relative; }
.case__media .ph { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.case__body { padding: 26px; }
.case__body h4 { font-size: 1.25rem; margin-bottom: 8px; }
.case__body p { color: var(--muted); font-size: 0.93rem; }
.case__metrics { display: flex; gap: 24px; margin-top: 20px; }
.case__metrics b { font-family: var(--font-head); font-size: 1.5rem; color: var(--brand); display: block; }
.case__metrics span { font-size: 0.78rem; color: var(--muted); }
.case__tag { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); background: rgba(7,7,7,0.6); border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--radius-pill); backdrop-filter: blur(6px); }

/* ---------- Mock product screenshots ---------- */
.shot { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; gap: 9px; }
.shot__top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.shot__top i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.shot__top i:first-child { background: var(--brand); }
.shot__ttl { margin-left: 8px; font-family: var(--font-head); font-size: 0.72rem; color: var(--text-dim); }
.shot__win { flex: 1; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.02); padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.shot__line { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.09); }
.shot__line.brand { background: linear-gradient(90deg, var(--brand), rgba(204,255,3,0.15)); }
.shot__line.blue { background: linear-gradient(90deg, var(--blue), transparent); }
.shot__bubble { max-width: 78%; padding: 8px 11px; border-radius: 12px; font-size: 0.66rem; color: var(--text-dim); background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.shot__bubble.me { align-self: flex-end; background: var(--brand-soft); border-color: rgba(204,255,3,0.25); color: var(--brand); }
.shot__bars { display: flex; align-items: flex-end; gap: 8px; height: 62px; margin-top: auto; }
.shot__bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brand), rgba(204,255,3,0.1)); }
.shot__row { display: flex; align-items: center; gap: 8px; }
.shot__chip { font-size: 0.6rem; color: var(--brand); border: 1px solid rgba(204,255,3,0.25); border-radius: var(--radius-pill); padding: 2px 8px; }
.shot__node { flex: 1; text-align: center; font-size: 0.62rem; color: var(--text-dim); padding: 8px 4px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.shot__arrow { color: var(--brand); font-size: 0.7rem; }
.shot__kpi { font-family: var(--font-head); font-size: 1.1rem; color: var(--text); }
.shot__kpi small { display: block; font-size: 0.6rem; color: var(--muted); font-family: var(--font-body); }

.placeholder-note { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); padding: 6px 14px; }

/* ---------- Testimonials ---------- */
.quote { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 30px; }
.quote p { font-size: 1.05rem; color: var(--text-dim); }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-cool); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: #fff; }
.quote__by b { display: block; font-family: var(--font-head); font-weight: 500; }
.quote__by span { font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 72px); text-align: center; border: 1px solid var(--border); background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 0%, rgba(204,255,3,0.14), transparent 65%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 32px; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 72px 40px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 30px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer__col h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer__col a { display: block; color: var(--text-dim); font-size: 0.93rem; padding: 6px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--brand); }
.footer__socials { display: flex; gap: 12px; margin-top: 22px; }
.footer__socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-dim); transition: all 0.25s; }
.footer__socials a:hover { color: var(--brand); border-color: rgba(204,255,3,0.35); transform: translateY(-2px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.87rem; }

/* ---------- Sticky mobile CTA + WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 30px rgba(37,211,102,0.4); transition: transform 0.25s; }
.wa-float:hover { transform: scale(1.08); }
.mobile-cta { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .split { grid-template-columns: 1fr; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; position: fixed; left: 16px; right: 84px; bottom: 20px; z-index: 90; }
  .wa-float { bottom: 20px; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .container { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
