:root {
  --bg: #F4F2F5;
  --surface: #FFFFFF;
  --surface-deep: #ECE7EE;
  --ink: #1D1920;
  --ink2: #645C69;
  --ink3: #857C8A;
  --hairline: rgba(29, 25, 32, 0.1);
  --accent: #6E4766;
  --accent-deep: #573651;
  --on-accent: #F7F6F7;
  --on-accent2: #EBC9D6;
  --success: #2F7A55;
  --error: #B3261E;
  --focus: #8A5A80;

  --xs: 4px;
  --s: 8px;
  --m: 12px;
  --l: 16px;
  --xl: 20px;
  --side: 24px;
  --section: 32px;

  --r-s: 14px;
  --r-m: 16px;
  --r-l: 20px;
  --r-xl: 24px;

  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --width: 960px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #141216;
    --surface-deep: #221E25;
    --ink: #F2EFF3;
    --ink2: #ABA2B0;
    --ink3: #8C8391;
    --hairline: rgba(242, 239, 243, 0.12);
    --accent: #7A5072;
    --accent-deep: #D9AEC6;
    --success: #6CC593;
    --error: #FF8A80;
    --focus: #D9AEC6;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 40%, var(--surface-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--side);
}

/* Header */
.site-header {
  padding: var(--l) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--m) var(--l);
  flex-wrap: wrap;
}

.brand {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: var(--xs);
  padding: var(--xs);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-l);
}

.nav a {
  padding: var(--s) 14px;
  border-radius: var(--r-m);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--surface-deep);
  color: var(--ink);
}

.nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* Main */
.main {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 56px;
}

.narrow {
  max-width: 720px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: var(--side);
}

.eyebrow {
  margin: 0 0 var(--s);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.display {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-title {
  margin: 0 0 var(--m);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.lead {
  margin: var(--l) 0 0;
  font-size: 17px;
  color: var(--ink2);
  max-width: 34em;
}

.muted {
  margin: var(--xs) 0 0;
  font-size: 15px;
  color: var(--ink2);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: var(--section);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--m);
  margin-top: var(--section);
}

.orb-wrap {
  display: flex;
  justify-content: center;
}

.orb {
  width: min(260px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--on-accent2) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  opacity: 0.85;
  box-shadow: 0 0 60px rgba(110, 71, 102, 0.35);
  animation: breathe 10s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  .orb {
    background: radial-gradient(circle at 40% 35%, var(--on-accent2) 0%, var(--accent) 60%, #3A2536 100%);
    opacity: 0.7;
  }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.82); }
  45%, 55% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; transform: scale(0.92); }
  * { transition: none !important; }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: var(--m) var(--side);
  border-radius: var(--r-m);
  border: 1px solid transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.button-primary:hover {
  background: #5E3C57;
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
}

.button-secondary:hover {
  background: var(--surface-deep);
}

@media (prefers-color-scheme: dark) {
  .button-primary:hover {
    background: #8A5D82;
  }
}

.text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-deep);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Features */
.section {
  margin-top: 56px;
}

.section-title {
  margin: 0 0 var(--l);
  font-size: 22px;
  font-weight: 600;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--l);
}

.feature h3 {
  margin: 0 0 var(--s);
  font-size: 17px;
  font-weight: 600;
}

.feature h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: var(--l);
  border-radius: 2px;
  background: var(--accent);
}

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

.note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--l);
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

/* Form */
.form {
  margin-top: var(--section);
  display: flex;
  flex-direction: column;
  gap: var(--xl);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s);
}

.field label {
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--m) var(--l);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(138, 90, 128, 0.3);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

.form .button {
  align-self: flex-start;
}

.status {
  margin: 0;
  padding: var(--m) var(--l);
  border-radius: var(--r-s);
  background: var(--surface-deep);
  color: var(--success);
  font-size: 15px;
  font-weight: 600;
}

.status::before {
  content: "✓ ";
}

/* Policy */
.policy {
  padding: var(--section);
}

.policy h2 {
  margin: var(--section) 0 var(--s);
  font-size: 19px;
  font-weight: 600;
}

.policy p {
  margin: var(--s) 0 0;
}

.policy ul {
  margin: var(--s) 0 0;
  padding-left: var(--xl);
}

.policy li + li {
  margin-top: var(--xs);
}

.policy p,
.policy li {
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--side) 0;
  font-size: 14px;
  color: var(--ink2);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--l);
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-tagline {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink3);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s) var(--l);
}

.footer-nav a {
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--side);
  }

  .orb-wrap {
    order: -1;
  }

  .orb {
    width: 160px;
  }

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

@media (max-width: 480px) {
  :root {
    --side: 16px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    text-align: center;
  }

  .nav {
    justify-content: space-between;
  }

  .nav a {
    flex: 1;
    text-align: center;
    padding: var(--s) 6px;
    font-size: 14px;
  }

  .main {
    padding-top: var(--l);
  }

  .display {
    font-size: 32px;
  }

  .page-title {
    font-size: 28px;
  }

  .actions .button,
  .form .button {
    width: 100%;
  }

  .card {
    padding: var(--xl);
  }

  .policy {
    padding: var(--xl);
  }

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