/* ═══════════════════════════════════════════════════════════
   Sparkle AIOX — Landing Page
   sparkleai.tech
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #0a0b0f;
  --bg-2:         #0f1117;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 106, 0, 0.35);

  --orange:       #ff6a00;
  --orange-dark:  #e05d00;
  --orange-glow:  0 0 40px rgba(255, 106, 0, 0.35);
  --orange-subtle: rgba(255, 106, 0, 0.12);

  --blue:         #3b82f6;
  --purple:       #8b5cf6;

  --white:        #f0f4ff;
  --muted:        rgba(240, 244, 255, 0.55);
  --subtle:       rgba(240, 244, 255, 0.30);

  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --container:    1200px;
  --container-sm: 800px;

  --s1: 8px;  --s2: 16px;  --s3: 24px;
  --s4: 32px; --s5: 48px;  --s6: 64px;
  --s7: 96px; --s8: 128px;

  --r-sm:   8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-pill: 999px;

  --t-fast: all 0.15s ease;
  --t-base: all 0.25s ease;
  --t-slow: all 0.45s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

/* ─── Utilities ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.gradient-text {
  background: linear-gradient(135deg, #ff6a00 0%, #ff9a3c 50%, #ffb870 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: var(--r-pill);
  cursor: pointer;
  border: none;
  transition: var(--t-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--orange);
  color: white;
  box-shadow: var(--orange-glow);
}
.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(255, 106, 0, 0.55);
}
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hover);
  color: var(--white);
  background: var(--bg-card-hover);
}

.btn--sm  { padding: 10px 20px; font-size: 14px; }
.btn--md  { padding: 13px 28px; font-size: 15px; }
.btn--lg  { padding: 15px 32px; font-size: 16px; }
.btn--xl  { padding: 18px 42px; font-size: 18px; }

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--t-base);
}

.nav--scrolled {
  background: rgba(10, 11, 15, 0.97);
  border-bottom-color: rgba(255, 106, 0, 0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-spark {
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-left: auto;
}

.nav__links a {
  font-size: 14px;
  color: var(--muted);
  transition: var(--t-fast);
  font-weight: 500;
}
.nav__links a:hover { color: var(--white); }

.nav__cta { margin-left: var(--s2); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t-base);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3) var(--s4) var(--s4);
  border-top: 1px solid var(--border);
}
.nav__mobile a {
  font-size: 15px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--t-fast);
}
.nav__mobile a:hover { color: var(--white); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: var(--s2); }

.nav__mobile--open { display: flex; }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 106, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -200px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, transparent 70%);
}
.hero__glow--2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  left: -100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-subtle);
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: var(--r-pill);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: var(--s4);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  margin-bottom: var(--s3);
  line-height: 1.08;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: var(--s5);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
  margin-bottom: var(--s6);
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.hero__proof-item {
  display: flex;
  flex-direction: column;
}

.hero__proof-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero__proof-label {
  font-size: 12px;
  color: var(--subtle);
  margin-top: 2px;
}

.hero__proof-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section {
  padding: var(--s7) 0;
}

.section--dark {
  background: var(--bg-2);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s6);
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--s2);
}

.section__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  margin-bottom: var(--s3);
}

.section__subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─── CARDS ─────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: var(--s3);
}

.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4);
  transition: var(--t-base);
  position: relative;
}

.card:hover {
  border-color: rgba(255, 106, 0, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.card--highlight {
  border-color: rgba(255, 106, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.08) 0%, rgba(10, 11, 15, 0) 60%);
}

.card--highlight:hover {
  border-color: rgba(255, 106, 0, 0.5);
}

.card__badge {
  position: absolute;
  top: -12px;
  left: var(--s4);
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s3);
}

.card__icon--blue   { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.card__icon--orange { background: rgba(255, 106, 0, 0.12);  color: var(--orange); }
.card__icon--purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

.card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s2);
}

.card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--s3);
}

.card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--s4);
}

.card__list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}

.card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 12px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  transition: var(--t-fast);
}

.card__link:hover { gap: 10px; }

/* ─── ZENYA SECTION ─────────────────────────────────────────── */
.zenya-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}

