:root {
  --bg: #040711;
  --surface: rgba(14, 20, 34, 0.74);
  --surface-soft: rgba(19, 26, 43, 0.54);
  --border: rgba(203, 224, 255, 0.14);
  --border-strong: rgba(203, 224, 255, 0.22);
  --text: #f5f8ff;
  --muted: rgba(222, 232, 255, 0.66);
  --soft: rgba(222, 232, 255, 0.46);
  --brand: #7cc7ff;
  --brand-2: #9b7cff;
  --trust: #68e0ff;
  --safe: #72f0bc;
  --premium: #f2cf8f;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(124, 199, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(155, 124, 255, 0.2), transparent 24%),
    radial-gradient(circle at 52% 74%, rgba(114, 240, 188, 0.08), transparent 28%),
    linear-gradient(180deg, #07101d 0%, var(--bg) 48%, #02040a 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.82), transparent 78%);
  opacity: 0.42;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(104,224,255,0.95);
  outline-offset: 4px;
}

.site-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px 24px 36px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.045)),
    rgba(124,199,255,0.08);
  border: 1px solid rgba(203,224,255,0.16);
  box-shadow:
    0 0 34px rgba(124,199,255,0.34),
    0 0 62px rgba(155,124,255,0.22);
}

.brand-mark img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(104,224,255,0.58));
}

.wordmark {
  color: rgba(255,255,255,0.95);
  font-size: 30px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.brand-line {
  color: var(--premium);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 17px;
  color: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.055);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.24s ease, border-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.button {
  color: #171020;
  border-color: transparent;
  background: linear-gradient(135deg, #fffaf0, #d9f6ff 54%, #d7ccff);
  box-shadow: 0 18px 42px rgba(104,224,255,0.18), 0 0 28px rgba(255,255,255,0.13);
}

.nav-link:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.hero {
  margin-bottom: 34px;
}

.kicker {
  color: var(--trust);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1 {
  max-width: 900px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.96;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.meta {
  display: inline-flex;
  margin-top: 20px;
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.055);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  border-radius: 26px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.toc-title {
  color: var(--premium);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  padding: 9px 0;
  border-top: 1px solid rgba(203,224,255,0.08);
}

.toc a:hover {
  color: var(--text);
}

.content {
  max-width: 820px;
}

.glass-card {
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.088), rgba(255,255,255,0.034)),
    var(--surface-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 24px 70px rgba(0,0,0,0.24);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-card h2 {
  color: rgba(255,255,255,0.94);
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.glass-card p,
.glass-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.glass-card p + p,
.glass-card ul + p,
.glass-card p + ul {
  margin-top: 12px;
}

.glass-card ul {
  padding-left: 20px;
}

.glass-card a {
  color: var(--trust);
  text-decoration: none;
}

.form-intro {
  margin-bottom: 18px;
}

.deletion-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.check-row {
  color: rgba(245,248,255,0.9);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(203,224,255,0.18);
  border-radius: 18px;
  background: rgba(4,7,17,0.56);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  padding: 14px 16px;
  outline: none;
}

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

.field input:focus,
.field textarea:focus {
  border-color: rgba(104,224,255,0.72);
  box-shadow: 0 0 0 3px rgba(104,224,255,0.12);
}

.field-help,
.privacy-note {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.6;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--trust);
}

.form-submit {
  width: fit-content;
  min-width: 230px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-message {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.form-message.success {
  color: var(--safe);
}

.form-message.error {
  color: #ffb4bd;
}

.center-card {
  max-width: 680px;
  margin: 86px auto;
  text-align: center;
}

.status-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #171020;
  background: linear-gradient(135deg, #fffaf0, var(--safe));
  box-shadow: 0 0 44px rgba(114,240,188,0.25);
  font-size: 30px;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
}

.site-footer {
  text-align: center;
  padding: 44px 0 4px;
  color: rgba(245,248,255,0.68);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.site-footer a {
  color: rgba(245,248,255,0.84);
  text-decoration: none;
  margin: 0 8px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
  transition: color 0.22s ease, text-shadow 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.site-footer a svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: currentColor;
  flex: 0 0 auto;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-block;
  color: currentColor;
  opacity: 1;
  visibility: visible;
}

.site-footer a:hover {
  color: var(--text);
  text-shadow: 0 0 18px rgba(104,224,255,0.34);
  transform: translateY(-2px);
}

footer,
footer a,
.site-footer,
.site-footer a,
.footer-links,
.footer-links a,
.social-links,
.social-links a,
.footer-social-icon {
  opacity: 1;
  visibility: visible;
}

footer,
.site-footer,
.footer-links,
.social-links,
.footer-social-icon {
  transform: none;
}

.footer-line {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: 0;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 860px) {
  .site-shell {
    padding: 18px 14px 28px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 40px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  html,
  body {
    overflow-x: clip;
  }

  .site-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .brand-mark img {
    width: 48px;
    height: 48px;
  }

  .wordmark {
    font-size: 27px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-nav,
  .button,
  .nav-link {
    width: 100%;
  }

  .glass-card {
    border-radius: 22px;
    padding: 21px;
    overflow-wrap: break-word;
  }

  .glass-card h2 {
    font-size: 21px;
  }

  .glass-card p,
  .glass-card li {
    font-size: 15px;
    line-height: 1.7;
  }

  .site-footer {
    line-height: 1.9;
  }

  .site-footer a {
    margin: 2px 5px;
    min-height: 42px;
    padding: 0 2px;
    letter-spacing: 0.08em;
  }

  .form-submit {
    width: 100%;
  }

  .back-top {
    display: none;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .site-shell,
  main,
  .content {
    touch-action: pan-y;
  }

  body::before {
    position: absolute;
  }

  .site-footer a:hover,
  .nav-link:hover,
  .button:hover {
    transform: none;
  }

  .glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

@media (max-width: 380px) {
  .site-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .brand-mark img {
    width: 44px;
    height: 44px;
  }

  .wordmark {
    font-size: 24px;
  }

  .glass-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
