html {
  scroll-behavior: smooth;
}

.desktop-page {
  background: #ffffff;
  color: var(--ink);
}

.desktop-shell {
  width: min(1180px, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.desktop-page section[id] {
  scroll-margin-top: calc(var(--nav-h) + 58px);
}

/* local nav */
.desktop-subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 80;
  height: 52px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.desktop-subnav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - var(--gutter) * 2));
  height: 52px;
  margin: 0 auto;
}

.desktop-subnav__name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.desktop-subnav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.desktop-subnav__links a {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1;
  transition: color 0.2s ease;
}

.desktop-subnav__links a:hover,
.desktop-subnav__links a.is-active {
  color: var(--ink);
}

.desktop-subnav__cta {
  min-height: 28px;
  margin-left: 4px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* buttons */
.desktop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.desktop-btn:hover {
  transform: translateY(-1px);
}

.desktop-btn svg {
  width: 14px;
  height: 14px;
}

.desktop-btn--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.desktop-btn--dark:hover {
  border-color: #000000;
  background: #000000;
}

.desktop-btn--ghost {
  border-color: rgba(0, 0, 0, 0.12);
  background: #ffffff;
  color: var(--ink);
}

.desktop-btn--ghost:hover {
  border-color: rgba(14, 82, 240, 0.3);
  background: #f8fbff;
  color: var(--brand);
}

/* hero */
.desktop-hero {
  padding: clamp(46px, 6vw, 78px) 0 0;
  background:
    radial-gradient(52% 46% at 50% 4%, rgba(14, 82, 240, 0.08), transparent 72%),
    #ffffff;
  text-align: center;
}

.desktop-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 7vw, 98px);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.desktop-hero__tagline {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.desktop-hero__sub {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.desktop-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.desktop-hero__note {
  margin: 14px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.desktop-family {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr) minmax(0, 0.95fr);
  align-items: end;
  gap: 14px;
  max-width: 1120px;
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding-bottom: clamp(24px, 3vw, 36px);
}

.desktop-family__item {
  overflow: hidden;
  margin: 0;
  border-radius: 24px;
  background: #0b1d3c;
  box-shadow: 0 30px 60px -52px rgba(8, 30, 80, 0.42);
}

.desktop-family__item--side {
  height: clamp(210px, 22vw, 290px);
}

.desktop-family__item--main {
  height: clamp(260px, 27vw, 370px);
}

.desktop-family__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* section heads */
.desktop-section-head {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.desktop-section-head--left {
  margin: 0;
  text-align: left;
}

.desktop-section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.desktop-section-head p {
  max-width: 640px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.desktop-section-head--left p {
  margin-left: 0;
}

/* models */
.desktop-models {
  padding: clamp(76px, 8vw, 112px) 0;
  background: #f5f7fb;
}

.desktop-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(30px, 4vw, 46px);
}

.desktop-model {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: #ffffff;
}

.desktop-model__visual {
  position: relative;
  aspect-ratio: 1.55;
  overflow: hidden;
  background: #0b1d3c;
}

.desktop-model__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-model__code {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 20, 46, 0.62);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.desktop-model__body {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 22px;
}

.desktop-model__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.desktop-model__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.desktop-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(16, 122, 84, 0.14);
  border-radius: 999px;
  background: #f4fbf7;
  color: #167a55;
  font-size: 11px;
  line-height: 1;
}

.desktop-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #16a36b;
}

.desktop-model__tagline {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
}

.desktop-model__desc {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.desktop-model__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.desktop-model__specs span {
  padding: 4px 7px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.2;
}

.desktop-model__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 16px 0 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.desktop-model__link span {
  font-size: 14px;
}

/* why */
.desktop-why {
  padding: clamp(76px, 8vw, 112px) 0;
  background: #ffffff;
}

.desktop-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--hairline);
}

.desktop-why-grid article {
  padding: 24px 28px 24px 0;
  border-right: 1px solid var(--hairline);
}

.desktop-why-grid article:last-child {
  border-right: 0;
  padding-right: 0;
}

.desktop-why-grid article + article {
  padding-left: 28px;
}

