:root {
  --bg: #0d0b1a;
  --bg-2: #14112a;
  --ink: #f3f1fa;
  --ink-dim: #b9b3d6;
  --violet: #9b6bff;
  --violet-2: #c084fc;
  --mist: #5eead4;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --radius: 18px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .brand {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

/* Background blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
.blob-a {
  width: 480px; height: 480px;
  top: -160px; left: -120px;
  background: radial-gradient(circle at 30% 30%, var(--violet), transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-b {
  width: 420px; height: 420px;
  top: 20%; right: -160px;
  background: radial-gradient(circle at 60% 40%, var(--violet-2), transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.blob-c {
  width: 380px; height: 380px;
  bottom: -140px; left: 30%;
  background: radial-gradient(circle at 50% 50%, var(--mist), transparent 70%);
  opacity: 0.22;
  animation: drift-c 30s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(60px, 40px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-50px, 60px) scale(1.05); } }
@keyframes drift-c { to { transform: translate(40px, -50px) scale(1.15); } }

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  html { scroll-behavior: auto; }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(13, 11, 26, 0.6);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--violet), var(--mist));
  display: inline-block;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-dim);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }

/* Layout */
main { position: relative; z-index: 1; }
section { max-width: var(--maxw); margin: 0 auto; padding: 100px 24px; }

/* Hero */
.hero { text-align: center; padding-top: 130px; padding-bottom: 90px; }
.eyebrow {
  color: var(--mist);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 22px;
}
.grad-text {
  background: linear-gradient(120deg, var(--violet), var(--violet-2), var(--mist));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--ink-dim);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 38px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--violet), var(--violet-2));
  color: #12081f;
  box-shadow: 0 8px 30px -8px rgba(155, 107, 255, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(155, 107, 255, 0.8); }
.btn-ghost {
  border: 1px solid var(--card-border);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Apps */
.apps h2, .about h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--ink-dim); text-align: center; margin: 0 0 48px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 107, 255, 0.4);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon.money { background: rgba(155, 107, 255, 0.15); color: var(--violet-2); }
.card-icon.repair { background: rgba(94, 234, 212, 0.14); color: var(--mist); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; margin: 0 0 10px; }
.card p { color: var(--ink-dim); line-height: 1.6; margin: 0 0 20px; font-size: 0.95rem; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.card-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: 999px;
}
.btn-card {
  width: 100%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--ink);
}
.btn-card:hover { background: rgba(255, 255, 255, 0.1); }

/* About */
.about-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.about p {
  color: var(--ink-dim);
  line-height: 1.75;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  justify-content: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
}
.footer-sep { opacity: 0.4; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  section { padding: 70px 20px; }
  .hero { padding-top: 90px; }
}
