/* Humanize — mirrors lib/core/theme/app_colors.dart (OLED dark + iOS blue) */

:root {
  --bg: #000000;
  --surface: #0a0a0c;
  --surface-elevated: #121214;
  --accent: #3a7af2;
  --accent-soft: #5b94f6;
  --text-primary: #ffffff;
  --text-secondary: #8e8e93;
  --border-subtle: #252528;
  --segment-track: #2c2c2e;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-secondary);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(58, 122, 242, 0.12),
      transparent 55%
    ),
    radial-gradient(
      ellipse 80% 50% at 100% 100%,
      rgba(58, 122, 242, 0.06),
      transparent 45%
    );
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.45px;
  color: var(--text-primary);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(58, 122, 242, 0.35);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-hero {
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.45px;
  line-height: 1.12;
  color: var(--text-primary);
}

.lead {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  letter-spacing: -0.15px;
  color: var(--text-secondary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.card h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.card h2:first-child {
  margin-top: 0;
}

.card p,
.card li {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.5rem;
}

.card li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.muted {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

/* Landing */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(58, 122, 242, 0.14);
  border: 1px solid rgba(58, 122, 242, 0.28);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.55px;
  line-height: 1.08;
  color: var(--text-primary);
}

.hero .sub {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(58, 122, 242, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(58, 122, 242, 0.42);
}

.btn-ghost {
  background: var(--segment-track);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--surface-elevated);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 560px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

.site-footer a {
  margin: 0 0.5rem;
}
