:root {
  color-scheme: light dark;
  --bg: #fbfbf7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.12);
  --text: #161616;
  --muted: #5f5f5f;
  --muted-soft: #8a8a8a;
  --accent: #111111;
  --link-hover: #007ffe;
  --shadow-soft: 0 18px 50px rgba(17, 17, 17, 0.07);
  --shadow-card: 0 26px 60px rgba(17, 17, 17, 0.08);
  --font-sans:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), transparent 36%),
    linear-gradient(180deg, #f5f4ef 0%, #fbfbf7 180px, #fbfbf7 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: transparent;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  transition: color 150ms ease;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(19, 134, 235, 0.34);
  outline-offset: 3px;
}

code {
  padding: 0.12rem 0.38rem;
  border-radius: 0.55rem;
  background: rgba(17, 17, 17, 0.06);
  font-family: "SFMono-Regular", "SF Mono", Consolas, monospace;
  font-size: 0.94em;
}

.page {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.landing-page {
  display: grid;
  gap: 24px;
}

.app-profile {
  display: grid;
  gap: 34px;
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}

.app-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.logo-badge {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-image {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%);
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.app-title-row h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 650;
}

.document h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 600;
}

.lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.25rem, 2vw, 1.48rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.pill:hover {
  box-shadow: 0 14px 26px rgba(17, 17, 17, 0.08);
}

.pill.primary {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.pill.primary:hover,
.pill.primary:focus-visible {
  color: #ffffff;
}

.connect-pill {
  margin-top: 12px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.connect-pill:hover,
.connect-pill:focus-visible {
  background-color: #1b1b1b;
  box-shadow: none;
  transform: none;
}

.connect-pill-label {
  display: inline-block;
  transform-origin: center;
  transition: transform 160ms ease;
}

.connect-pill:hover .connect-pill-label,
.connect-pill:focus-visible .connect-pill-label {
  transform: scale(1.035);
}

.showcase-strip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 18px;
  scroll-padding-inline: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.showcase-card {
  box-sizing: border-box;
  display: grid;
  align-content: start;
  gap: 22px;
  flex: 0 0 560px;
  width: 560px;
  height: 670px;
  padding: 40px 24px 24px;
  border-radius: 36px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: none;
  scroll-snap-align: start;
}

.showcase-card-sky {
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 226, 91, 0.95), transparent 14%),
    radial-gradient(circle at 14% 70%, rgba(26, 201, 255, 0.42), transparent 40%),
    linear-gradient(180deg, #80dcff 0%, #c6efff 100%);
}

.showcase-card-sun {
  background:
    radial-gradient(circle at 14% 6%, rgba(255, 221, 91, 0.98), transparent 18%),
    radial-gradient(circle at 88% 18%, rgba(83, 211, 255, 0.4), transparent 28%),
    linear-gradient(180deg, #8be0ff 0%, #c8f1ff 100%);
}

.showcase-card-cyan {
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 224, 92, 0.82), transparent 12%),
    radial-gradient(circle at 18% 78%, rgba(27, 202, 255, 0.4), transparent 34%),
    linear-gradient(180deg, #82dcff 0%, #c4efff 100%);
}

.showcase-chatline {
  margin: 0;
  justify-self: center;
  width: auto;
  max-width: 95%;
  padding: 20px 28px;
  border-radius: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #181818;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.showcase-stage {
  display: grid;
  gap: 18px;
  padding: 16px 16px 18px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.showcase-stage-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 980 / 460;
  border-radius: 20px;
  border: none;
  background: transparent;
}

.showcase-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.showcase-stage-submitted .showcase-stage-media {
  aspect-ratio: auto;
}

.showcase-stage-submitted .showcase-image {
  object-fit: contain;
}

.showcase-caption {
  margin: 0;
  min-height: 2.9em;
  color: #181818;
  font-size: 0.98rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.widget-shell {
  display: grid;
  gap: 16px;
  min-height: 304px;
  padding: 20px;
  border-radius: 32px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 24px rgba(15, 23, 42, 0.08);
}

.widget-shell-dark {
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.08);
  background: #232323;
}

.widget-shell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.widget-shell-header-submitted {
  align-items: center;
}

.widget-shell h2 {
  margin: 0;
  max-width: 18ch;
  font-size: 1.26rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.widget-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
}

.widget-shell-dark .widget-progress {
  color: rgba(255, 255, 255, 0.74);
}

.widget-nav-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  color: rgba(17, 17, 17, 0.5);
  font: inherit;
}

.widget-nav-button-dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

