:root {
  --bg-body: #ffffff;
  --bg-card: #f5f5f5;
  --bg-card-strong: #efefef;
  --text-primary: #000000;
  --text-secondary: #666666;
  --accent: #000000;
  --border-soft: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-sm: 10px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--bg-body);
  font-family: "Fraunces", "Times New Roman", serif;
  line-height: 1.35;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% -10%, rgba(0, 0, 0, 0.045), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(0, 0, 0, 0.035), transparent 24%);
}

.shell {
  width: min(880px, 92vw);
  margin: 0 auto;
  padding: var(--space-lg) 0 var(--space-xl);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 12px;
  z-index: 20;
}

.brand {
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--border-strong);
  background: #fff;
}

.hero {
  margin-top: var(--space-md);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #111111, #000000 65%);
  color: #ffffff;
  padding: clamp(18px, 3vw, 34px);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  animation: fadeup 420ms ease-out;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

h1,
h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(32px, 7vw, 56px);
  max-width: 12ch;
}

.lead {
  margin-top: 12px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.cta-row {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn {
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  border: 1px solid transparent;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: #ffffff;
  color: #000000;
}

.btn.ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.feature-grid {
  margin-top: var(--space-md);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.feature-grid article {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: 16px;
  min-height: 150px;
  animation: fadeup 520ms ease-out;
}

.feature-grid h2 {
  font-size: 23px;
}

.feature-grid p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  margin-top: var(--space-md);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: var(--bg-card-strong);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--text-secondary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
}

.footer a {
  color: var(--text-primary);
}

.legal-shell {
  width: min(760px, 92vw);
}

.legal-card {
  margin-top: var(--space-md);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  padding: clamp(18px, 3vw, 32px);
  animation: fadeup 420ms ease-out;
}

.legal-card h1 {
  font-size: clamp(30px, 6vw, 48px);
  margin-bottom: 8px;
}

.legal-card h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 26px;
}

.legal-card p {
  margin: 0 0 9px;
  color: var(--text-secondary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.account-delete-flow {
  margin-top: var(--space-md);
  display: grid;
  gap: var(--space-md);
}

.flow-step {
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.flow-step h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.danger-step {
  border-color: rgba(165, 0, 0, 0.25);
  background: #fffafa;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.field-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
}

.field-input:focus {
  outline: none;
  border-color: #111111;
}

.action-btn {
  margin-top: 10px;
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-btn.danger {
  border-color: #8a0000;
  background: #8a0000;
}

.check-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
}

.status-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  min-height: 19px;
}

.status-message.error {
  background: rgba(138, 0, 0, 0.08);
  color: #7a0000;
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shell,
  .legal-shell {
    width: min(520px, 92vw);
  }
}

@media (max-width: 520px) {
  .topbar {
    border-radius: 18px;
    position: static;
  }

  .brand {
    font-size: 11px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 11px;
  }

  h1 {
    font-size: clamp(28px, 13vw, 42px);
  }

  .hero {
    min-height: 280px;
    border-radius: 22px;
  }

  .feature-grid article,
  .footer,
  .legal-card {
    border-radius: 22px;
  }
}
