:root {
  color-scheme: dark;
  --bg: #080b0e;
  --panel: #10161a;
  --panel-raised: #141c20;
  --line: #293238;
  --line-soft: #1c252a;
  --text: #e8edef;
  --muted: #98a6ab;
  --quiet: #69777d;
  --cyan: #65d6cf;
  --cyan-deep: #174a4a;
  --danger: #d88b81;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 72% 4%, rgba(49, 98, 100, 0.16), transparent 38rem),
    linear-gradient(145deg, #0b1013 0%, var(--bg) 48%, #090d10 100%);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 40px, 560px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.masthead,
.wordmark,
.panel-heading,
.browser-panel__heading,
.service-check,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead {
  min-height: 36px;
}

.wordmark {
  gap: 11px;
  text-decoration: none;
}

.wordmark__symbol {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #486064;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.06em;
  transform: rotate(45deg);
}

.wordmark__symbol::first-letter {
  transform: rotate(-45deg);
}

.wordmark__text {
  color: #c6d0d2;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.wordmark__text span {
  display: block;
  margin-top: 3px;
  color: var(--quiet);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.19em;
}

.masthead__tag,
.browser-panel__hint {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.hero {
  padding: 71px 0 29px;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 22px;
  height: 1px;
  display: inline-block;
  margin: 0 9px 3px 0;
  background: var(--cyan);
}

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

h1 {
  margin: 15px 0 13px;
  font-size: clamp(36px, 10vw, 51px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

h1 span {
  color: var(--cyan);
  font-weight: 350;
}

.hero__copy {
  max-width: 380px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.connect-panel,
.browser-panel,
.quick-notes {
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(20, 28, 32, 0.95), rgba(13, 18, 22, 0.96));
}

.connect-panel {
  position: relative;
  padding: 23px 22px 18px;
  overflow: hidden;
}

.connect-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  content: "";
  opacity: 0.75;
}

.panel-heading,
.browser-panel__heading {
  align-items: flex-start;
}

.panel-heading h2,
.browser-panel h2 {
  margin: 4px 0 0;
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.035em;
}

.panel-mark {
  color: #607075;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.connect-panel__copy,
.browser-panel__copy {
  margin: 17px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.connect-button {
  min-height: 54px;
  padding: 0 17px 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #75e1d9;
  border-radius: 2px;
  color: #071011;
  background: var(--cyan);
  box-shadow: 0 7px 24px rgba(52, 186, 178, 0.1);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.connect-button:hover {
  background: #83e5df;
}

.connect-button:active {
  transform: translateY(1px);
}

.connect-button__arrow {
  font-size: 20px;
  font-weight: 400;
}

.service-check {
  min-height: 42px;
  justify-content: flex-start;
  gap: 9px;
  margin-top: 15px;
}

.service-check__indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--quiet);
}

.service-check__text {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.service-check[data-state="ready"] .service-check__indicator {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(101, 214, 207, 0.55);
}

.service-check[data-state="error"] .service-check__indicator {
  background: var(--danger);
}

.service-check[data-state="checking"] .service-check__indicator {
  background: #c6b986;
}

.text-button {
  min-height: 36px;
  margin-left: auto;
  padding: 0 2px 0 8px;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.text-button:disabled {
  color: var(--quiet);
  cursor: wait;
}

.fine-print {
  margin: 3px 0 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.7;
}

.browser-panel {
  margin-top: 12px;
  padding: 20px 22px;
}

.browser-panel__hint {
  color: #b0bdc0;
}

.browser-panel__copy {
  margin: 12px 0 14px;
  font-size: 12px;
}

.outline-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #52636a;
  border-radius: 2px;
  color: var(--text);
  background: #151e22;
  font-size: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.outline-button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.browser-results {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.browser-results__summary {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 550;
}

.browser-results__summary[data-state="warning"] {
  color: #d7c890;
}

.check-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.check-list li {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(41, 50, 56, 0.62);
  color: var(--muted);
  font-size: 11px;
}

.check-result {
  color: var(--cyan);
  white-space: nowrap;
}

.check-result[data-supported="false"] {
  color: var(--danger);
}

.quick-notes {
  margin-top: 12px;
  padding: 18px 22px 16px;
  background: rgba(12, 17, 20, 0.72);
}

.quick-notes ul {
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.quick-notes li + li {
  margin-top: 4px;
}

.quick-notes li::marker {
  color: var(--cyan);
}

.footer {
  gap: 10px;
  margin-top: auto;
  padding-top: 27px;
  color: var(--quiet);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.footer span:last-child {
  letter-spacing: 0.04em;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .page-shell {
    width: min(100% - 64px, 560px);
    padding-top: max(28px, env(safe-area-inset-top));
  }

  .hero {
    padding-top: 83px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(100% - 30px, 560px);
  }

  .connect-panel,
  .browser-panel,
  .quick-notes {
    padding-right: 17px;
    padding-left: 17px;
  }

  .hero {
    padding-top: 57px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
