:root {
  --bg: #eef5ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --line: rgba(21, 70, 154, 0.14);
  --text: #0d2556;
  --muted: #44628d;
  --brand-blue: #15469a;
  --brand-blue-strong: #0a2e73;
  --brand-blue-soft: #2f69cc;
  --brand-gold: #f6bf26;
  --brand-gold-soft: #ffdd70;
  --brand-cream: #fff8df;
  --danger: #a5162d;
  --shadow: 0 24px 70px rgba(10, 46, 115, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 221, 112, 0.45), transparent 24%),
    radial-gradient(circle at 92% 8%, rgba(47, 105, 204, 0.24), transparent 28%),
    radial-gradient(circle at 85% 72%, rgba(246, 191, 38, 0.18), transparent 22%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  background: transparent;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(10, 46, 115, 0.96), rgba(21, 70, 154, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(10, 46, 115, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: #ffffff;
  font-weight: 800;
}

.brand img {
  flex: 0 0 3.2rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 10px 24px rgba(7, 27, 71, 0.28),
    0 0 0 4px rgba(255, 221, 112, 0.16);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  white-space: nowrap;
}

.nav a.active,
.nav a:hover {
  background: linear-gradient(135deg, var(--brand-gold-soft), var(--brand-gold));
  color: var(--brand-blue-strong);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-0.42rem);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(0.42rem);
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  padding: 1.5rem 0 1rem;
}

main {
  padding-bottom: 2.4rem;
}

.doc-wrap {
  padding: 1.3rem 0 4.4rem;
}

.hero-card,
.feature-card,
.doc-section,
.notice {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 221, 112, 0.22), transparent 25%),
    linear-gradient(135deg, rgba(10, 46, 115, 0.98), rgba(21, 70, 154, 0.92));
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -10% auto;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 221, 112, 0.24), transparent 70%);
}

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

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  object-fit: contain;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 205, 0.95));
  padding: 0.25rem;
  box-shadow:
    inset 0 0 0 1px rgba(21, 70, 154, 0.1),
    0 18px 36px rgba(8, 28, 74, 0.22);
}

.eyebrow {
  display: block;
  margin: 0 0 0.8rem;
  padding: 0;
  color: var(--brand-gold);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--brand-blue-strong);
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-card h1,
.hero-card p,
.hero-card .doc-meta {
  color: #ffffff;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.84);
}

p {
  margin: 0;
}

.doc-section p,
.feature-card p,
.notice p {
  color: var(--muted);
}

.doc-section p + p,
.notice p + p {
  margin-top: 0.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button {
  background: linear-gradient(135deg, var(--brand-gold-soft), var(--brand-gold));
  color: var(--brand-blue-strong);
  box-shadow: 0 14px 28px rgba(246, 191, 38, 0.26);
}

.button-secondary {
  border: 1px solid rgba(21, 70, 154, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-blue);
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section {
  padding: 1.2rem 0 0;
}

.section:last-of-type {
  padding-bottom: 2.2rem;
}

.feature-card,
.doc-section,
.notice {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 226, 0.92));
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.app-card-heading h2 {
  margin-bottom: 0;
}

.app-icon {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 1.25rem;
  object-fit: cover;
  background: #ffffff;
  padding: 0;
  box-shadow:
    0 16px 34px rgba(10, 46, 115, 0.16),
    inset 0 0 0 1px rgba(21, 70, 154, 0.1);
}

.feature-card strong,
.doc-section strong {
  color: var(--text);
}

.feature-card ul,
.doc-section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.feature-card li,
.doc-section li {
  margin: 0.5rem 0;
}

.feature-card li::marker,
.doc-section li::marker {
  color: var(--brand-blue);
}

.deletion-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.deletion-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--brand-blue-strong);
  font-weight: 800;
}

.deletion-form input,
.deletion-form select,
.deletion-form textarea {
  width: 100%;
  border: 1px solid rgba(21, 70, 154, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  padding: 0.85rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.deletion-form textarea {
  resize: vertical;
}

.deletion-form input:focus,
.deletion-form select:focus,
.deletion-form textarea:focus {
  border-color: var(--brand-blue);
  outline: 3px solid rgba(246, 191, 38, 0.28);
}

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

.form-status {
  display: none;
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  font-weight: 700;
}

.form-status.show {
  display: block;
}

.form-status[hidden] {
  display: none;
}

.form-status-success {
  border: 1px solid rgba(21, 128, 61, 0.35);
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.98), rgba(187, 247, 208, 0.82));
  color: #14532d;
}

.form-status-error {
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.98), rgba(254, 202, 202, 0.82));
  color: #991b1b;
}

.checkbox-field {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(21, 70, 154, 0.12);
  border-radius: 18px;
  background: rgba(21, 70, 154, 0.06);
}

.checkbox-field input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  padding: 0;
  accent-color: var(--brand-blue);
  box-shadow: none;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  margin-top: 1.1rem;
  font-size: 0.95rem;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  text-decoration: none;
}

.page-links a.active,
.page-links a:hover {
  border-color: rgba(255, 221, 112, 0.5);
  background: linear-gradient(135deg, var(--brand-gold-soft), var(--brand-gold));
  color: var(--brand-blue-strong);
}

.notice {
  border-left: 4px solid var(--brand-gold);
}

.notice.danger {
  border-left-color: var(--danger);
}

.doc-section + .doc-section,
.notice + .doc-section,
.doc-section + .notice {
  margin-top: 1.1rem;
}

.footer {
  padding: 0 0 calc(1.4rem + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}

.footer-card {
  padding: 0.82rem 1.05rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(10, 46, 115, 0.98), rgba(21, 70, 154, 0.92));
  box-shadow: 0 18px 36px rgba(10, 46, 115, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.footer-card p {
  margin: 0;
}

.footer-card a {
  color: rgba(255, 233, 175, 0.94);
  font-weight: 700;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(21, 70, 154, 0.09);
  color: var(--brand-blue-strong);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.hero-card code {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 1080px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .topbar {
    top: 0;
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    border-radius: 0 0 22px 22px;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem;
    background: rgba(255, 255, 255, 0.1);
    overflow-x: visible;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 0.78rem 0.95rem;
    text-align: left;
  }

  .hero-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
  }

  .hero-logo {
    width: 5.8rem;
    height: 5.8rem;
    border-radius: 1.25rem;
    padding: 0.15rem;
  }

  .feature-card,
  .doc-section,
  .notice {
    padding: 1rem;
    border-radius: 20px;
  }

  main {
    padding-bottom: 3rem;
  }

  .doc-wrap {
    padding-bottom: 3rem;
  }

  .section:last-of-type {
    padding-bottom: 2.8rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .app-card-heading {
    gap: 0.8rem;
  }

  .app-icon {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 1rem;
  }

  .button,
  .button-secondary,
  .page-links a {
    width: 100%;
    min-height: 2.75rem;
  }
}
