/* =========================================================
   Ello Apps — modern stylesheet (v2)
   Animated gradients · glassmorphism · sparkles · scroll reveal
   ========================================================= */
:root {
  --indigo: #5b5bf5;
  --violet: #8b5cf6;
  --purple: #a855f7;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --ink: #0e0d24;
  --muted: #6b7280;
  --line: rgba(22, 21, 58, 0.08);
  --card: #ffffff;
  --bg: #f6f5fb;
  --radius: 22px;
  --shadow-sm: 0 6px 20px rgba(22, 21, 58, 0.06);
  --shadow-md: 0 24px 60px rgba(76, 29, 149, 0.14);
  --glow: 0 0 40px rgba(139, 92, 246, 0.45);
  --grad: linear-gradient(120deg, #5b5bf5, #8b5cf6, #a855f7, #ec4899);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hue 8s ease infinite;
}
@keyframes hue { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- NAV ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
header.scrolled { background: rgba(255,255,255,0.9); box-shadow: 0 6px 24px rgba(22,21,58,0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.24rem; letter-spacing: -0.02em; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); background-size: 200% 200%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4); animation: hue 8s ease infinite;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: #3a3a52; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--violet); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad); background-size: 200% 200%; color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 26px rgba(139, 92, 246, 0.36); animation: hue 8s ease infinite;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg); transition: left 0.6s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(139, 92, 246, 0.48); }
.btn:hover::after { left: 130%; }
.btn.ghost { background: rgba(255,255,255,0.9); color: var(--violet); border: 1px solid rgba(139, 92, 246, 0.3); box-shadow: none; animation: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; padding: 130px 0 140px;
  background: linear-gradient(135deg, #16092e 0%, #2a1160 45%, #3b1a8a 100%);
}
/* animated aurora blobs */
.hero .aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; mix-blend-mode: screen; }
.hero .aurora .a1 { width: 520px; height: 520px; background: #6d5bf5; top: -140px; left: -60px; animation: drift1 14s ease-in-out infinite; }
.hero .aurora .a2 { width: 460px; height: 460px; background: #ec4899; bottom: -160px; right: -40px; animation: drift2 16s ease-in-out infinite; }
.hero .aurora .a3 { width: 400px; height: 400px; background: #22d3ee; top: 40%; left: 55%; animation: drift3 18s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(60px,40px) scale(1.12);} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-50px,-30px) scale(1.15);} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-40px,40px) scale(0.9);} }
/* subtle grid overlay */
.hero .grid-overlay {
  position: absolute; inset: 0; z-index: 0; opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
/* sparkles */
.sparkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255,255,255,0.9); opacity: 0; animation: twinkle 3.4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 0.95; transform: scale(1.25); } }

.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 500; margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.2rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 22px; }
.hero h1 .grad-text { background: linear-gradient(120deg, #c4b5fd, #f0abfc, #67e8f9); background-size: 220% 220%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hue 6s ease infinite; }
.hero p { font-size: clamp(1.05rem, 2.4vw, 1.32rem); opacity: 0.9; max-width: 660px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn.ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.45); backdrop-filter: blur(6px); }
/* floating app chips */
.hero-chips { position: relative; z-index: 2; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 10px 16px; border-radius: 14px; font-size: 0.9rem; font-weight: 500; backdrop-filter: blur(8px); animation: float 5s ease-in-out infinite; }
.chip:nth-child(2){ animation-delay: .6s; } .chip:nth-child(3){ animation-delay: 1.2s; }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; line-height: 0; }
.wave svg { width: 100%; height: 70px; display: block; }

/* ---------- SECTIONS ---------- */
section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.eyebrow { color: var(--violet); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---------- CARDS / SERVICES ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; transition: transform 0.3s, box-shadow 0.3s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: var(--grad); -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.3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 1; }
.card .ico {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(91,91,245,0.14), rgba(236,72,153,0.14));
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
  transition: transform 0.3s;
}
.card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- PRODUCTS ---------- */
.products { background: #fff; }
.product {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  transition: transform 0.28s, box-shadow 0.28s;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.product .thumb {
  position: relative; height: 110px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem;
  background: linear-gradient(135deg, #6d5bf5, #a855f7 55%, #ec4899); overflow: hidden;
}
.product .thumb::after {
  content: ""; position: absolute; top: -60%; left: -60%; width: 60%; height: 220%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent); transform: rotate(20deg); transition: left 0.6s;
}
.product:hover .thumb::after { left: 130%; }
.product .body { padding: 20px 22px 24px; }
.product strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.product span { color: var(--muted); font-size: 0.9rem; }
.product .visit { display: inline-block; margin-top: 12px; color: var(--violet); font-weight: 600; font-size: 0.88rem; transition: gap 0.2s; }

/* ---------- STATS ---------- */
.stats {
  position: relative; overflow: hidden; color: #fff; border-radius: 30px; padding: 60px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
  background: linear-gradient(120deg, #4f2ac0, #7c3aed 50%, #c026d3); box-shadow: var(--shadow-md);
}
.stats::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,0.14); top: -160px; right: -100px; filter: blur(40px); }
.stat { position: relative; z-index: 1; }
.stat b { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 900; display: block; }
.stat span { opacity: 0.9; font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-inner {
  position: relative; overflow: hidden; border-radius: 30px; padding: 68px 32px;
  background: linear-gradient(135deg, #16092e, #3b1a8a); color: #fff; box-shadow: var(--shadow-md);
}
.cta-inner::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: #8b5cf6; filter: blur(90px); opacity: 0.5; top: -140px; left: -80px; }
.cta-inner::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: #ec4899; filter: blur(90px); opacity: 0.45; bottom: -140px; right: -60px; }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-inner p { opacity: 0.9; font-size: 1.1rem; margin-bottom: 30px; }
.cta-inner .btn { background: #fff; color: var(--ink); animation: none; }
.cta-inner .btn:hover { color: var(--violet); }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: #cbd5e1; padding: 62px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 42px; }
.foot-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; font-weight: 700; }
.foot-grid a, .foot-grid p { color: #9aa3b8; font-size: 0.92rem; display: block; margin-bottom: 10px; transition: color 0.2s; }
.foot-grid a:hover { color: #fff; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.88rem; color: #9aa3b8; }
.foot-bottom a { color: #9aa3b8; }
.foot-bottom a:hover { color: #fff; }

/* ---------- LEGAL PAGES ---------- */
.legal-hero { position: relative; overflow: hidden; color: #fff; padding: 84px 0 72px; text-align: center; background: linear-gradient(135deg, #16092e 0%, #2a1160 45%, #3b1a8a 100%); }
.legal-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: #8b5cf6; filter: blur(90px); opacity: 0.5; top: -160px; right: -80px; }
.legal-hero > .wrap { position: relative; z-index: 1; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -0.02em; }
.legal-hero p { opacity: 0.9; margin-top: 10px; font-size: 1rem; }
.legal-wrap { max-width: 880px; margin: 0 auto; padding: 60px 24px 84px; }
.legal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px clamp(24px, 5vw, 56px); box-shadow: var(--shadow-sm); }
.legal-card h2 { font-size: 1.35rem; font-weight: 800; margin: 34px 0 12px; letter-spacing: -0.01em; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p { color: #374151; margin-bottom: 14px; }
.legal-card ul { padding-left: 22px; margin-bottom: 14px; color: #374151; }
.legal-card li { margin-bottom: 8px; }
.legal-card strong { color: var(--ink); }
.legal-card a { color: var(--violet); font-weight: 600; }
.legal-updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.back-home { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font-weight: 600; margin-bottom: 26px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 96px 0 110px; }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
