/* Standalone site styles (HTML/CSS only) */

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --bg: #f6f7fb;
  --bg-2: #eef2f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.11);
  --border-soft: rgba(15, 23, 42, 0.07);
  --text: #0b1526;
  --muted: #425268;
  --muted-2: #667892;
  --accent-a: #0a4f73; /* deep blue-cyan */
  --accent-b: #0f7894; /* aqua */
  --accent-c: #6ed4e3; /* light aqua */
  --accent: var(--accent-b);
  --accent-2: var(--accent-a);
  --shadow: 0 24px 60px -46px rgba(15, 23, 42, 0.34);
  --shadow-soft: 0 14px 36px -30px rgba(15, 23, 42, 0.22);
  --radius: 18px;
  --radius-sm: 999px;
  --shell: min(1120px, calc(100% - 2.4rem));
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  line-height: 1.62;
  background:
    radial-gradient(900px 520px at 55% 32%, rgba(110, 212, 227, 0.13) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(760px 520px at 18% 72%, rgba(10, 79, 115, 0.1) 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(circle at 100% 0%, #fbfcff 0%, var(--bg) 36%),
    radial-gradient(circle at 0% 100%, #f2f6ff 0%, var(--bg) 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-2) 52%, var(--bg) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 54% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 44%),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.018), rgba(15, 23, 42, 0.018) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.014), rgba(15, 23, 42, 0.014) 1px, transparent 1px, transparent 28px);
  opacity: 0.6;
  mix-blend-mode: multiply;
  z-index: -1;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(10, 79, 115, 0.24);
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration-color: rgba(110, 212, 227, 0.42);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.banner {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(740px 220px at 65% 40%, rgba(110, 212, 227, 0.16) 0%, rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.78);
}

.banner__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}

.brand {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  font-size: 1.32rem;
  color: inherit;
  text-decoration: none;
}

.icon-pill {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
}

.icon-pill svg {
  width: 18px;
  height: 18px;
  fill: #0f172a;
}

.icon-pill:hover,
.icon-pill:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

main {
  padding: 0 0 1.2rem;
}

.hero {
  padding: 2.6rem 0 1.6rem;
}

.hero__copy {
  max-width: 70rem;
}

.kicker {
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin: 0 0 0.7rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  max-width: 44rem;
}

.hero p:not(.kicker) {
  max-width: 110ch;
  color: var(--muted);
  margin: 0.95rem 0 0;
  font-size: 1rem;
}

.hero__summary {
  max-width: 110ch;
  text-wrap: balance;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  padding: 0.6rem 0 1.4rem;
}

.card {
  position: relative;
  z-index: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.12);
  background:
    radial-gradient(120% 90% at 16% 6%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.9) 0%, var(--surface) 58%, rgba(255, 255, 255, 0.74) 100%);
  box-shadow: var(--shadow);
  padding: 0.9rem 0.9rem 1.05rem;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(110, 212, 227, 0.12) 0%, rgba(110, 212, 227, 0) 52%),
    radial-gradient(circle at 70% 30%, rgba(10, 79, 115, 0.08) 0%, rgba(10, 79, 115, 0) 58%);
  opacity: 0.9;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.78) 46%, rgba(255, 255, 255, 0) 58%);
  background-size: 240% 240%;
  background-position: -160% 0;
  opacity: 0.48;
  mix-blend-mode: screen;
  transition: background-position 650ms ease, opacity 220ms ease;
}

.card:hover::after,
.card:focus-within::after {
  background-position: 160% 0;
  opacity: 0.68;
}

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

.card__top {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.75rem;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-c) 0%, var(--accent-b) 42%, var(--accent-a) 100%);
}

.card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #18273c;
}

.card__body {
  padding: 1rem 0.75rem 0.55rem;
  display: grid;
  gap: 0.8rem;
  color: #2f425d;
}

.card__body p {
  margin: 0;
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.frame {
  margin: 0.1rem 0 0;
}

.frame img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(245, 248, 252, 0.8);
  max-height: 260px;
  object-fit: contain;
  transition: transform 220ms ease, box-shadow 220ms ease;
  transform-origin: center;
}

