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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --accent: #7C5CFF;
  --accent-hover: #6a4aee;
  --border: #e5e5e5;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout ── */

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

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

/* ── Nav ── */

.site-nav {
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.site-nav__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-nav__logo:hover {
  text-decoration: none;
}

/* ── Hero ── */

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero__subhead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 0.6875rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
  color: #ffffff;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

/* ── Section ── */

section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ── Feature cards ── */

.features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Demo callout ── */

.demo-callout {
  text-align: center;
  padding: 2.5rem;
  background: #f8f5ff;
  border-radius: 12px;
  margin-bottom: 4rem;
}

.demo-callout__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── Forms section ── */

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.form-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.form-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.form-card__description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.form-row {
  display: flex;
  gap: 0.5rem;
}

.input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s;
  min-width: 0;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

.input::placeholder {
  color: #aaaaaa;
}

.form-feedback {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  min-height: 1.2em;
}

.form-feedback--success {
  color: #2a7f4f;
}

.form-feedback--error {
  color: #c0392b;
}

/* ── About / lineage ── */

.lineage {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 4rem;
}

.lineage__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lineage__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__links a {
  color: var(--text-secondary);
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* ── Demo page ── */

.demo-placeholder {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  background: #f0ecff;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 3rem;
  text-align: center;
  padding: 1rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screenshot-item img,
.screenshot-item .screenshot-placeholder {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.screenshot-placeholder {
  background: #f0ecff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.75rem;
}

.screenshot-caption {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Policy pages ── */

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.625rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
  line-height: 1.7;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.prose li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

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

.summary-box {
  background: #f8f5ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.summary-box__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.summary-box ul {
  padding-left: 1.25rem;
  margin: 0;
}

.summary-box li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.25rem;
}

/* ── Changelog ── */

.changelog-entry {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.changelog-entry:last-child {
  border-bottom: none;
}

.changelog-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.375rem;
}

.changelog-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.changelog-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Support page ── */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.faq-a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .hero__headline {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .forms-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
  }

  .site-nav {
    margin-bottom: 2.5rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }
}