.desktop-why__num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.desktop-why-grid h3 {
  margin: 28px 0 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.desktop-why-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* compare */
.desktop-compare {
  padding: clamp(74px, 8vw, 108px) 0;
  background: #eef5ff;
}

.desktop-compare__scroll {
  margin-top: clamp(30px, 4vw, 44px);
  overflow-x: auto;
  border-top: 1px solid rgba(14, 82, 240, 0.16);
}

.desktop-compare__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.desktop-compare__table th,
.desktop-compare__table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  vertical-align: top;
}

.desktop-compare__table thead th {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.desktop-compare__table thead th:first-child {
  width: 18%;
}

.desktop-compare__table tbody th {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.desktop-compare__table tbody td {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
}

.desktop-compare__table tbody tr:last-child th,
.desktop-compare__table tbody tr:last-child td {
  border-bottom: 0;
}

/* CTA */
.desktop-cta {
  padding: clamp(52px, 7vw, 86px) 0 clamp(74px, 9vw, 120px);
  background: #ffffff;
}

.desktop-cta__panel {
  padding: clamp(42px, 6vw, 66px) 24px;
  border: 1px solid rgba(14, 82, 240, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(14, 82, 240, 0.09), transparent 64%),
    linear-gradient(145deg, #f8fbff 0%, #ffffff 76%);
  text-align: center;
}

.desktop-cta__panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.desktop-cta__panel p {
  max-width: 570px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.desktop-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* responsive */
@media (max-width: 1024px) {
  .desktop-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .desktop-model__body {
    min-height: 0;
  }

  .desktop-model__link {
    margin-top: 22px;
  }

  .desktop-why-grid article {
    padding-right: 20px;
  }

  .desktop-why-grid article + article {
    padding-left: 20px;
  }
}

@media (max-width: 760px) {
  .desktop-subnav__links {
    display: none;
  }

  .desktop-subnav__cta {
    margin-left: auto;
  }

  .desktop-hero h1 {
    font-size: clamp(48px, 12vw, 64px);
  }

  .desktop-hero__tagline {
    font-size: clamp(27px, 7.6vw, 36px);
  }

  .desktop-hero__sub {
    font-size: 13.5px;
  }

  .desktop-br {
    display: none;
  }

  .desktop-family {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 0;
  }

  .desktop-family__item--side {
    height: 200px;
  }

  .desktop-family__item--main {
    height: 250px;
  }

  .desktop-why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .desktop-why-grid article,
  .desktop-why-grid article + article {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .desktop-why-grid article:last-child {
    border-bottom: 0;
  }

  .desktop-cta__panel {
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .desktop-shell {
    width: calc(100% - 36px);
  }

  .desktop-subnav__inner {
    width: calc(100% - 36px);
  }

  .desktop-hero__actions,
  .desktop-cta__actions {
    flex-direction: column;
    gap: 9px;
  }

  .desktop-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .desktop-family__item--main {
    order: -1;
  }
}

/* Apple-style desktop overview */
.desk-top {
  padding: clamp(34px, 4.5vw, 58px) 0 0;
  background: #ffffff;
}

.desk-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 7.2vw, 92px);
  font-weight: 650;
  letter-spacing: -0.07em;
  line-height: 1;
}

.desk-quicknav {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 3.5vw, 48px);
  margin-top: clamp(30px, 4.2vw, 48px);
  padding: 0 0 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desk-quicknav::-webkit-scrollbar {
  display: none;
}

.desk-quick {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.desk-quick__visual {
  display: grid;
  place-items: center;
  width: 74px;
  height: 56px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: #0b1d3c;
}

.desk-quick__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-quick__visual--icon {
  background: #f5f7fb;
  color: var(--ink);
}

.desk-quick__visual--icon svg {
  width: 24px;
  height: 24px;
}

.desk-quick__label {
  max-width: 92px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desk-quick:hover .desk-quick__label {
  color: var(--ink);
}

.desk-catalog {
  padding: clamp(48px, 6vw, 74px) 0 clamp(68px, 8vw, 104px);
  background: #f5f7fb;
}

.desk-catalog__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.desk-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 24px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  background: #eceff5;
}

.desk-filter {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.desk-filter:hover {
  color: var(--ink);
}

.desk-filter.is-active {
  background: var(--ink);
  color: #ffffff;
}

.desk-carousel {
  margin-top: clamp(22px, 3vw, 32px);
}

.desk-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.desk-cards::-webkit-scrollbar {
  display: none;
}

.desk-card {
  display: flex;
  flex: 0 0 clamp(300px, 30.5vw, 360px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: 20px;
  background: #ffffff;
  scroll-snap-align: start;
}

.desk-card[hidden] {
  display: none !important;
}

.desk-card__visual {
  height: clamp(240px, 23vw, 300px);
  overflow: hidden;
  background: #0b1d3c;
}

.desk-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desk-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 22px 22px 20px;
  text-align: center;
}

.desk-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.desk-card__tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.desk-card__price {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.desk-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.desk-card__learn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.desk-card__learn:hover {
  background: #0a45d0;
}

.desk-card__actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.desk-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.desk-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.desk-arrow:hover {
  border-color: rgba(14, 82, 240, 0.3);
  color: var(--brand);
}

.desk-arrow svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 760px) {
  .desk-title {
    font-size: clamp(46px, 12vw, 62px);
  }

  .desk-quicknav {
    gap: 20px;
    padding-bottom: 20px;
  }

  .desk-quick__visual {
    width: 64px;
    height: 50px;
  }

  .desk-catalog__title {
    font-size: 30px;
  }

  .desk-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    border-radius: 16px;
    scrollbar-width: none;
  }

  .desk-filters::-webkit-scrollbar {
    display: none;
  }

  .desk-filter {
    flex: 0 0 auto;
  }

  .desk-card {
    flex-basis: min(82vw, 330px);
  }

  .desk-card__visual {
    height: 250px;
  }
}

.desk-top {
  padding-bottom: clamp(24px, 3vw, 36px);
}

/* Apple-style use-case cards */
.desktop-usecases {
  padding: clamp(56px, 7vw, 92px) 0 clamp(70px, 8vw, 108px);
  background: #f5f7fb;
}

.desktop-usecases__title {
  margin: 0 0 clamp(28px, 4vw, 42px);
  color: var(--ink);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

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

.desktop-usecase {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 54px -48px rgba(8, 30, 80, 0.22);
}

.desktop-usecase__visual {
  aspect-ratio: 1.55;
  overflow: hidden;
  background: #0b1d3c;
}

.desktop-usecase__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-usecase__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 3vw, 36px) 22px clamp(26px, 3vw, 38px);
  text-align: center;
}

.desktop-usecase__body h3 {
  max-width: 470px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.desktop-usecase__body .desktop-btn {
  margin-top: 22px;
}

.desktop-btn--blue {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.desktop-btn--blue:hover {
  border-color: #0a45d0;
  background: #0a45d0;
  color: #ffffff;
}

@media (max-width: 760px) {
  .desktop-usecases__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .desktop-usecases__title {
    margin-bottom: 24px;
  }
}

/* S1 product shot uses its transparent product image on a light stage */
.desk-card__visual--light {
  background: #f5f7fb;
}

.desk-card__visual--light img {
  padding: 18px;
  object-fit: contain;
}

.desktop-usecase__visual--light {
  background: #f5f7fb;
}

.desktop-usecase__visual--light img {
  padding: 24px;
  object-fit: contain;
}


/* P1 fills the card frame without distortion */
.desk-card__visual--p1 img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  object-fit: cover;
  object-position: center 42%;
}

.desk-card__visual--amd img {
  padding: 0;
}

.desktop-usecases__banner {
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 24px;
  background: #081426;
}

.desktop-usecases__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* P1 should sit smaller in the card, preserving its natural ratio */
.desk-card__visual--p1 {
  display: grid;
  place-items: center;
}

.desk-card__visual--p1 img {
  width: auto;
  height: auto;
  max-width: 56%;
  max-height: 180px;
  padding: 0;
  object-fit: contain;
}

/* final P1 scale: noticeably smaller, still readable */
.desk-card__visual--p1 img {
  max-width: 66%;
  max-height: 220px;
}

.desk-card__actions .desk-card__buy {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
