:root {
  --bg: #fdf8f3;
  --surface: #ffffff;
  --text: #2b2440;
  --muted: #6e6787;
  --primary: #7c5cff;
  --primary-soft: #efeaff;
  --accent: #ff7aa8;
  --yellow: #ffd166;
  --border: #ece6f5;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(60, 40, 120, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 96px 0 80px;
  text-align: center;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  margin: 20px auto 32px;
  font-size: 1.15rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(124, 92, 255, 0.4);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  margin-left: 8px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.blob.one {
  width: 220px;
  height: 220px;
  background: var(--yellow);
  top: 40px;
  left: -60px;
}

.blob.two {
  width: 160px;
  height: 160px;
  background: var(--accent);
  top: 160px;
  right: 40px;
  animation-delay: -3s;
}

.blob.three {
  width: 90px;
  height: 90px;
  background: var(--primary);
  bottom: 20px;
  left: 30%;
  opacity: 0.3;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

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

.card.link-card {
  display: block;
  color: var(--text);
}

.card.link-card:hover {
  text-decoration: none;
}

.card.link-card .arrow {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 800;
}

.contact-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 28px;
  padding: 48px 32px;
  text-align: center;
}

.contact-box h2 {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.contact-box p {
  opacity: 0.92;
  margin-bottom: 24px;
}

.contact-box .btn {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

/* Legal pages */
.legal {
  padding: 56px 0 72px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 6px;
}

.legal-content .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 10px;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 600px) {
  .nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .logo span:last-child {
    display: none;
  }

  .btn.secondary {
    margin: 12px 0 0;
  }

  .blob {
    opacity: 0.3;
  }

  .blob.one {
    width: 140px;
    height: 140px;
  }

  .blob.two {
    width: 100px;
    height: 100px;
    right: -30px;
  }
}
