:root {
  color-scheme: dark;
  --background: #1a1c1e;
  --background-soft: #22252a;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f7f3ff;
  --muted: #c9c0d8;
  --accent: #8b5cf6;
  --accent-two: #f472b6;
  --success: #34d399;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(244, 114, 182, 0.16), transparent 28rem),
    var(--background);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links,
.actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--accent-two);
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.2);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: 66vh;
  margin: 0 auto;
  padding: 72px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 720px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(139, 92, 246, 0.28);
}

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

.crystal-art {
  position: relative;
  height: 430px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(244, 114, 182, 0.1));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.crystal-art::before {
  content: "";
  position: absolute;
  inset: 54px 74px;
  clip-path: polygon(50% 0, 92% 24%, 74% 84%, 50% 100%, 26% 84%, 8% 24%);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 42%),
    linear-gradient(160deg, rgba(244, 114, 182, 0.72), rgba(139, 92, 246, 0.82) 54%, rgba(52, 211, 153, 0.34));
  filter: drop-shadow(0 28px 48px rgba(139, 92, 246, 0.34));
}

.facet {
  position: absolute;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(32deg);
}

.facet-one {
  width: 2px;
  height: 310px;
  top: 64px;
  left: 50%;
}

.facet-two {
  width: 2px;
  height: 220px;
  top: 104px;
  left: 35%;
}

.facet-three {
  width: 2px;
  height: 220px;
  top: 104px;
  right: 35%;
}

.quick-links {
  width: min(1120px, calc(100% - 32px));
  margin: -34px auto 86px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  min-height: 128px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
}

.link-card:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.card-title,
.card-copy {
  display: block;
}

.card-title {
  margin-bottom: 8px;
  font-size: 1.18rem;
  font-weight: 780;
}

.card-copy {
  color: var(--muted);
}

.page-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 90px;
}

.document {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.document h1 {
  margin-bottom: 26px;
  font-size: clamp(2.4rem, 8vw, 4.75rem);
}

.document h2 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.document p {
  color: var(--muted);
  font-size: 1.02rem;
}

.document a {
  color: #ffffff;
  font-weight: 750;
  text-decoration-color: rgba(244, 114, 182, 0.72);
  text-underline-offset: 4px;
}

.updated {
  margin-bottom: 14px;
  color: var(--success);
  font-size: 0.88rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-document {
  min-height: 52vh;
}

.email-callout {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-radius: 18px;
  background: rgba(244, 114, 182, 0.12);
  overflow-wrap: anywhere;
}

.email-callout a {
  font-size: clamp(1.18rem, 4vw, 1.7rem);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 72px;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .crystal-art {
    height: 310px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links a {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .document {
    border-radius: 18px;
  }
}
