:root {
  --purple: #7b2ff7;
  --pink: #f72f9e;
  --orange: #ff8a3d;
  --yellow: #ffd23d;
  --ink: #1f2430;
  --muted: #6f687c;
  --soft: #f6f3ff;
  --line: #e8e1f3;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #7b2ff7, #f72f9e 55%, #ff8a3d);
  --shadow: 0 20px 60px rgba(83, 42, 137, 0.16);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fffafc;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.section-pad {
  padding: 72px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(18px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 250, 252, 0.9);
  border-bottom: 1px solid rgba(232, 225, 243, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--purple);
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(123, 47, 247, 0.16), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(255, 138, 61, 0.18), transparent 28rem),
    var(--soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 28px;
  color: #504a5f;
  font-size: 1.18rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary,
.button.secondary {
  color: var(--white);
  background: var(--gradient);
  box-shadow: 0 14px 30px rgba(247, 47, 158, 0.24);
}

.button.ghost {
  color: var(--purple);
  background: #ffffff;
  border: 1px solid var(--line);
}

.brand-panel {
  min-height: 450px;
  display: grid;
  place-items: center;
}

.spark-card {
  width: min(100%, 440px);
  padding: 46px 34px;
  color: #fff;
  text-align: center;
  background: var(--gradient);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spark-card h2 {
  margin-top: 18px;
  color: #fff;
}

.spark-card p {
  margin: 14px auto 0;
  max-width: 310px;
  color: rgba(255, 255, 255, 0.9);
}

.spark-icon {
  width: 88px;
  height: 88px;
  display: inline-block;
  border: 10px solid #fff;
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 38%, var(--orange) 0 9px, transparent 10px),
    linear-gradient(135deg, transparent 49%, #fff 50% 72%, transparent 73%),
    var(--gradient);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-height: 250px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 38px rgba(31, 36, 48, 0.07);
}

.product-card p {
  color: var(--muted);
}

.product-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #fff6fb);
}

.product-card.featured img {
  width: min(100%, 240px);
  margin: -22px auto;
}

.product-card.muted {
  background: #fbf8ff;
}

.site-footer {
  padding: 36px 0;
  color: #fff;
  background: #1f2430;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.76);
}

.simple-page {
  padding: 72px 0;
}

.simple-page article {
  max-width: 840px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.simple-page h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.simple-page h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .product-card.featured {
    grid-template-columns: 1fr;
  }

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

  .product-card.featured {
    grid-column: auto;
  }

  .brand-panel {
    min-height: auto;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .section-pad {
    padding: 52px 0;
  }

  .site-header nav {
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .spark-card,
  .simple-page article,
  .product-card {
    padding: 22px;
  }
}
