:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #101827;
  --muted: #5d6a7c;
  --border: rgba(28, 39, 60, 0.12);
  --accent: #8f5cf7;
  --accent-strong: #6344d7;
  --cyan: #1ebbd7;
  --green: #35c98c;
  --shadow: rgba(18, 24, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(135deg, rgba(30, 187, 215, 0.16), transparent 34rem),
    linear-gradient(315deg, rgba(143, 92, 247, 0.18), transparent 30rem),
    var(--bg);
  color: var(--text);
}

a {
  color: var(--accent-strong);
  text-underline-offset: 4px;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(143, 92, 247, 0.18), rgba(30, 187, 215, 0.08)),
    var(--surface);
  padding: clamp(26px, 5vw, 42px);
  margin-bottom: 20px;
  box-shadow: 0 26px 70px var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(143, 92, 247, 0.28);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    linear-gradient(135deg, var(--accent), var(--cyan));
  color: var(--accent-strong);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(99, 68, 215, 0.15);
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 8vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  font-weight: 580;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card,
.content,
.notice {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 18px 48px rgba(18, 24, 38, 0.08);
}

.card {
  display: block;
  min-height: 190px;
  padding: 24px;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 92, 247, 0.36);
  box-shadow: 0 24px 60px rgba(18, 24, 38, 0.13);
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(143, 92, 247, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card strong {
  display: block;
  margin-bottom: 9px;
  font-size: 24px;
  line-height: 1.12;
}

.card small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.content {
  padding: clamp(24px, 4vw, 34px);
}

.content h2 {
  margin: 30px 0 8px;
  font-size: 23px;
  line-height: 1.2;
}

.content h2:first-child {
  margin-top: 0;
}

.content p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.notice {
  margin-top: 16px;
  padding: 20px 22px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface-strong);
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(18, 24, 38, 0.06);
}

.back-link::before {
  content: "←";
  margin-right: 8px;
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 24px, 960px);
    padding-top: 24px;
  }

  .hero {
    border-radius: 24px;
  }

  .card,
  .content,
  .notice {
    border-radius: 20px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07101d;
    --surface: rgba(16, 25, 42, 0.78);
    --surface-strong: #101a2b;
    --text: #f4f7ff;
    --muted: #a9b4c6;
    --border: rgba(180, 197, 226, 0.14);
    --accent: #b48cff;
    --accent-strong: #a7b2ff;
    --cyan: #35d3ee;
    --green: #48dd9d;
    --shadow: rgba(0, 0, 0, 0.26);
  }

  .brand-mark {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
      linear-gradient(135deg, var(--accent), var(--cyan));
    color: #7547de;
  }
}