.zenya-section__bg-glow {
  position: absolute;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.zenya-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: start;
}

.zenya-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--s3);
}

.zenya-capabilities {
  margin: var(--s4) 0 var(--s5);
}

.zenya-capabilities h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: var(--s3);
}

.capability-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.cap-icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 1px;
}

/* ─── PHONE MOCKUP ──────────────────────────────────────────── */
.zenya-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  padding-top: var(--s3);
}

.phone-mockup {
  width: 320px;
  background: #1a1a2e;
  border-radius: 32px;
  border: 8px solid #2a2a3e;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.03);
}

.phone-screen {
  background: #0d1117;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: #1e2028;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone-header__avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ff6a00, #ff9a3c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.phone-header__info {
  display: flex;
  flex-direction: column;
}

.phone-header__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.phone-header__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #25d366;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #25d366;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.phone-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.msg--in {
  background: #2a2a3e;
  color: rgba(240,244,255,0.85);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg--out {
  background: linear-gradient(135deg, #ff6a00, #ff8533);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  position: relative;
}

.msg__time {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  text-align: right;
  margin-top: 4px;
}

/* ─── ZENYA INTEGRATIONS ────────────────────────────────────── */
.zenya-integrations {
  text-align: center;
}

.zenya-integrations__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: var(--s2);
}

.integration-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
}

.integration-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 72px;
  transition: var(--t-fast);
}

.integration-logo:hover {
  border-color: rgba(255, 106, 0, 0.25);
  background: var(--bg-card-hover);
}

.integration-logo span {
  font-size: 10px;
  color: var(--subtle);
  font-weight: 500;
}

.integration-logo__box {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── STEPS ─────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step {
  padding: var(--s4);
  position: relative;
  text-align: center;
}

.step__number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 106, 0, 0.35);
  line-height: 1;
  margin-bottom: var(--s3);
}

.step__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--s2);
}

.step__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.step__connector {
  position: absolute;
  top: calc(var(--s4) + 24px);
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.4), rgba(255, 106, 0, 0.1));
  z-index: 1;
}

/* ─── INTEGRATIONS SHOWCASE ──────────────────────────────────── */
.integrations-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s3);
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: var(--s3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: var(--t-base);
  cursor: default;
}

.integration-card:hover {
  border-color: rgba(255, 106, 0, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.integration-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

/* ─── STATS ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4);
  text-align: center;
  transition: var(--t-base);
}

.stat-card:hover {
  border-color: rgba(255, 106, 0, 0.2);
  transform: translateY(-3px);
}

.stat-card--accent {
  background: rgba(255, 106, 0, 0.06);
  border-color: rgba(255, 106, 0, 0.2);
}

.stat-card__number {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, rgba(240,244,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--s2);
}

.stat-card--accent .stat-card__number {
  background: linear-gradient(135deg, #ff6a00 0%, #ffb870 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card__number span {
  font-size: 0.55em;
  vertical-align: super;
}

.stat-card__label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: var(--s8) 0;
  background: var(--bg-2);
}

.cta-section__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 106, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: var(--s3);
}

.cta-section__subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto var(--s5);
  line-height: 1.7;
}

.cta-section__note {
  margin-top: var(--s3);
  font-size: 13px;
  color: var(--subtle);
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--s6) 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer__logo {
  font-size: 22px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--subtle);
  line-height: 1.6;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 4px;
}

.footer__col a, .footer__col span {
  font-size: 13px;
  color: var(--muted);
  transition: var(--t-fast);
}

.footer__col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: var(--s3) 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--subtle);
}

/* ─── ANIMATIONS ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid--3 {
    grid-template-columns: 1fr;
  }

  .integrations-showcase {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .zenya-inner {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .zenya-visual {
    order: -1;
  }

  .phone-mockup {
    width: 280px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step__connector {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --s7: 64px;
    --s8: 80px;
  }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__actions {
    flex-direction: column;
  }

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

  .hero__proof {
    gap: var(--s2);
  }

  .integrations-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: 1fr;
  }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--s3); }

  .hero__title { font-size: 36px; }

  .integration-logos {
    gap: var(--s1);
  }

  .integration-logo {
    min-width: 60px;
    padding: 10px;
  }
}
