/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #64748b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-bg: rgba(37, 99, 235, 0.06);
  --radius: 12px;
  --max-w: 1080px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
.btn:focus-visible,
.nav__links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1 { font-size: 2.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; line-height: 1.3; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
ul { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }

.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.7; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---- Hero ---- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero__text { max-width: 640px; margin: 0 auto; }

.hero h1 { margin-bottom: 1.25rem; }

.hero .lead { margin-bottom: 2rem; }

.hero__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero__hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Features ---- */
.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 1.75rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.15s;
}

.feature-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* ---- CTA Section ---- */
.cta-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.cta-section h2 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-section .lead { margin-bottom: 1.5rem; }

/* ---- Legal Pages ---- */
main.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

main.legal h1 { font-size: 2rem; margin-bottom: 0.25rem; }

main.legal h2 { font-size: 1.25rem; color: var(--text); }

main.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

main.legal p,
main.legal ul {
  color: var(--muted);
}

main.legal a { color: var(--accent); }

/* ---- FAQ ---- */
.faq dt {
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
  margin-top: 1.75rem;
}

.faq dd {
  color: var(--muted);
  margin-left: 0;
  margin-top: 0.5rem;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__entity {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
}

.footer__links a {
  color: var(--muted);
  font-size: 0.875rem;
}
.footer__links a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  .section-title { font-size: 1.4rem; }

  .hero { padding: 3rem 1.25rem 2.5rem; }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.825rem; }

  .footer__inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 2rem 1rem 2rem; }
  .lead { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .feature-card { transition: none; }
}
