:root {
  color-scheme: light;
  --ink: #111827;
  --soft-ink: #243244;
  --muted: #64748b;
  --line: #d8e0ea;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #1d4ed8;
  --blue-deep: #123a85;
  --green: #10966f;
  --mint: #dff7ee;
  --amber: #c97a14;
  --rose: #b43f5a;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 74px);
  background: rgba(244, 247, 251, 0.88);
  border-bottom: 1px solid rgba(216, 224, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.nav-github,
.button,
.download-card,
.footer-brand {
  display: inline-flex;
  align-items: center;
}

.brand,
.footer-brand {
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 850;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
}

.nav-actions {
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 720;
}

.nav-actions a:hover {
  color: var(--ink);
}

.nav-github {
  gap: 7px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 0.8fr);
  align-items: start;
  gap: clamp(34px, 6vw, 84px);
  min-height: min(840px, calc(100vh - 122px));
  padding: clamp(28px, 3.6vw, 48px) clamp(20px, 5vw, 74px) clamp(38px, 5vw, 62px);
  overflow: visible;
  background:
    linear-gradient(110deg, rgba(29, 78, 216, 0.12), rgba(255, 255, 255, 0) 42%),
    linear-gradient(250deg, rgba(16, 150, 111, 0.18), rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 52% 80%, rgba(201, 122, 20, 0.09), transparent 28%),
    var(--paper);
}

.hero::after {
  display: none;
}

.hero-copy,
.network-stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  transform: translateY(0);
  padding-top: clamp(14px, 3vw, 34px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 5.7vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0;
  color: var(--soft-ink);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  font: inherit;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(29, 78, 216, 0.24);
}

.button.primary:hover {
  background: var(--blue-deep);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.dark {
  color: var(--white);
  background: var(--ink);
}

.download-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: grid;
  width: min(292px, calc(100vw - 40px));
  padding: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  backdrop-filter: blur(14px);
}

.download-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.download-menu a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border-radius: 8px;
}

.download-menu a:hover {
  background: #eef5fb;
}

.download-menu svg {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--blue);
  background: #d8eaf7;
  border-radius: 8px;
}

.download-menu strong,
.download-menu small {
  display: block;
}

.download-menu small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 224, 234, 0.86);
  border-radius: 8px;
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--ink);
}

.network-stage {
  min-height: 540px;
}

.app-preview {
  position: absolute;
  inset: 24px 24px auto auto;
  width: min(100%, 450px);
  padding: 14px;
  color: var(--ink);
  background: #d4e1e8;
  border: 1px solid #b8cbd5;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-appbar,
.preview-brand,
.preview-actions,
.mini-section-title,
.device-card,
.file-row,
.send-preview-button {
  display: flex;
  align-items: center;
}

.preview-appbar {
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 12px;
}

.preview-brand {
  gap: 9px;
}

.preview-brand img {
  border-radius: 8px;
}

.preview-actions {
  gap: 8px;
}

.preview-actions span,
.mini-section-title > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #263946;
  background: #c7dbe8;
  border-radius: 8px;
}

.lan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #22323c;
  background: linear-gradient(135deg, #c5ddf0, #d3e2eb);
  border: 1px solid rgba(19, 137, 216, 0.15);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(19, 137, 216, 0.12);
}

.lan-card strong,
.lan-card small,
.app-action-card strong,
.app-action-card small,
.device-card strong,
.device-card small,
.file-row strong,
.file-row small {
  display: block;
}

.lan-card small,
.app-action-card small,
.device-card small,
.file-row small {
  color: #5b6d78;
}

.lan-card > svg {
  width: 46px;
  height: 46px;
  color: #22323c;
}

.app-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.app-action-card {
  display: grid;
  gap: 8px;
  min-height: 108px;
  padding: 12px;
  background: #e2ebf0;
  border: 1px solid #bbCDD6;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(19, 137, 216, 0.09);
}

.app-action-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1389d8;
  background: #c5ddf0;
  border-radius: 8px;
}

.app-action-card strong {
  font-size: 0.96rem;
}

.app-action-card small {
  font-size: 0.78rem;
}

.mini-section-title {
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: #22323c;
  font-size: 0.96rem;
}

.device-card,
.file-row {
  gap: 12px;
  padding: 11px;
  background: #e2ebf0;
  border: 1px solid #bbCDD6;
  border-radius: 8px;
}

.device-card.selected {
  background: #edf7ff;
  border-color: rgba(19, 137, 216, 0.42);
}

