:root {
  --bg: #070514;
  --bg-soft: #0d0a2a;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --pink: #ec4899;
  --text: #ede9fe;
  --text-muted: #a5a0c2;
  --glass-bg: rgba(139, 92, 246, 0.06);
  --glass-border: rgba(167, 139, 250, 0.18);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1080px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 55%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Background layers ---------- */

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
  animation: drift 28s ease-in-out infinite alternate;
}

.nebula-a {
  width: 48vw;
  height: 48vw;
  top: -12vw;
  left: -10vw;
  background: radial-gradient(circle, var(--violet), transparent 70%);
}

.nebula-b {
  width: 42vw;
  height: 42vw;
  top: 28vh;
  right: -14vw;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  animation-delay: -9s;
  animation-duration: 34s;
}

.nebula-c {
  width: 36vw;
  height: 36vw;
  bottom: -14vw;
  left: 24vw;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  opacity: 0.22;
  animation-delay: -18s;
  animation-duration: 40s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(5vw, 4vh) scale(1.12); }
}

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 5, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(167, 139, 250, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo-glyph {
  color: var(--violet);
  text-shadow: 0 0 14px var(--violet);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
}

@media (max-width: 560px) {
  .logo {
    font-size: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .nav-cta {
    padding: 0.4rem 0.85rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-block: 7rem 4rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(92deg, var(--violet), var(--blue) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  color: var(--text-muted);
  font-size: 1.4rem;
  text-decoration: none;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(92deg, var(--violet), var(--blue));
  border: none;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.45);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 38px rgba(139, 92, 246, 0.65);
}

.btn-ghost {
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-2px);
  background: rgba(139, 92, 246, 0.14);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 auto 3rem;
}

/* ---------- Product cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  border-radius: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 18px 50px rgba(139, 92, 246, 0.22);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #fff;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.4);
  margin-bottom: 1.5rem;
}

.card-icon-alt {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 0 22px rgba(236, 72, 153, 0.35);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.card-desc {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.card-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: grid;
  gap: 0.5rem;
}

.card-features li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}

.card-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-size: 0.8rem;
}

.card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--violet);
}

.card-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.card-link:hover span {
  transform: translateX(4px);
}

/* ---------- About ---------- */

.about-text {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-card {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#copy-email.copied {
  border-color: var(--violet);
  color: var(--violet);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(167, 139, 250, 0.12);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-logo span {
  color: var(--violet);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */

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

  .nebula,
  .scroll-hint {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .card-link span {
    transition: none;
  }
}