.widget-options {
  display: grid;
  gap: 12px;
}

.widget-option-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
}

.widget-option-row-selected {
  border-color: rgba(59, 130, 246, 0.16);
  background: #f2f2f0;
}

.widget-option-row-dark {
  color: #f5f5f5;
}

.widget-option-row-selected-dark {
  border-color: rgba(255, 255, 255, 0.06);
  background: #383838;
}

.widget-option-index {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
}

.widget-shell-dark .widget-option-index {
  color: rgba(255, 255, 255, 0.65);
}

.widget-option-copy {
  min-width: 0;
  font-weight: 500;
  font-size: 0.99rem;
  letter-spacing: -0.012em;
}

.widget-option-copy-muted {
  color: var(--muted-soft);
}

.widget-option-copy-muted-dark {
  color: rgba(255, 255, 255, 0.5);
}

.widget-option-detail {
  color: var(--muted-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.widget-shell-dark .widget-option-detail {
  color: rgba(255, 255, 255, 0.56);
}

.widget-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
}

.widget-pill-button {
  min-height: 44px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.widget-pill-button-secondary {
  background: #f1f1ef;
  color: #171717;
}

.widget-pill-button-light {
  background: #ffffff;
  color: #171717;
}

.widget-pill-button-dark-muted {
  background: #3a3a3a;
  color: rgba(255, 255, 255, 0.82);
}

.widget-submitted-copy {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #2f8f4e;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.widget-success-mark {
  font-size: 1.42rem;
  line-height: 1;
}

.page-summary {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1.02rem, 1.36vw, 1.18rem);
  line-height: 1.52;
  letter-spacing: -0.012em;
  color: var(--muted);
}

.page-summary strong {
  color: var(--text);
  font-weight: 600;
}

.page-summary a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.description-section {
  display: grid;
  gap: 40px;
  max-width: 820px;
  margin: 48px auto;
}

.page-description {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.bento-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

@media (max-width: 600px) {
  .bento-card-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(17, 17, 17, 0.04);
  color: var(--text);
  flex-shrink: 0;
}

.bento-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bento-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.bento-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

.cite-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  height: 20px;
  border-radius: 10px;
  background: var(--line);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  vertical-align: middle;
  margin-left: 6px;
  transition: background 150ms ease, color 150ms ease;
}

.cite-link:hover,
.cite-link:focus-visible {
  background: rgba(0, 127, 254, 0.12);
  color: var(--link-hover);
}

.info-section {
  display: grid;
  gap: 18px;
}

.section-heading {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.15rem);
  letter-spacing: -0.045em;
  font-weight: 600;
}

