:root {
  --primary: #2859d8;
  --primary-strong: #174ea6;
  --primary-soft: #e7edff;
  --sky: #60a5fa;
  --pink: #ff5f9a;
  --violet: #6c63ff;
  --green: #16a34a;
  --ink: #172033;
  --ink-soft: #34405a;
  --muted: #6d778b;
  --line: #dfe6f2;
  --line-strong: #cbd5e1;
  --page: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafe;
  --shadow: 0 18px 50px rgba(23, 46, 105, 0.16);
  --shadow-soft: 0 10px 28px rgba(23, 46, 105, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #dbeafe 0%, #f4f6fb 36%, #f8fbff 100%);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
  height: 320px;
  content: "";
  background:
    linear-gradient(135deg, rgba(40, 89, 216, 0.2), rgba(96, 165, 250, 0.06) 50%, rgba(255, 95, 154, 0.12));
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(203, 213, 225, 0.58);
  background: rgba(248, 251, 255, 0.88);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(40, 89, 216, 0.26);
}

.brand__text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand__name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__caption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

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

.nav a {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-strong);
  outline: none;
}

.page-shell {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 38px 0 34px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: 44px;
  min-height: 0;
  padding: 44px 0 30px;
}

.eyebrow,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(40, 89, 216, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 7px 11px;
}

.eyebrow::before,
.status-pill::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

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

h1 {
  margin-bottom: 14px;
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin-top: 20px;
  font-size: 4.45rem;
}

.lead {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.14rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--violet));
  color: #fff;
  box-shadow: 0 14px 28px rgba(40, 89, 216, 0.24);
}

.button--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 18px 34px rgba(40, 89, 216, 0.32);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(203, 213, 225, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  padding: 8px 11px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-meta svg,
.resource-icon svg,
.back-link svg,
.info-row svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.phone-preview {
  position: relative;
  justify-self: center;
  width: min(100%, 260px);
  height: 450px;
  overflow: hidden;
  border: 10px solid #15203a;
  border-radius: 36px;
  background: #15203a;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.phone-preview::before {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 20px;
  border-radius: 999px;
  content: "";
  background: #15203a;
  transform: translateX(-50%);
}

.phone-preview img {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
  object-position: top center;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-grid > li {
  display: contents;
}

.resource-card {
  display: grid;
  min-height: 176px;
  align-content: space-between;
  gap: 18px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(23, 46, 105, 0.06);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: rgba(40, 89, 216, 0.46);
  box-shadow: var(--shadow-soft);
  outline: none;
  transform: translateY(-2px);
}

.resource-card.is-disabled {
  color: var(--muted);
}

.resource-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.resource-grid > li:nth-child(2) .resource-icon,
.resource-grid > li:nth-child(5) .resource-icon {
  background: #fff0f6;
  color: #e1306c;
}

.resource-grid > li:nth-child(3) .resource-icon,
.resource-grid > li:nth-child(6) .resource-icon {
  background: #ecfdf3;
  color: var(--green);
}

.resource-arrow {
  color: var(--primary);
}

.resource-card h3 {
  margin-bottom: 7px;
  font-size: 1.06rem;
}

.resource-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.resource-card__status {
  width: fit-content;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.site-footer {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  border-top: 1px solid rgba(203, 213, 225, 0.74);
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 0.86rem;
}

.document-hero {
  display: grid;
  gap: 14px;
  max-width: 840px;
  padding: 24px 0 26px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.document-hero h1 {
  margin: 2px 0 0;
  font-size: 2.65rem;
}

.document-hero .lead {
  margin-bottom: 0;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 22px;
}

.document-panel,
.summary-panel {
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(23, 46, 105, 0.06);
}

.document-panel {
  padding: 26px;
}

.summary-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.document-section + .document-section {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.document-section p,
.document-section li,
.summary-panel p,
.summary-panel li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.72;
}

.document-section p:last-child,
.summary-panel p:last-child {
  margin-bottom: 0;
}

.document-section ul,
.document-section ol,
.summary-panel ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.document-section li + li,
.summary-panel li + li {
  margin-top: 6px;
}

.label-en {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  vertical-align: middle;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--primary-strong);
  font-weight: 800;
}

.info-row a {
  color: inherit;
}

.callout {
  border: 1px solid rgba(40, 89, 216, 0.16);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(231, 237, 255, 0.82), rgba(255, 240, 246, 0.64));
  padding: 16px;
}

.callout h3 {
  margin-bottom: 6px;
}

code {
  border: 1px solid rgba(40, 89, 216, 0.18);
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.summary-panel__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-panel__logo img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.summary-panel h2 {
  font-size: 1.15rem;
}

.summary-panel__subhead {
  margin-top: 20px;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 10px 11px;
  color: var(--ink-soft);
  font-weight: 700;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 340px;
  align-content: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-state__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

  .home-hero {
    min-height: 0;
    gap: 28px;
  }

  .phone-preview {
    max-width: 250px;
    height: 430px;
  }

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

  .summary-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 12px 0;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

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

  .page-shell {
    padding-top: 26px;
  }

  h1,
  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .document-hero h1 {
    font-size: 2.2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .phone-preview {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .document-panel,
  .summary-panel {
    padding: 18px;
  }
}
