:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: #24232b;
  --muted: #67647a;
  --border: #efe5d6;
  --red: #ff6b6b;
  --yellow: #ffd43b;
  --blue: #4dabf7;
  --green: #69db7c;
  --purple: #9775fa;
  --dark: #24232b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18171d;
    --surface: #22212a;
    --text: #f3f1f8;
    --muted: #a9a5ba;
    --border: #33313d;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--blue); }
img { max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

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

.brand img { width: 32px; height: 32px; }

.site-header nav { display: flex; gap: 20px; }

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

.site-header nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 2px solid var(--border); color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 88px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.08;
  margin: 0 auto 20px;
  max-width: 820px;
  letter-spacing: -0.02em;
}

.hero h1 .hl {
  background: linear-gradient(90deg, var(--red), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

.blob.b1 { width: 140px; height: 140px; background: var(--red); top: 40px; left: 4%; }
.blob.b2 { width: 90px; height: 90px; background: var(--yellow); top: 70px; right: 8%; animation-delay: -3s; }
.blob.b3 { width: 110px; height: 110px; background: var(--blue); bottom: 10px; left: 18%; animation-delay: -6s; }
.blob.b4 { width: 70px; height: 70px; background: var(--green); bottom: 40px; right: 18%; animation-delay: -1.5s; }

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

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

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

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin: 0 0 8px; }
.section-title p { color: var(--muted); margin: 0; font-size: 1.1rem; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
}

.value .icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.value h3 { margin: 0 0 6px; font-size: 1.2rem; }
.value p { margin: 0; color: var(--muted); }

/* App cards */
.app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}

a.app-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }

.app-card img { width: 80px; height: 80px; border-radius: 20px; }
.app-card h3 { margin: 0; font-size: 1.3rem; }
.app-card p { margin: 0; color: var(--muted); flex-grow: 1; }
.app-card .more { font-weight: 800; color: var(--blue); }

.app-card.placeholder {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  min-height: 240px;
}

.badge {
  align-self: flex-start;
  font-size: .8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--yellow) 35%, transparent);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tags span {
  font-size: .85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
}

/* Contact band */
.cta {
  background: var(--dark);
  color: #fff;
  border-radius: 32px;
  padding: 56px 24px;
  text-align: center;
}

.cta h2 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta p { color: #c9c6d6; margin: 0 0 24px; }
.cta .btn { background: #fff; color: var(--dark); }

/* App page */
.app-hero {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 56px 0 24px;
}

.app-hero img { width: 128px; height: 128px; border-radius: 30px; flex-shrink: 0; }
.app-hero h1 { margin: 6px 0 8px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; }
.app-hero p { margin: 0 0 16px; color: var(--muted); font-size: 1.15rem; }

.breadcrumb { font-size: .95rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

.links { display: grid; gap: 12px; }

.links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.links a:hover { border-color: var(--blue); }
.links a span { color: var(--muted); font-weight: 400; }

/* Legal docs */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 24px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 8px 0 4px; line-height: 1.15; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc h2 { margin-top: 36px; font-size: 1.25rem; }

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

.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  .site-header nav { gap: 14px; }
  .site-header nav a.hide-sm { display: none; }
  .app-hero { flex-direction: column; align-items: flex-start; }
  .app-hero img { width: 104px; height: 104px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 48px 0; }
}
