:root {
  --bg-main: #f5f6ff;
  --bg-hero-gradient: linear-gradient(135deg, #7bb6ff, #f7b5ff);
  --bg-card: #ffffff;
  --bg-card-soft: #f7f2ff;
  --text-main: #1f2430;
  --text-muted: #7b8191;
  --accent: #7c5cff;
  --accent-soft: #e8ddff;
  --accent-secondary: #ff8fa3;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 35px rgba(90, 108, 152, 0.18);
}

/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 255, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--bg-hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.logo-title {
  font-weight: 600;
}

.logo-subtitle {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.main-nav a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

/* Buttons */

.btn-primary,
.btn-secondary,
.btn-outline {
  border-radius: 999px;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: #ffffff;
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Mobile menu button */

.menu-toggle {
  display: none;
  border: none;
  background: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* Hero */

.hero {
  background: var(--bg-hero-gradient);
  padding: 40px 0 70px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 36px 70px rgba(90, 108, 152, 0.32);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 18px;
}

.hero-content p {
  color: #f4f6ff;
  font-size: 14px;
  max-width: 360px;
  margin-bottom: 22px;
}

/* Hero image / balloons */

.hero-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.balloon-cluster {
  width: 220px;
  height: 260px;
  border-radius: 140px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 40px rgba(70, 91, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}

.balloon {
  width: 52px;
  height: 86px;
  border-radius: 52px;
  position: relative;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 60px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.7);
}

.balloon-1 {
  background: #ffd6e6;
}
.balloon-2 {
  background: #fffbcc;
}
.balloon-3 {
  background: #d6f0ff;
}
.balloon-4 {
  background: #e3d4ff;
}

.hero-image-label {
  margin-top: 12px;
  font-size: 12px;
  color: #f7f5ff;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}

/* Features */

.features {
  margin-top: 40px;
  padding-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: -36px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.feature-icons {
  display: flex;
  gap: 10px;
  font-size: 18px;
}

.feature-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  border-radius: 999px;
}

.feature-accent {
  background: var(--bg-card-soft);
}

/* Categories */

.categories {
  padding: 10px 0 60px;
}

.categories h2 {
  font-size: 20px;
  margin-bottom: 18px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(103, 119, 163, 0.14);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(103, 119, 163, 0.18);
}

.category-image {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  background: linear-gradient(135deg, #ffe0f0, #e2f1ff);
}

.category-card h4 {
  padding: 10px 12px 12px;
  font-size: 14px;
}

/* Footer */

.site-footer {
  border-top: 1px solid #e2e5f4;
  padding: 18px 0 24px;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.social-links a {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #dde0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-link,
.footer-links a {
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image {
    order: -1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 64px;
    background: #ffffff;
    flex-direction: column;
    padding: 10px 20px 14px;
    display: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  .main-nav.open {
    display: flex;
  }

  .account-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    padding-block: 12px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }
}
