.page-products {
  --page-gutter: clamp(1.25rem, 4vw, 2.5rem);
  padding-inline: var(--page-gutter);
  background: var(--bg-deep);
  color: var(--base-light);
}

.page-products .breadcrumb {
  margin: 1.75rem 0 2.5rem;
}

.page-products .hero-split {
  display: grid;
  gap: 2.5rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.page-products .hero-left {
  display: flex;
  flex-direction: column;
}

.page-products .hero-kicker,
.page-products .section-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-products .page-title {
  margin: 0 0 1.125rem;
  font-family: var(--font-headline);
  font-size: clamp(1.625rem, 4vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.page-products .hero-desc {
  margin: 0 0 1.25rem;
  max-width: 34em;
  color: rgb(242 239 233 / 0.78);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.page-products .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-products .text-link {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.page-products .download-card {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  margin-top: auto;
  background: var(--bg-card);
  border-radius: 18px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  box-shadow: 0 24px 50px rgb(0 0 0 / 0.4);
}

.page-products .download-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
}

.page-products .download-icon {
  display: block;
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 20px;
  object-fit: cover;
}

.page-products .download-card-body {
  display: grid;
  gap: 0.875rem;
}

.page-products .download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.page-products .version-note {
  color: var(--mineral-grey);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.page-products .download-title {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.page-products .download-size {
  margin: 0;
  color: rgb(242 239 233 / 0.65);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.page-products .os-selector {
  position: relative;
}

.page-products .os-trigger {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-green), #00d473);
  color: #06101f;
  font-family: var(--font-headline);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s var(--ease-out-expo), filter 0.2s;
}

.page-products .os-trigger::-webkit-details-marker {
  display: none;
}

.page-products .os-trigger:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.page-products .os-list {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-top: 0.5rem;
  background: var(--bg-card-hover);
  border-radius: 12px;
}

.page-products .os-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  color: var(--base-light);
  text-decoration: none;
  background: rgb(255 255 255 / 0.04);
  transition: background 0.2s, transform 0.2s var(--ease-out-expo);
}

.page-products .os-item:hover {
  background: rgb(0 255 135 / 0.14);
  transform: translateX(4px);
}

.page-products .os-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.page-products .os-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mineral-clay);
}

.page-products .download-tip {
  margin: 0;
  color: rgb(242 239 233 / 0.5);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

.page-products .hero-right {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.page-products .terminal-window {
  overflow: hidden;
  background: #0a121f;
  border: 1px solid rgb(0 255 135 / 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
}

.page-products .terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgb(255 255 255 / 0.04);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.page-products .t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.page-products .t-dot-red { background: #ff5f57; }
.page-products .t-dot-yellow { background: #febc2e; }
.page-products .t-dot-green { background: #28c840; }

.page-products .terminal-title {
  margin-left: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mineral-grey);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-products .terminal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 2;
  background:
    linear-gradient(rgb(0 255 135 / 0.025), rgb(0 255 135 / 0.015)),
    repeating-linear-gradient(0deg, transparent, transparent 19px, rgb(255 255 255 / 0.03) 20px);
}

.page-products .t-line {
  margin: 0;
  color: rgb(0 255 135 / 0.92);
  opacity: 0;
  transform: translateY(8px);
  animation: pageProductsLineIn 0.5s var(--ease-out-expo) forwards;
}

.page-products .t-1 { animation-delay: 0.15s; }
.page-products .t-2 { animation-delay: 0.65s; }
.page-products .t-3 { animation-delay: 1.15s; }
.page-products .t-4 { animation-delay: 1.65s; }
.page-products .t-5 { animation-delay: 2.15s; }
.page-products .t-6 { animation-delay: 2.65s; }

.page-products .t-time {
  display: inline-block;
  min-width: 4em;
  margin-right: 0.625rem;
  color: var(--accent-orange);
}

.page-products .terminal-caption {
  margin: 0;
  color: rgb(242 239 233 / 0.56);
  font-size: 0.875rem;
  line-height: 1.7;
  border-left: 3px solid var(--mineral-clay);
  padding-left: 1rem;
}

.page-products .hero-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.page-products .hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .hero-figure figcaption,
.page-products .compare-figure figcaption,
.page-products .security-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: rgb(242 239 233 / 0.55);
  background: var(--bg-card);
}

.page-products .section {
  margin-bottom: 4.5rem;
}

.page-products .section-head {
  margin-bottom: 1.75rem;
  max-width: 46em;
}

.page-products .section-title {
  margin: 0 0 0.875rem;
  font-family: var(--font-headline);
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  line-height: 1.25;
}

.page-products .section-lead {
  margin: 0;
  color: rgb(242 239 233 / 0.66);
  line-height: 1.75;
}

.page-products .compare-figure {
  margin: 0 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.page-products .compare-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .table-scroll {
  overflow-x: auto;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 14px;
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}

.page-products .compare-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.page-products .compare-table th,
.page-products .compare-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.page-products .compare-table thead th {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgb(0 255 135 / 0.06);
  color: var(--accent-green);
}

.page-products .compare-table tbody th {
  color: var(--base-light);
  font-weight: 600;
  white-space: nowrap;
}

.page-products .compare-table td {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgb(242 239 233 / 0.7);
}

.page-products .compare-table td.current {
  color: var(--accent-green);
  font-weight: 700;
  background: rgb(0 255 135 / 0.05);
}

.page-products .compare-table tbody tr:last-child th,
.page-products .compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-products .table-note {
  margin: 0.875rem 0 0;
  color: rgb(242 239 233 / 0.45);
  font-size: 0.8125rem;
}

.page-products .sys-grid {
  display: grid;
  gap: 1rem;
}

.page-products .sys-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  border-top: 3px solid var(--accent-orange);
  transition: transform 0.25s var(--ease-out-expo);
}

.page-products .sys-card:hover {
  transform: translateY(-4px);
}

.page-products .sys-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgb(255 107 0 / 0.12);
  border: 1px solid rgb(255 107 0 / 0.3);
  color: var(--accent-orange);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.page-products .sys-card h3 {
  margin: 1rem 0 0.875rem;
  font-family: var(--font-headline);
  font-size: 1.125rem;
}

.page-products .sys-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.page-products .sys-card li {
  position: relative;
  padding-left: 1.125rem;
  color: rgb(242 239 233 / 0.74);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.page-products .sys-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mineral-green);
}

.page-products .install-layout {
  margin-top: 0.5rem;
}

.page-products .install-steps {
  display: grid;
  gap: 2rem;
}

.page-products .steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.page-products .steps-list::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(var(--accent-green), var(--accent-orange));
  opacity: 0.28;
}

.page-products .step-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
}

.page-products .step-num {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.page-products .step-content h3 {
  margin: 0.25rem 0 0.375rem;
  font-family: var(--font-headline);
  font-size: 1rem;
}

.page-products .step-content p {
  margin: 0;
  color: rgb(242 239 233 / 0.7);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.page-products .install-platform-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.page-products .security-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.page-products .security-list {
  display: grid;
  gap: 0.875rem;
}

.page-products .security-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.875rem;
  align-items: start;
  padding: 1.125rem 1.25rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-green);
  border-radius: 12px;
}

.page-products .security-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgb(0 255 135 / 0.12);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.page-products .security-item h3 {
  margin: 0 0 0.375rem;
  font-family: var(--font-headline);
  font-size: 1rem;
}

.page-products .security-item p {
  margin: 0;
  color: rgb(242 239 233 / 0.7);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.page-products .security-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.page-products .security-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .login-grid {
  display: grid;
  gap: 1rem;
}

.page-products .login-method {
  padding: 1.5rem;
  background: rgb(27 42 65 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.06);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.25s var(--ease-out-expo);
}

.page-products .login-method:hover {
  border-color: rgb(0 255 135 / 0.35);
  transform: translateY(-2px);
}

.page-products .login-method h3 {
  margin: 0 0 0.625rem;
  font-family: var(--font-headline);
  font-size: 1.0625rem;
}

.page-products .login-method p {
  margin: 0;
  color: rgb(242 239 233 / 0.72);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.page-products .login-method a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes pageProductsLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .page-products .sys-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .login-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .security-layout {
    grid-template-columns: 1fr 0.9fr;
  }

  .page-products .install-steps {
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .page-products .hero-split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .page-products .compare-figure {
    max-width: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .t-line {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .page-products .sys-card,
  .page-products .login-method {
    transition: none;
  }
}