.frame:hover img,
.card:focus-within .frame img {
  transform: scale(1.14);
  box-shadow: 0 28px 44px -32px rgba(10, 79, 115, 0.56);
}

.frame--engine img {
  max-height: 340px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.74rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);
  background-size: 150% 150%;
  background-position: 0% 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.83rem;
  text-decoration: none;
  box-shadow: 0 14px 28px -24px rgba(10, 79, 115, 0.58);
  transition: transform 150ms ease, background-position 520ms ease, box-shadow 150ms ease;
  border: 1px solid rgba(10, 79, 115, 0.28);
  cursor: pointer;
  line-height: 1.2;
  font-family: inherit;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow: 0 18px 36px -28px rgba(10, 79, 115, 0.62);
}

.btn:focus-visible {
  outline: 3px solid rgba(110, 212, 227, 0.42);
  outline-offset: 2px;
}

.btn--muted {
  background: rgba(107, 114, 128, 0.9);
  border-color: rgba(67, 84, 110, 0.18);
  box-shadow: 0 12px 22px -18px rgba(67, 84, 110, 0.22);
}

.note {
  color: var(--muted-2);
  font-style: italic;
  font-size: 0.95rem;
}

.notice {
  padding: 0.1rem 0 1rem;
  color: #2f425d;
  position: relative;
}

.notice__title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #18273c;
}

.notice p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.notice p + p {
  margin-top: 0.4rem;
}

.notice__learn {
  position: relative;
  margin-top: 0;
  display: block;
}

.notice__inline {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

.overlay-host {
  position: relative;
  isolation: isolate;
}

.overlay-host.is-open,
.overlay-host:hover,
.overlay-host:focus-within {
  z-index: 200000;
}

.inline-link {
  color: var(--accent-2);
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(10, 79, 115, 0.24);
  text-underline-offset: 0.15em;
}

.inline-link:hover,
.inline-link:focus-visible {
  text-decoration-color: rgba(110, 212, 227, 0.42);
}

.notice__overlay {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  width: min(44rem, calc(100vw - 3.2rem));
  max-height: min(72vh, 36rem);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background:
    radial-gradient(180% 140% at 10% 0%, rgba(110, 212, 227, 0.1) 0%, rgba(255, 255, 255, 0) 50%),
    rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 0.95rem 1rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 300000;
}

.notice__overlay--up {
  top: auto;
  bottom: calc(100% + 0.65rem);
  transform: translateY(-8px);
}

.overlay-host.is-open .notice__overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.notice__overlay p {
  margin: 0 0 0.55rem;
  color: #203149;
  font-size: 0.9rem;
  text-wrap: balance;
}

.notice__overlay h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: 0.9rem;
  color: #18273c;
}

.notice__overlay ul {
  margin: 0;
  padding-left: 1.08rem;
  color: #2b3f5b;
  font-size: 0.88rem;
  display: grid;
  gap: 0.34rem;
}

.notice__overlay code {
  font-size: 0.84rem;
}

@media (hover: hover) and (pointer: fine) {
  .overlay-host:hover .notice__overlay,
  .overlay-host:focus-within .notice__overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.footer {
  margin-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(740px 220px at 35% 30%, rgba(10, 79, 115, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
    rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(10px);
}

.footer__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted-2);
  font-size: 0.95rem;
}

.footer__policy {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.footer__policy .notice__overlay {
  right: 0;
  left: auto;
  width: min(46rem, calc(100vw - 3rem));
}

@media (max-width: 820px) {
  .banner__inner {
    flex-wrap: wrap;
  }

  .notice__overlay {
    width: min(44rem, calc(100vw - 2.8rem));
    max-height: min(70vh, 32rem);
  }

  .footer__policy .notice__overlay {
    left: 0;
    right: auto;
    width: min(44rem, calc(100vw - 2.8rem));
  }
}
