.page-products {
  --terminal-panel: rgba(13, 21, 16, 0.92);
  --panel-line: rgba(201, 164, 74, 0.38);
  --moss: #4A7C59;
  background-color: var(--ivory);
  color: var(--ink);
  overflow-x: clip;
}

.page-products .terminal-hero {
  position: relative;
  padding: 3.2rem 0 4.5rem;
  background:
    linear-gradient(rgba(201, 164, 74, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 74, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 12% 20%, rgba(74, 124, 89, 0.5), transparent 55%),
    var(--green);
  background-size: 40px 40px, 40px 40px, auto, auto;
  color: var(--ivory);
  overflow: hidden;
}

.page-products .terminal-hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  background: var(--red);
  opacity: 0.16;
  transform: rotate(16deg);
  clip-path: polygon(0 0, 60% 0, 100% 100%, 0 76%);
  pointer-events: none;
}

.page-products .terminal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.4rem;
}

.page-products .terminal-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-products .terminal-side .idx {
  margin-bottom: 0.8rem;
  color: var(--gold);
}

.page-products .terminal-side h1 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.page-products .terminal-side .lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.84);
}

.page-products .phone-frame {
  max-width: 19rem;
  margin-top: 1.8rem;
  border: 1px solid var(--ln);
  background: var(--carbon);
  padding: 0.5rem;
  aspect-ratio: 3 / 4;
}

.page-products .phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.page-products .terminal-window {
  background: var(--terminal-panel);
  border: 1px solid var(--panel-line);
  border-radius: 1rem 1rem 0.5rem 0.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 0.9rem;
  overflow: hidden;
}

.page-products .terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 240, 230, 0.05);
  border-bottom: 1px solid var(--panel-line);
}

.page-products .tl-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.page-products .tl-dot-red {
  background: var(--red);
}

.page-products .tl-dot-gold {
  background: var(--gold);
}

.page-products .tl-dot-green {
  background: var(--moss);
}

.page-products .tl-file {
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(245, 240, 230, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-products .terminal-body {
  padding: 1.3rem 1.3rem 1.7rem;
}

.page-products .term-prompt {
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: 700;
}

.page-products .term-key {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.8rem;
  margin: 0.55rem 0;
  color: rgba(245, 240, 230, 0.72);
  line-height: 1.45;
}

.page-products .term-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--glow);
}

.page-products .term-tag {
  color: var(--gold);
  border: 1px solid var(--panel-line);
  padding: 0.16rem 0.42rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.page-products .term-text {
  color: var(--ivory);
}

.page-products .term-comment {
  margin: 1.1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(245, 240, 230, 0.18);
  color: rgba(245, 240, 230, 0.5);
  font-size: 0.84rem;
}

.page-products .stat-strip {
  padding: 2.5rem 0;
  color: var(--ivory);
  background:
    linear-gradient(120deg, rgba(201, 164, 74, 0.1) 0%, transparent 40%),
    var(--carbon);
}

.page-products .stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2rem;
}

.page-products .stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-products .stat-strip .stat-num {
  font-family: var(--mono);
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
}

.page-products .stat-strip .stat-label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(245, 240, 230, 0.7);
}

.page-products .version-history {
  padding: 4rem 0 4.6rem;
  background: var(--ivory);
}

.page-products .version-timeline-banner {
  margin: 2rem 0 1.8rem;
  border: 1px solid var(--ln);
  background: var(--green);
}

.page-products .version-timeline-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .vt-filter {
  margin: 0 0 1.9rem;
}

.page-products .vt-grid {
  display: grid;
  gap: 1.2rem;
}

.page-products .vt-node {
  position: relative;
  padding: 1.25rem 1.15rem 1.35rem;
  background: #fffdf7;
  border: 1px solid var(--ln);
  box-shadow: 0 1px 0 rgba(201, 164, 74, 0.28);
  transition: transform var(--ease), border-color var(--ease);
}

.page-products .vt-node:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.page-products .vt-marker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(11, 61, 46, 0.2);
}

.page-products .vt-version {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--green);
}

.page-products .vt-status {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--ln);
  padding: 0.16rem 0.32rem;
}

.page-products .vt-title {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.page-products .vt-desc {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--gray);
}

.page-products .vt-detail {
  margin-top: 0.8rem;
  border-top: 1px solid rgba(201, 164, 74, 0.3);
  padding-top: 0.5rem;
  font-family: var(--serif);
  font-size: 0.88rem;
}

.page-products .vt-detail summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 700;
  font-size: 0.84rem;
}