.device-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #1389d8;
  background: #c5ddf0;
  border-radius: 999px;
}

.device-card > div,
.file-row > div {
  min-width: 0;
}

.device-card > svg {
  margin-left: auto;
  color: #1389d8;
}

.send-preview-button {
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin: 12px 0 10px;
  color: #22323c;
  background: linear-gradient(135deg, rgba(197, 221, 240, 0.88), rgba(19, 137, 216, 0.18));
  border: 1px solid rgba(19, 137, 216, 0.22);
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-row > svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: #1389d8;
}

.file-row strong,
.device-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 112px;
  height: 112px;
  padding: 14px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.2);
  font-weight: 850;
}

.node svg {
  width: 34px;
  height: 34px;
}

.desktop-node {
  top: 28px;
  left: 32px;
  background: var(--blue-deep);
}

.phone-node {
  right: 12px;
  bottom: 34px;
  background: var(--green);
}

.laptop-node {
  left: 44px;
  bottom: 70px;
  background: #3b2f63;
}

.signal-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0), rgba(29, 78, 216, 0.8), rgba(16, 150, 111, 0));
  transform-origin: left center;
}

.line-a {
  top: 150px;
  left: 120px;
  width: 270px;
  transform: rotate(18deg);
}

.line-b {
  right: 75px;
  bottom: 145px;
  width: 250px;
  transform: rotate(-42deg);
}

.line-c {
  left: 140px;
  bottom: 160px;
  width: 230px;
  transform: rotate(-14deg);
}

.downloads,
.workflow,
.details {
  padding: clamp(58px, 8vw, 98px) clamp(20px, 5vw, 74px);
}

.downloads {
  background: var(--white);
}

.release-panel,
.recommended-card,
.details {
  display: grid;
  gap: 24px;
}

.release-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 18px;
}

.release-panel p:not(.eyebrow),
.section-heading p,
.details-copy p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.recommended-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  margin: 24px 0 18px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(120deg, var(--ink), #243244);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.22);
}

.recommended-card p {
  margin: 5px 0 0;
  color: #d6dfeb;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.download-grid,
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  gap: 14px;
  min-height: 132px;
  padding: 18px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.download-card.is-detected {
  border-color: rgba(16, 150, 111, 0.65);
  box-shadow: inset 0 0 0 1px rgba(16, 150, 111, 0.22);
}

.platform-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--white);
  background: var(--blue);
}

.platform-icon.android {
  background: var(--green);
}

.platform-icon.linux {
  background: var(--amber);
}

.platform-icon.macos {
  background: var(--rose);
}

.download-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.download-copy strong {
  font-size: 1.08rem;
}

.download-copy small {
  color: var(--muted);
}

.download-card em {
  margin-left: auto;
  color: var(--amber);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.workflow {
  background:
    linear-gradient(180deg, #eef3f8, #f8fafc);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

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

.workflow-grid article {
  min-height: 250px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-grid span {
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 900;
}

.workflow-grid svg {
  display: block;
  width: 38px;
  height: 38px;
  margin: 28px 0 20px;
  color: var(--blue);
}

.workflow-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.details {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  align-items: start;
  background: var(--white);
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-list svg {
  grid-row: span 2;
  color: var(--green);
}

.detail-list span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 74px);
  color: #dce6f2;
  background: var(--ink);
}

.site-footer > span {
  margin-right: auto;
  color: #aebbd0;
}

.site-footer a:hover {
  color: var(--white);
}

svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.2;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .network-stage {
    min-height: 520px;
    max-width: 680px;
  }

  .app-preview {
    right: 24px;
  }

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

@media (max-width: 860px) {
  .site-header,
  .release-panel,
  .recommended-card,
  .details {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .recommended-card {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy {
    transform: none;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

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

  .network-stage {
    min-height: 560px;
  }

  .app-preview {
    inset: 112px 0 auto;
    width: 100%;
  }

  .desktop-node {
    left: 0;
  }

  .phone-node {
    right: 0;
  }

  .laptop-node {
    left: 0;
    bottom: 24px;
  }

  .line-a,
  .line-b,
  .line-c {
    opacity: 0.65;
  }
}

@media (max-width: 440px) {
  .button,
  .download-card {
    width: 100%;
  }

  .download-card em {
    white-space: normal;
    text-align: right;
  }

  .node {
    width: 98px;
    height: 98px;
    font-size: 0.86rem;
  }
}