.info-card,
.document {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 0 96px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.info-card {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
}

.info-row:first-child {
  border-top: 0;
}

.info-label {
  color: var(--muted-soft);
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.info-value {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.info-link::after {
  content: "↗";
  color: var(--muted-soft);
  font-size: 0.95rem;
  transition: color 150ms ease;
}

.info-link:hover::after,
.info-link:focus-visible::after {
  color: currentColor;
}

.document {
  border-radius: 0;
}

.document .eyebrow {
  display: none;
}

.document h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(3.3rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.meta {
  margin: 0 0 56px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.document h2 {
  margin: 56px 0 18px;
  color: var(--text);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.document p,
.document li {
  max-width: 76ch;
  color: var(--text);
  font-size: clamp(1.04rem, 1.3vw, 1.17rem);
  line-height: 1.62;
  letter-spacing: -0.022em;
}

.document ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 1.15rem;
}

.document a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.support-box {
  margin-top: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.support-box h2 {
  margin-top: 0;
}

@media (max-width: 860px) {
  .page {
    width: min(calc(100vw - 28px), 1240px);
    padding-top: 20px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .connect-pill {
    margin-top: 0;
    align-self: flex-start;
  }

  .page-summary {
    font-size: 1.02rem;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 22px;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(calc(100vw - 20px), 1240px);
    padding-bottom: 40px;
  }

  .landing-page,
  .app-profile {
    gap: 22px;
  }

  .logo-badge {
    width: 72px;
    height: 72px;
  }

  .logo-image {
    width: 62px;
    height: 65px;
  }

  .showcase-card {
    min-height: 0;
  }

  .showcase-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(360px, 420px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .showcase-card {
    scroll-snap-align: start;
  }

  .showcase-chatline {
    justify-self: stretch;
    max-width: none;
  }

  .showcase-stage {
    border-radius: 28px;
  }

  .widget-shell {
    min-height: 300px;
    padding: 18px;
  }

  .widget-shell-header,
  .widget-shell-header-submitted {
    flex-direction: column;
    align-items: flex-start;
  }

  .widget-shell h2,
  .showcase-chatline {
    max-width: none;
  }

  .widget-option-row {
    padding-inline: 14px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: rgba(28, 28, 28, 0.88);
    --surface-strong: #1b1b1b;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f2f2f2;
    --muted: rgba(255, 255, 255, 0.74);
    --muted-soft: rgba(255, 255, 255, 0.5);
    --accent: #ffffff;
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.34);
    --shadow-card: 0 26px 60px rgba(0, 0, 0, 0.38);
  }

  html {
    background:
      radial-gradient(circle at top center, rgba(255, 255, 255, 0.06), transparent 36%),
      linear-gradient(180deg, #161616 0%, #111111 180px, #111111 100%);
  }

  .showcase-chatline {
    background: rgba(30, 30, 30, 0.85);
    color: #f2f2f2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .showcase-stage {
    background: rgba(25, 25, 25, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .showcase-caption {
    color: rgba(255, 255, 255, 0.88);
  }

  .widget-shell {
    background: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.22),
      0 12px 24px rgba(0, 0, 0, 0.34);
  }

  .widget-option-row {
    color: #f5f5f5;
  }

  .widget-option-row-selected {
    border-color: rgba(255, 255, 255, 0.06);
    background: #383838;
  }

  .widget-option-index,
  .widget-option-detail,
  .widget-progress {
    color: rgba(255, 255, 255, 0.58);
  }

  .widget-option-copy-muted {
    color: rgba(255, 255, 255, 0.5);
  }

  .widget-nav-button {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
  }

  .widget-pill-button-secondary {
    background: #3a3a3a;
    color: rgba(255, 255, 255, 0.84);
  }

  .widget-pill-button-light {
    background: #ffffff;
    color: #171717;
  }

  .info-link::after {
    color: rgba(255, 255, 255, 0.5);
  }

  code {
    background: rgba(255, 255, 255, 0.08);
  }

  .bento-card {
    background: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .bento-icon {
    background: rgba(255, 255, 255, 0.08);
  }

  .cite-link {
    background: rgba(255, 255, 255, 0.12);
  }

  .support-box {
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 760px) {
  .landing-page {
    overflow-x: hidden;
  }

  .app-profile {
    gap: 34px;
  }

  .app-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .logo-badge {
    width: 96px;
    height: 96px;
  }

  .app-title-row h1 {
    font-size: clamp(3.15rem, 12vw, 4.25rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
  }

  .lead {
    margin-top: 14px;
    font-size: clamp(1.45rem, 6vw, 1.95rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
  }

  .connect-pill {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 186px;
    min-height: 84px;
    padding-inline: 40px;
    border-radius: 999px;
    font-size: 1.35rem;
  }

  .showcase-strip {
    grid-template-columns: none;
    gap: 14px;
    width: 100%;
    margin-inline: 0;
    padding: 4px 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: auto;
  }

  .showcase-card {
    flex: 0 0 min(100%, calc(100vw - 28px));
    width: min(100%, calc(100vw - 28px));
    height: auto;
    min-height: clamp(520px, 150vw, 650px);
    gap: 18px;
    padding: clamp(22px, 6vw, 30px);
    border-radius: 30px;
    scroll-snap-align: start;
  }

  .showcase-chatline {
    justify-self: center;
    width: min(100%, 21rem);
    max-width: none;
    padding: 14px 18px;
    border-radius: 22px;
    font-size: clamp(1.08rem, 5vw, 1.32rem);
    line-height: 1.2;
  }

  .showcase-stage {
    gap: 16px;
    padding: clamp(14px, 4.5vw, 20px);
    border-radius: 26px;
  }

  .showcase-stage-media {
    border-radius: 20px;
  }

  .showcase-caption {
    font-size: clamp(1.08rem, 5vw, 1.28rem);
    line-height: 1.33;
    letter-spacing: -0.04em;
  }

  .page-summary,
  .info-section {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .page {
    padding-inline: 10px;
  }

  .logo-badge,
  .logo-image {
    width: 80px;
    height: 80px;
  }

  .connect-pill {
    min-height: 84px;
  }

  .showcase-strip {
    gap: 12px;
  }

  .showcase-card {
    flex-basis: min(100%, calc(100vw - 40px));
    width: min(100%, calc(100vw - 40px));
    min-height: clamp(500px, 144vw, 620px);
  }
}
