:root {
  color-scheme: only light;
  --bg: #fdfdff;
  --bg-secondary: #f6f7fb;
  --text: #171725;
  --text-secondary: #606176;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #5d3fd1;
  --gradient-start: #5665e8;
  --gradient-end: #7357d9;
  --footer-bg: #0d1117;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

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

/* Header */
.site-header {
  padding: 24px 0;
}

.site-header .logo {
  display: inline-block;
  height: 36px;
}

.site-header .logo img {
  height: 36px;
  width: auto;
  display: block;
}

/* Hero */
main {
  flex: 1;
}

body.home {
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(101, 94, 225, 0.14), transparent 70%),
    var(--bg);
}

body.home main {
  display: flex;
  align-items: center;
}

.hero {
  width: 100%;
  padding: 48px 0 96px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge .dot {
    animation: none;
  }
}

.hero h1 {
  margin: 28px auto 20px;
  max-width: 820px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 72px;
  text-align: left;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}

.feature h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Legal pages */
.legal {
  padding: 48px 0 96px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  margin: 24px 0 4px;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -0.01em;
}

.legal .subtitle {
  margin: 0 0 32px;
  color: var(--text-secondary);
}

.legal h2 {
  margin: 36px 0 8px;
  font-size: 20px;
}

.legal p,
.legal li {
  color: #2d2e3e;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 28px 0;
  font-size: 14px;
}

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

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

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
