:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5b6675;
  --line: #dfe6ea;
  --paper: #f7faf8;
  --surface: #ffffff;
  --mint: #54d6a6;
  --blue: #4e7ee8;
  --steel: #d9e9f2;
  --signal: #ffb75f;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(84, 214, 166, 0.15), rgba(247, 250, 248, 0) 34rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.portal-page {
  min-height: 100svh;
  background: #f8fafc;
}

.portal-shell {
  display: grid;
  width: min(100% - 32px, 820px);
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  gap: 22px;
  margin: 0 auto;
  padding: 44px 0;
}

.portal-head img {
  width: min(300px, 76vw);
}

.portal-login {
  margin-top: 2px;
}

.portal-downloads {
  width: 100%;
  margin-top: 4px;
}

.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.portal-toolbar h1 {
  margin: 0;
  color: #111827;
  font-size: 1.28rem;
  line-height: 1;
}

.portal-toolbar a {
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  padding: 7px 11px;
  background: #ffffff;
  color: #44515f;
  font-size: 0.86rem;
  font-weight: 750;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(247, 250, 248, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 172px;
  min-width: 172px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #263342;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  border-radius: 999px;
  padding: 10px 14px;
}

.nav a:hover {
  background: rgba(16, 24, 32, 0.07);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
}

.menu-button {
  gap: 4px;
}

.hero {
  min-height: calc(100svh - 78px);
  display: grid;
  align-items: center;
  padding: 70px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: #325142;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(84, 214, 166, 0.18);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: #3f4b58;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 0.92rem;
  font-weight: 760;
  white-space: nowrap;
}

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

.button.secondary {
  border-color: rgba(16, 24, 32, 0.18);
  background: rgba(255, 255, 255, 0.62);
}

.button.disabled {
  border-color: rgba(16, 24, 32, 0.14);
  background: #edf2f3;
  color: #687584;
  cursor: not-allowed;
}

.button:hover {
  filter: brightness(0.98);
}

.device-stage {
  position: relative;
  min-height: 520px;
}

.device-stage::before {
  position: absolute;
  inset: 8% -8% 4% 8%;
  border-radius: 42px;
  content: "";
  background:
    radial-gradient(circle at 28% 20%, rgba(84, 214, 166, 0.9), transparent 22%),
    radial-gradient(circle at 76% 34%, rgba(78, 126, 232, 0.55), transparent 26%),
    linear-gradient(140deg, #102027, #243948 56%, #edf6f0 56%);
  box-shadow: var(--shadow);
}

.phone {
  position: absolute;
  width: min(265px, 45vw);
  min-width: 210px;
  border: 10px solid #101820;
  border-radius: 34px;
  background: #f7faf8;
  box-shadow: 0 26px 52px rgba(16, 24, 32, 0.28);
}

.phone.main {
  top: 20px;
  left: 58px;
  z-index: 2;
  min-height: 485px;
}

.phone.side {
  right: 16px;
  bottom: 24px;
  z-index: 1;
  min-height: 390px;
  transform: rotate(5deg);
}

.phone-bar {
  width: 68px;
  height: 7px;
  margin: 14px auto 18px;
  border-radius: 999px;
  background: #101820;
  opacity: 0.28;
}

.phone-content {
  padding: 0 18px 20px;
}

.phone-title {
  margin-bottom: 16px;
  font-size: 1.2rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric,
.task,
.release-row {
  border: 1px solid rgba(16, 24, 32, 0.09);
  border-radius: 8px;
  background: white;
}

.metric {
  min-height: 92px;
  padding: 12px;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.metric span,
.release-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.task-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.task {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  font-weight: 800;
}

.task::before,
.release-row::before {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 999px;
  content: "";
  background: var(--mint);
}

.release-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin-bottom: 10px;
  padding: 12px;
}

.release-row strong {
  display: block;
  line-height: 1.2;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: #ffffff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.section-head h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.section-head p {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 650;
}

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

.app-card {
  min-height: 300px;
  border: 1px solid rgba(16, 24, 32, 0.09);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(16, 24, 32, 0.06);
}

.app-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 0;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 0.86rem;
  font-weight: 850;
}

.app-card:nth-child(2) .app-icon {
  background: var(--blue);
}

.app-card:nth-child(3) .app-icon {
  background: #2f7f67;
}

.app-card:nth-child(4) .app-icon {
  background: #7b4b2a;
}

.app-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.app-card p {
  margin-bottom: 20px;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  color: #405060;
  font-size: 0.78rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.note-panel {
  border-left: 4px solid var(--mint);
  padding-left: 22px;
}

.note-panel h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #e6f5ee;
  color: #236b55;
  font-weight: 950;
}

.feature h3 {
  margin-bottom: 4px;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-band {
  padding: 56px 0 72px;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 8px;
  padding: 34px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.cta-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.site-footer {
  border-top: 1px solid rgba(16, 24, 32, 0.1);
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner img {
  width: 138px;
}

.download-page {
  background:
    linear-gradient(180deg, rgba(78, 126, 232, 0.12), rgba(247, 250, 248, 0) 28rem),
    var(--paper);
}

.download-hero {
  padding: 72px 0 38px;
}

.download-hero h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 80px;
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.download-info {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.download-info h2 {
  margin-bottom: 1px;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.2;
}

.download-info p {
  margin-bottom: 0;
  color: #607080;
  font-size: 0.88rem;
  line-height: 1.35;
}

.login-wrap {
  display: grid;
  place-items: start center;
  padding-bottom: 90px;
}

.login-panel {
  display: grid;
  width: min(100%, 372px);
  gap: 13px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.login-panel h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.login-panel p {
  margin-bottom: 2px;
  color: var(--muted);
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: #2c3846;
  font-size: 0.84rem;
  font-weight: 740;
}

.login-panel input {
  min-height: 42px;
  border: 1px solid #d6dee6;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  background: #fbfcfd;
}

.login-panel input:focus {
  outline: 3px solid rgba(17, 185, 129, 0.16);
  border-color: #2f9d7b;
  background: white;
}

.login-error {
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff0e8;
  color: #913f12;
  font-weight: 800;
}

.download-card {
  display: grid;
  min-height: 260px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 8px;
  padding: 24px;
  background: white;
  box-shadow: 0 16px 38px rgba(16, 24, 32, 0.07);
}

.download-card h2 {
  margin-bottom: 8px;
}

.download-card p {
  color: var(--muted);
}

.download-card .button {
  align-self: end;
  width: fit-content;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.download-item .download-meta {
  justify-content: flex-end;
  margin-top: 0;
}

.download-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef3f6;
  color: #556575;
  font-size: 0.74rem;
  font-weight: 740;
}

@media (max-width: 940px) {
  .header-inner,
  .section-inner {
    width: min(100% - 28px, 720px);
  }

  .menu-button {
    display: grid;
  }

  .nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(16, 24, 32, 0.1);
    border-radius: 8px;
    padding: 10px;
    background: white;
    box-shadow: 0 24px 46px rgba(16, 24, 32, 0.16);
  }

  .nav[data-open] {
    display: flex;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid,
  .split,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: 460px;
  }

  .phone.main {
    left: 0;
  }

  .phone.side {
    right: 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }

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

@media (max-width: 620px) {
  .brand {
    width: 150px;
    min-width: 150px;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .device-stage {
    min-height: 400px;
    margin-top: 72px;
  }

  .device-stage::before {
    inset: 9% -18% 0 14%;
  }

  .phone {
    min-width: 175px;
    border-width: 8px;
  }

  .phone.main {
    width: 215px;
    min-height: 398px;
  }

  .phone.side {
    width: 185px;
    min-height: 314px;
  }

  .metric {
    min-height: 78px;
  }

  .metric strong {
    font-size: 1.42rem;
  }

  .phone-title {
    font-size: 1rem;
  }

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

  .portal-shell {
    width: min(100% - 24px, 820px);
    padding: 34px 0;
  }

  .portal-head img {
    width: min(250px, 76vw);
  }

  .portal-toolbar {
    align-items: flex-start;
  }

  .download-item {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .download-item .download-meta {
    justify-content: flex-start;
  }

  .section {
    padding: 64px 0;
  }

  .cta-inner {
    padding: 24px;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}
