:root {
  --bg: #f1fbff;
  --surface: #ffffff;
  --surface-soft: #e8f7ff;
  --surface-badge: #fff7d6;
  --text: #223047;
  --muted: #66738a;
  --line: #d7e7f5;
  --brand: #ef5350;
  --brand-2: #2f80ed;
  --brand-3: #36b37e;
  --warning: #ffcb3d;
  --ink: #1f2a44;
  --paper: #ffffff;
  --spark: #ffcb3d;
  --shadow: 0 16px 38px rgba(47, 128, 237, .13);
  --radius: 8px;
  --radius-sm: 6px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --container: 1180px;
  --header-h: 64px;
  --touch: 40px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 203, 61, .28), transparent 26%),
    radial-gradient(circle at 86% 10%, rgba(47, 128, 237, .16), transparent 28%),
    linear-gradient(90deg, rgba(54, 179, 126, .06) 50%, transparent 50%) 0 0 / 28px 28px,
    linear-gradient(180deg, #f7fdff 0%, #e7f8ff 42%, #dff6e9 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section {
  margin-top: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  min-height: var(--touch);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.btn-primary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

.small {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (min-width: 360px) {
  .container {
    width: min(100% - 28px, var(--container));
  }
}

@media (min-width: 390px) {
  body {
    font-size: 15.5px;
  }
}

@media (min-width: 430px) {
  .container {
    width: min(100% - 32px, var(--container));
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .section {
    margin-top: 38px;
  }
}

@media (min-width: 1024px) {
  .container {
    width: min(100% - 48px, var(--container));
  }
}

@media (min-width: 1280px) {
  :root {
    --container: 1240px;
  }
}