.page-products .vt-detail p {
  margin: 0.5rem 0 0;
  line-height: 1.6;
  color: rgba(91, 107, 94, 0.95);
}

.page-products .feature-section {
  padding: 4.2rem 0;
  background:
    linear-gradient(180deg, rgba(74, 124, 89, 0.12), rgba(245, 240, 230, 0) 32%),
    var(--ivory);
}

.page-products .feature-banner {
  margin: 2rem 0 1.6rem;
  border: 1px solid var(--ln);
}

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

.page-products .feature-filter {
  margin: 0 0 1.9rem;
}

.page-products .feature-grid {
  display: grid;
  gap: 1.2rem;
}

.page-products .feature-card {
  position: relative;
  padding: 1.6rem 1.3rem 1.7rem;
  background: #fffdf7;
  border: 1px solid var(--ln);
  border-left: 4px solid var(--gold);
  box-shadow: 0 1px 0 rgba(201, 164, 74, 0.18);
  transition: transform var(--ease), border-color var(--ease);
}

.page-products .feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.page-products .feature-card:focus,
.page-products .feature-card:focus-within {
  outline: 2px solid var(--gold);
}

.page-products .feature-idx {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(91, 107, 94, 0.7);
}

.page-products .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
  border: 1px solid var(--ln);
}

.page-products .feature-icon svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.page-products .feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .feature-card > p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray);
}

.page-products .feature-more {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.6rem);
  z-index: 10;
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--green);
  color: var(--ivory);
  border: 1px solid var(--ln);
  font-family: var(--serif);
  font-size: 0.84rem;
  line-height: 1.5;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.page-products .feature-card:hover .feature-more,
.page-products .feature-card:focus .feature-more,
.page-products .feature-card:focus-within .feature-more {
  display: block;
}

.page-products .update-guide {
  padding: 4rem 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(74, 124, 89, 0.25), transparent 55%),
    var(--green);
  color: var(--ivory);
}

.page-products .update-guide-grid {
  display: grid;
  gap: 2.4rem;
}

.page-products .update-bg {
  border: 1px solid var(--ln);
  background: rgba(18, 18, 18, 0.6);
}

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

.page-products .update-content .idx {
  color: var(--gold);
}

.page-products .update-content h2 {
  margin: 0.5rem 0 0.9rem;
  color: var(--ivory);
}

.page-products .update-content > p {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(245, 240, 230, 0.86);
}

.page-products .update-steps {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-products .update-steps li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  background: rgba(245, 240, 230, 0.06);
  border: 1px solid rgba(201, 164, 74, 0.28);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ivory);
}

.page-products .step-num {
  font-family: var(--mono);
  color: var(--gold);
  font-weight: 700;
}

.page-products .update-compat {
  margin: 0 0 1.6rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 230, 0.68);
}

.page-products .sync-guide {
  padding: 4.2rem 0 4.6rem;
  background:
    linear-gradient(180deg, rgba(91, 107, 94, 0.08), rgba(245, 240, 230, 0)),
    var(--ivory);
}

.page-products .sync-layout {
  display: grid;
  gap: 2.2rem;
  margin-top: 2.2rem;
}

.page-products .sync-diagram {
  border: 1px solid var(--ln);
  background: var(--green);
}

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

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

.page-products .sync-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #fffdf7;
  border: 1px solid var(--ln);
  border-left: 4px solid var(--green);
}

.page-products .sync-step-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.9rem;
}

.page-products .sync-step h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.page-products .sync-step p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray);
}

.page-products .sync-note {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--gray);
  border-top: 1px dashed rgba(201, 164, 74, 0.4);
  padding-top: 1rem;
}

.page-products .sync-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.page-products .verdict-strip {
  padding: 2.2rem 0;
  background: var(--carbon);
  color: var(--ivory);
}

.page-products .verdict-inner {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}

.page-products .verdict-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 240, 230, 0.74);
}

.page-products .verdict-inner .btn-ghost {
  justify-self: start;
}

@media (min-width: 700px) {
  .page-products .stat-strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-products .sync-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .page-products .verdict-inner {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 900px) {
  .page-products .terminal-hero {
    padding-top: 3.8rem;
  }

  .page-products .terminal-hero-grid {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    align-items: center;
    gap: 3.4rem;
  }

  .page-products .terminal-side {
    order: 2;
  }

  .page-products .terminal-window {
    order: 1;
  }

  .page-products .phone-frame {
    max-width: 18rem;
  }

  .page-products .vt-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }

  .page-products .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }

  .page-products .update-guide-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 3.2rem;
  }
}
