:root {
  --ink: #16212f;
  --muted: #637083;
  --line: #dce5ef;
  --blue: #1677e8;
  --paper: #ffffff;
  --mist: #f5f8fc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 85% 3%, rgb(22 119 232 / 10%), transparent 28rem), var(--mist);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 24px;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--blue);
}

.hero {
  padding: clamp(72px, 12vw, 136px) clamp(24px, 7vw, 80px) 72px;
  overflow: hidden;
  border: 1px solid rgb(22 119 232 / 10%);
  border-radius: 32px;
  background: linear-gradient(135deg, rgb(255 255 255 / 98%), rgb(234 244 255 / 92%)), var(--paper);
  box-shadow: 0 28px 70px rgb(42 73 107 / 11%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

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

.meta-row span {
  padding: 7px 13px;
  border: 1px solid #cfe2f7;
  border-radius: 999px;
  background: rgb(255 255 255 / 70%);
  color: #41617f;
  font-size: 0.84rem;
}

.section {
  padding: 86px 0 8px;
}

.section-heading {
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.steps,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article,
.faq-list article,
.contact {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.steps article,
.faq-list article {
  padding: 28px;
}

.steps article > span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.steps p,
.faq-list p,
.contact p {
  margin-bottom: 0;
  color: var(--muted);
}

.faq-list {
  grid-template-columns: repeat(2, 1fr);
}

.portal-hero h1 {
  max-width: 900px;
}

.app-list {
  display: grid;
  gap: 18px;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-card:hover {
  border-color: #b9d5f2;
  box-shadow: 0 16px 38px rgb(42 73 107 / 10%);
  transform: translateY(-2px);
}

.app-card strong,
.app-card small {
  display: block;
}

.app-card strong {
  font-size: 1.15rem;
}

.app-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-card-arrow {
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
}

.contact {
  margin: 88px 0 40px;
  padding: clamp(30px, 6vw, 58px);
  background: var(--ink);
  color: white;
}

.contact p {
  max-width: 720px;
  color: #c8d2dd;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 2px 50px;
  color: var(--muted);
  font-size: 0.86rem;
}

.policy {
  max-width: 820px;
  margin: 60px auto 100px;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 24px 64px rgb(42 73 107 / 8%);
}

.policy header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.policy h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
}

.policy section {
  padding-top: 32px;
}

.policy a {
  color: var(--blue);
}

.back-link {
  display: inline-block;
  margin-top: 36px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.changelog {
  max-width: 900px;
}

.release-card {
  margin-top: 36px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--mist);
}

.release-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.release-date {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.release-header h2 {
  margin-bottom: 0;
}

.release-badge {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid #b9d5f2;
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 750;
}

.release-card ul {
  margin: 20px 0 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

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

.release-note {
  margin: 30px 0 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  main {
    width: min(100% - 22px, 1080px);
  }

  .site-header {
    min-height: 68px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 0.76rem;
  }

  .hero {
    border-radius: 24px;
  }

  .steps,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
  }

  .release-header {
    flex-direction: column;
    gap: 12px;
  }
}
