:root {
  --bg: #eefbf4;
  --paper: rgba(251, 255, 251, 0.92);
  --card: rgba(255, 255, 255, 0.84);
  --card-strong: #0b707f;
  --line: rgba(39, 31, 23, 0.1);
  --line-strong: rgba(19, 184, 178, 0.24);
  --text: #102822;
  --muted: #5f756f;
  --accent: #13b8b2;
  --accent-strong: #087f8c;
  --accent-soft: rgba(19, 184, 178, 0.09);
  --accent-soft-strong: rgba(19, 184, 178, 0.16);
  --warm-soft: rgba(117, 216, 255, 0.12);
  --card-text: rgba(255, 255, 255, 0.94);
  --card-muted: rgba(255, 255, 255, 0.76);
  --shadow: 0 24px 56px rgba(39, 31, 23, 0.08);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(19, 184, 178, 0.12), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(117, 216, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #fbfffb 0%, var(--bg) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 12% 12%, rgba(19, 184, 178, 0.08), transparent 20%),
    radial-gradient(circle at 88% 76%, rgba(117, 216, 255, 0.08), transparent 18%);
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 24%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(19, 184, 178, 0.22);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.header {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 20px;
}

.header__inner,
.hero,
.panel,
.platform,
.footer {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #2c917b);
  box-shadow: 0 12px 24px rgba(23, 107, 90, 0.18);
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__text strong,
.brand__text span {
  display: block;
}

.brand__text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__text span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.nav,
.header__actions,
.hero__actions,
.panel__actions,
.footer__actions,
.handoff-actions,
.platform__actions,
.platform-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a,
.button,
.chip,
.badge,
.section-tag,
.hero__eyebrow,
.tiny-tag,
.platform-link,
.platform__os,
.platform__client {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
}

.nav a,
.button,
.platform-link {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a,
.button--ghost,
.platform-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.button--ghost:hover,
.platform-link:hover,
.platform:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 107, 90, 0.16);
}

.button--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button:disabled,
.button[disabled] {
  cursor: default;
  opacity: 0.65;
  transform: none;
}

.chip,
.badge,
.section-tag,
.hero__eyebrow,
.tiny-tag,
.platform__os,
.platform__client {
  border: 1px solid transparent;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  background: rgba(183, 139, 82, 0.12);
  color: #8d5a2f;
}

main {
  display: grid;
  gap: 28px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 107, 90, 0.12) 0%, transparent 70%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 24px;
  padding: 36px;
}

.hero__copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.06;
}

.hero__lead,
.panel__copy,
.section__copy,
.footer p,
.platform__copy,
.form-note,
.status,
.hero__note {
  line-height: 1.7;
}

.hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 20px;
  color: var(--muted);
}

.hero__note,
.status,
.form-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.hero__note--success,
.status--success,
.form-note--success {
  border-color: rgba(23, 107, 90, 0.18);
  background: rgba(23, 107, 90, 0.08);
  color: var(--accent-strong);
}

.hero__note--warning,
.status--warning {
  border-color: rgba(183, 139, 82, 0.22);
  background: rgba(183, 139, 82, 0.1);
  color: #8d5a2f;
}

.hero__sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 59, 50, 0.98), rgba(14, 50, 42, 0.96));
  color: var(--card-text);
}

.hero__sidebar .section-tag,
.hero__sidebar .chip,
.hero__sidebar .badge,
.panel--accent .section-tag,
.panel--accent .chip,
.panel--accent .badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero__sidebar .panel__copy,
.hero__sidebar .panel__list,
.panel--accent .panel__copy,
.panel--accent .panel__list,
.panel--accent .form-note,
.panel--accent .status {
  color: var(--card-muted);
}

.hero__value,
.page-value {
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

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

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section__head > div {
  display: grid;
  gap: 10px;
}

.section__copy,
.panel__copy,
.footer p,
.platform__copy {
  margin: 0;
  color: var(--muted);
}

.panel-grid,
.platform-grid {
  display: grid;
  gap: 18px;
}

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

.panel-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.panel,
.platform,
.footer {
  border-radius: var(--radius-xl);
}

.panel,
.platform {
  padding: 28px;
}

.panel--accent {
  background: linear-gradient(180deg, rgba(18, 59, 50, 0.98), rgba(14, 50, 42, 0.96));
  color: var(--card-text);
}

.panel__head,
.platform__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel__head > div {
  display: grid;
  gap: 10px;
}

.panel__payload,
.handoff-input,
.install-shell {
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 236, 0.9);
}

