* {
  box-sizing: border-box;
}

:root {
  --bg: #f7f7ff;
  --bg-2: #fef6ff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --text: #4c4f75;
  --heading: #2f315a;
  --accent: #8c83ff;
  --accent-2: #ffb7dc;
  --line: rgba(140, 131, 255, 0.16);
  --shadow: 0 18px 50px rgba(118, 111, 176, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #fff8fd 0%, transparent 35%),
    radial-gradient(circle at top right, #eef2ff 0%, transparent 40%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  top: -8rem;
  left: -8rem;
  background: #d9d3ff;
}

.glow-2 {
  right: -10rem;
  top: 10rem;
  background: #ffd9ec;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--heading);
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.75);
  color: var(--heading);
  box-shadow: var(--shadow);
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.8);
  color: var(--heading);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.hero,
.feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-copy h1,
.page-hero h1,
.feature-copy h2,
.large-card h2,
.section-heading h2,
.newsletter h2 {
  color: var(--heading);
  line-height: 1.02;
  margin: 0 0 1rem;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.hero-copy .lead,
.page-hero .lead {
  font-size: 1.1rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: #7069c7;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #b7a5ff);
  color: white;
  box-shadow: 0 12px 28px rgba(140, 131, 255, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--heading);
  box-shadow: var(--shadow);
}

.card,
.cloud-card,
.large-card,
.wide-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}

.cloud-card,
.card,
.large-card,
.wide-card {
  padding: 1.5rem;
}

.hero-card {
  position: relative;
  min-height: 320px;
}

.moon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(180deg, #fff5c8, #ffe6aa);
  margin-bottom: 1rem;
  box-shadow: inset 0 -4px 10px rgba(255, 255, 255, 0.5);
}

.mini-tags,
.footer-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mini-tags span {
  background: rgba(255, 255, 255, 0.75);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.cards-section {
  padding: 1rem 0 3rem;
}

.section-heading {
  margin-bottom: 1.4rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.emoji {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.feature {
  padding: 1rem 0 3rem;
}

.feature-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.large-card {
  padding: 2rem;
}

.text-link {
  color: #6e66dc;
  text-decoration: none;
  font-weight: 800;
}

.newsletter {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.tip-output {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 700;
  color: var(--heading);
}

.page-space {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.page-hero {
  padding: 1rem 0 2rem;
}

.soft-panel {
  margin-top: 1.25rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.check-item {
  background: rgba(255, 255, 255, 0.65);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.ritual-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: #7a72de;
  letter-spacing: 0.08em;
}

.soft-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.soft-list li + li {
  margin-top: 0.7rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--heading);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(140, 131, 255, 0.18);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(140, 131, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(140, 131, 255, 0.08);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(140, 131, 255, 0.12);
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
}

@media (max-width: 860px) {
  .hero,
  .feature,
  .feature-reverse,
  .grid.two,
  .grid.three,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 82px;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.8rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .nav.open {
    display: flex;
  }

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

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
