:root {
  --bg: #07060c;
  --bg-elevated: #100e18;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.08);
  --cyan: #7ee8f2;
  --cyan-deep: #2dd4e0;
  --magenta: #e879f9;
  --violet: #c084fc;
  --lime: #c6f06a;
  --text: #f4f1fb;
  --muted: #a8a3b8;
  --danger: #fb7185;
  --ok: #4ade80;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header-h: 76px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Outfit", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(232, 121, 249, 0.18), transparent 55%),
    radial-gradient(800px 480px at 92% 0%, rgba(126, 232, 242, 0.16), transparent 50%),
    radial-gradient(720px 420px at 50% 110%, rgba(198, 240, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #0b0912 0%, #07060c 40%, #05040a 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  color: #b7f6fb;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 6, 12, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page-wrap,
.site-footer .footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(126, 232, 242, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-strong);
}

.hero {
  padding: 56px 0 28px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(126, 232, 242, 0.08), rgba(232, 121, 249, 0.06)),
    var(--surface);
  border-radius: 28px;
  padding: 42px 48px;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 280px;
  height: 280px;
  background: url("../assets/logo.png") center / cover no-repeat;
  opacity: 0.18;
  filter: saturate(1.2);
  pointer-events: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.hero h1 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(7, 6, 12, 0.45);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 12px 0 72px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  padding: 7px 10px;
  border-radius: 10px;
  line-height: 1.4;
}

.toc a:hover,
.toc a.active {
  color: var(--text);
  background: var(--surface-strong);
}

.article {
  min-width: 0;
}

.article section {
  scroll-margin-top: calc(var(--header-h) + 20px);
  margin-bottom: 28px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.article h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 600;
}

.article h3 {
  margin: 22px 0 10px;
  font-size: 1.08rem;
  color: var(--cyan);
}

.article h4 {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  color: var(--violet);
}

.article p,
.article li {
  color: #ddd8ea;
}

.article p {
  margin: 0 0 14px;
}

.article ul,
.article ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.article li + li {
  margin-top: 8px;
}

.legal-box {
  margin: 16px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  background: rgba(126, 232, 242, 0.06);
  border-radius: 0 14px 14px 0;
  color: #ece8f6;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.mini-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(7, 6, 12, 0.35);
  border: 1px solid var(--line);
}

.mini-card h4 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.delete-shell {
  width: min(760px, calc(100% - 40px));
  margin: 36px auto 80px;
}

.delete-card,
.notice-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.delete-card {
  padding: 36px 36px 32px;
}

.notice-card {
  padding: 20px 22px;
  margin-bottom: 22px;
}

.notice-card h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.warn-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.warn-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: #ddd8ea;
}

.warn-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  background: rgba(7, 6, 12, 0.55);
  color: var(--text);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
  outline: none;
}

.form-group input:focus {
  border-color: rgba(126, 232, 242, 0.7);
  box-shadow: 0 0 0 4px rgba(126, 232, 242, 0.12);
}

.field-error {
  min-height: 20px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.82rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  height: 52px;
  border-radius: 16px;
  color: #081014;
  font: 600 1rem/1 "Outfit", sans-serif;
  background: linear-gradient(135deg, var(--cyan) 0%, #9ef0c2 48%, var(--lime) 100%);
  box-shadow: 0 10px 30px rgba(126, 232, 242, 0.22);
}

.btn:hover {
  filter: brightness(1.05);
}

.success-banner {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.success-banner.show {
  display: block;
}

.page-delete .hero-panel {
  text-align: left;
}

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

  .toc {
    position: static;
  }

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

  .hero-panel,
  .article section,
  .delete-card {
    padding: 24px 20px;
  }

  .nav-links a {
    padding: 8px 10px;
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page-wrap,
  .site-footer .footer-inner,
  .delete-shell {
    width: min(var(--max), calc(100% - 24px));
  }

  .brand-copy span {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }
}