.panel__payload {
  min-height: 108px;
  padding: 18px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.panel--accent .panel__payload {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.panel__actions {
  margin-top: 20px;
}

.panel__list,
.platform__facts {
  margin: 18px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.platform__title {
  margin-top: 8px;
}

.platform__copy {
  margin-top: 16px;
}

.platform--current {
  border-color: var(--line-strong);
  box-shadow: 0 28px 64px rgba(23, 107, 90, 0.12);
}

.platform-link {
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
}

.platform-link--current {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.handoff-field {
  margin-top: 18px;
}

.handoff-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.handoff-input {
  width: 100%;
  min-height: 118px;
  padding: 16px;
  resize: vertical;
  color: var(--text);
  line-height: 1.6;
}

.handoff-qr {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.handoff-qr__head {
  display: grid;
  gap: 4px;
}

.handoff-qr__head strong {
  font-size: 14px;
  font-weight: 700;
}

.handoff-qr__head span {
  font-size: 13px;
  opacity: 0.72;
  line-height: 1.5;
}

.handoff-qr__body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
}

.handoff-qr__canvas-wrap {
  width: 180px;
  height: 180px;
  padding: 10px;
  border-radius: 12px;
  background: #fbf8f1;
  display: grid;
  place-items: center;
}

.handoff-qr__canvas-wrap canvas,
.handoff-qr__canvas-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.handoff-qr__meta {
  display: grid;
  gap: 8px;
  align-content: center;
}

.handoff-qr__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

.handoff-qr__warn {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(19, 184, 178, 0.12);
  color: #f4b16f;
  font-size: 12.5px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .handoff-qr__body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

.install-shell {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.panel--accent .button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.panel--accent .button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
  padding: 24px 26px;
}

.footer__meta {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.footer__note {
  color: var(--muted);
}

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

.footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer__links a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.92);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 1040px) {
  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__layout,
  .panel-grid,
  .panel-grid--triple,
  .platform-grid,
  .section__head,
  .footer {
    grid-template-columns: 1fr;
  }

  .section__head,
  .footer {
    display: grid;
    align-items: start;
  }

  .header {
    position: static;
  }

  .header__inner {
    display: grid;
    justify-content: stretch;
  }

  .hero__layout {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 16px), var(--max));
    padding: 10px 0 44px;
  }

  .header {
    top: 8px;
    margin-bottom: 12px;
  }

  .header__inner,
  .hero__layout,
  .panel,
  .platform,
  .footer,
  .hero__sidebar {
    padding: 18px;
    border-radius: 22px;
  }

  .header__inner {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand__text span {
    display: none;
  }

  .nav {
    width: 100%;
    gap: 8px;
  }

  .nav a {
    flex: 1 1 auto;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero__layout {
    gap: 18px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(26px, 8vw, 34px);
  }

  h3 {
    font-size: clamp(22px, 7vw, 28px);
  }

  .hero__actions .button,
  .panel__actions .button,
  .footer__actions .button,
  .handoff-actions .button,
  .handoff-actions a,
  .platform__actions .button,
  .platform__actions a,
  .header__actions .button,
  .nav a {
    width: 100%;
  }

  .button {
    min-height: 46px;
    padding: 0 16px;
  }

  .hero__lead {
    font-size: 16px;
    line-height: 1.65;
  }

  .brand__text span {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(calc(100% - 12px), var(--max));
    padding-top: 8px;
  }

  .header__inner,
  .hero__layout,
  .panel,
  .platform,
  .footer,
  .hero__sidebar {
    padding: 16px;
    border-radius: 20px;
  }

  .brand__text strong {
    font-size: 13px;
  }

  .nav a {
    min-height: 36px;
    font-size: 12.5px;
  }
}
