.page-home {
  --home-line: rgba(27, 21, 29, 0.1);
  --home-line-soft: rgba(138, 122, 144, 0.3);
  --home-gold-soft: rgba(217, 164, 65, 0.28);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  color: var(--ink);
}

.page-home .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vine);
  margin: 0 0 12px;
}

.page-home .eyebrow--dark {
  color: var(--gold);
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  padding: 36px 0 48px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(233, 220, 235, 0.9) 0%, rgba(248, 244, 236, 0) 62%),
    var(--paper);
  overflow: hidden;
}

.page-home .hero__vine {
  position: absolute;
  top: -40px;
  right: -20px;
  width: 46%;
  max-width: 300px;
  height: auto;
  color: var(--vine);
  opacity: 0.22;
  pointer-events: none;
}

.page-home .hero__vine path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.page-home .hero__vine circle {
  fill: currentColor;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.page-home .hero__ctx {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ash);
  margin: 0 0 16px;
}

.page-home .hero__title {
  font-size: clamp(38px, 9.4vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--violet);
}

.page-home .hero__title span {
  display: block;
  color: var(--vine);
}

.page-home .hero__lede {
  font-size: 16px;
  max-width: 33em;
  margin: 0 0 26px;
  color: var(--ink);
}

.page-home .hero__search {
  margin-bottom: 22px;
}

.page-home .hero__field {
  position: relative;
}

.page-home .hero__input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--ash);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.page-home .hero__input::placeholder {
  color: var(--ash);
}

.page-home .hero__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--home-gold-soft);
}

.page-home .hero__hint {
  font-size: 12.5px;
  color: var(--ash);
  margin: 10px 0 0;
}

.page-home .hero__suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 34px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.page-home .hero__search:focus-within .hero__suggest {
  opacity: 1;
  visibility: visible;
}

.page-home .hero__suggest-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ash);
}

.page-home .hero__chip {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--violet);
  text-decoration: none;
  border: 1px solid var(--home-line-soft);
  border-radius: 999px;
  background: #ffffff;
  transition: border-color 180ms ease, color 180ms ease;
}

.page-home .hero__chip:hover,
.page-home .hero__chip:focus-visible {
  border-color: var(--vine);
  color: var(--vine);
  outline: none;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero__visual {
  position: relative;
}

.page-home .hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.page-home .status {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: -30px 14px 0;
  padding: 14px 16px;
  background: var(--violet-deep);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.page-home .status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.page-home .status__ver {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .status__text {
  font-size: 13px;
  color: rgba(248, 244, 236, 0.86);
}

.page-home .status__date {
  font-size: 11.5px;
  color: rgba(248, 244, 236, 0.62);
}

.page-home .status__more {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(248, 244, 236, 0.72);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 240ms ease, opacity 160ms ease;
}

.page-home .status:hover .status__more,
.page-home .status:focus-within .status__more,
.page-home .status:focus .status__more {
  max-height: 140px;
  opacity: 1;
}

.page-home .status:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- three steps band ---------- */
.page-home .path {
  background: linear-gradient(102deg, #d9a441 0%, #e6bd6b 52%, #d9a441 100%);
  color: var(--ink);
  padding: 44px 0 48px;
}

.page-home .path__title {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  margin: 0 0 10px;
}

.page-home .path .eyebrow {
  color: #5c3d0c;
}

.page-home .path__sub {
  margin: 0;
  font-size: 15px;
  max-width: 40em;
  color: #3a2a12;
}

.page-home .path__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.page-home .path__num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--wine);
  margin-bottom: 10px;
}

.page-home .path__step-title {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
}

.page-home .path__step-text {
  margin: 0;
  font-size: 15px;
  color: #3a2a12;
}

.page-home .path__more {
  margin-top: 10px;
}

.page-home .path__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #4a3308;
}

.page-home .path__more summary::-webkit-details-marker {
  display: none;
}

.page-home .path__more summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
}

.page-home .path__more[open] summary::after {
  content: "−";
}

.page-home .path__more summary:focus-visible {
  outline: 2px solid #4a3308;
  outline-offset: 3px;
}

.page-home .path__more p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a3308;
  border-left: 2px solid rgba(74, 51, 8, 0.35);
  padding-left: 12px;
}

/* ---------- panel / console ---------- */
.page-home .desk {
  background: var(--mist);
  padding: 48px 0 52px;
}

.page-home .desk__inner {
  display: grid;
  gap: 34px;
}

.page-home .desk__title {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  margin: 0 0 14px;
}

.page-home .desk__text {
  margin: 0 0 22px;
  font-size: 15.5px;
  max-width: 34em;
}

.page-home .desk__facts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .desk__facts li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(75, 30, 91, 0.14);
}

.page-home .desk__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--violet);
  min-width: 34px;
}

.page-home .console {
  background: var(--violet-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-card);
}

.page-home .console__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(248, 244, 236, 0.16);
}

.page-home .console__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vine);
  box-shadow: 0 0 0 3px rgba(30, 107, 90, 0.28);
}

.page-home .console__label {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(248, 244, 236, 0.7);
}

.page-home .console__badge {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--violet-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 10px;
}

.page-home .console__grid {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-home .console__key {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 10px;
  font-size: 13.5px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid rgba(248, 244, 236, 0.16);
  border-radius: 8px;
  transition: border-color 180ms ease, background 180ms ease;
}

.page-home .console__key:hover,
.page-home .console__key:focus-visible {
  border-color: var(--gold);
  background: rgba(217, 164, 65, 0.12);
  outline: none;
}

.page-home .console__idx {
  font-size: 10.5px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.page-home .console__sub {
  margin: 18px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(248, 244, 236, 0.55);
}

.page-home .console__updates {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.page-home .console__updates li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 8px 0;
  color: rgba(248, 244, 236, 0.88);
  border-bottom: 1px dashed rgba(248, 244, 236, 0.14);
}

.page-home .console__updates li:last-child {
  border-bottom: 0;
}

.page-home .console__when {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10.5px;
  color: rgba(248, 244, 236, 0.5);
}

/* ---------- library ---------- */
.page-home .library {
  background: var(--paper);
  padding: 48px 0 52px;
}

.page-home .library__head {
  display: grid;
  gap: 24px;
}

.page-home .library__title {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  margin: 0 0 12px;
}

.page-home .library__sub {
  margin: 0;
  font-size: 15.5px;
  max-width: 32em;
}

.page-home .library__figure {
  margin: 0;
}

.page-home .library__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--home-line-soft);
}

.page-home .library__figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ash);
  line-height: 1.6;
}

.page-home .library__cols {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.page-home .guides__title,
.page-home .docs__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(75, 30, 91, 0.2);
}

.page-home .guides__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .guides__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: var(--mist);
  border-radius: var(--radius);
  border-left: 3px solid var(--wine);
}

.page-home .guides__idx {
  font-size: 15px;
  font-weight: 700;
  color: var(--wine);
  line-height: 1.5;
}

.page-home .guides__name {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--violet);
}

.page-home .guides__count {
  font-size: 11px;
  color: var(--ash);
  margin-left: 8px;
  letter-spacing: 0.06em;
}

.page-home .guides__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .docs__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .docs__list li {
  padding: 14px 16px;
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.page-home .docs__list li:hover {
  border-color: var(--vine);
  transform: translateY(-2px);
}

.page-home .docs__list p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .docs__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* ---------- devices ---------- */
.page-home .devices {
  background: var(--celadon);
  padding: 48px 0 52px;
}

.page-home .devices__inner {
  display: grid;
  gap: 30px;
}

.page-home .devices__text h2 {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  margin: 0 0 14px;
}

.page-home .devices__text-body {
  margin: 0 0 22px;
  font-size: 15.5px;
  max-width: 34em;
}

.page-home .devices__specs {
  margin: 0 0 24px;
  display: grid;
  gap: 1px;
  background: rgba(30, 107, 90, 0.24);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .devices__spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
}

.page-home .devices__spec dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--vine);
  font-family: var(--font-mono);
}

.page-home .devices__spec dd {
  margin: 0;
  font-size: 14px;
  text-align: right;
  color: var(--ink);
}

.page-home .devices__figure {
  margin: 0;
}

.page-home .devices__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.page-home .devices__figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: #4d6b62;
  line-height: 1.6;
}

/* ---------- log ---------- */
.page-home .log {
  background: var(--paper);
  padding: 48px 0 52px;
}

.page-home .log__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .log__title {
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.16;
  margin: 0;
}

.page-home .log__stat {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ash);
  margin: 0;
}

.page-home .log__list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .log__item {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-line);
}

.page-home .log__when {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.page-home .log__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--violet);
}

.page-home .log__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}

.page-home .log__item .badge {
  justify-self: start;
}

/* ---------- support ---------- */
.page-home .support {
  position: relative;
  padding: 48px 0 44px;
  color: var(--paper);
  background:
    repeating-linear-gradient(135deg, rgba(248, 244, 236, 0.05) 0 1px, transparent 1px 22px),
    linear-gradient(150deg, var(--violet-deep) 0%, #3b1850 56%, var(--wine) 100%);
  overflow: hidden;
}

.page-home .support__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
}

.page-home .support__title {
  font-size: clamp(25px, 4.4vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--paper);
}

.page-home .support__body {
  margin: 0 0 18px;
  font-size: 15px;
  max-width: 34em;
  color: rgba(248, 244, 236, 0.82);
}

.page-home .support__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  font-size: 13.5px;
}

.page-home .support__links a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, 0.45);
  padding-bottom: 2px;
}

.page-home .support__links a:hover,
.page-home .support__links a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
  outline: none;
}

.page-home .support__card {
  background: rgba(27, 21, 29, 0.34);
  border: 1px solid rgba(248, 244, 236, 0.16);
  border-radius: var(--radius);
  padding: 6px 16px 14px;
}

.page-home .support__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(248, 244, 236, 0.18);
}

.page-home .support__row:last-of-type {
  border-bottom: 0;
}

.page-home .support__key {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(248, 244, 236, 0.5);
  min-width: 58px;
}

.page-home .support__val {
  font-size: 14px;
  color: var(--paper);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.page-home .support__row--plain .support__val {
  font-family: var(--font-body);
  letter-spacing: 0;
}

.page-home .support__copy {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 6px 14px;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.page-home .support__copy:hover,
.page-home .support__copy:focus-visible {
  background: var(--gold);
  color: var(--violet-deep);
  outline: none;
}

.page-home .support__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--gold);
  text-decoration: none;
}

.page-home .support__more:hover,
.page-home .support__more:focus-visible {
  color: var(--paper);
  outline: none;
}

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .page-home .hero {
    padding: 52px 0 62px;
  }

  .page-home .library__head {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 34px;
  }

  .page-home .log__item {
    grid-template-columns: 96px 120px 1fr;
    gap: 18px;
    align-items: start;
  }

  .page-home .log__item .badge {
    margin-top: 3px;
  }
}

@media (min-width: 900px) {
  .page-home .path__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 32px;
  }

  .page-home .path__step {
    padding: 0 26px;
    border-left: 1px solid rgba(74, 51, 8, 0.28);
  }

  .page-home .path__step:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .page-home .path__step:last-child {
    padding-right: 0;
  }

  .page-home .library__cols {
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: start;
  }

  .page-home .devices__inner {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 44px;
  }

  .page-home .support__inner {
    grid-template-columns: 6fr 6fr;
    gap: 40px;
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-home .hero {
    padding: 64px 0 80px;
  }

  .page-home .hero__inner {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .hero__visual {
    padding-top: 22px;
  }

  .page-home .hero__img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 11% 100%);
  }

  .page-home .status {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: min(310px, 84%);
    margin: 0;
  }

  .page-home .hero__vine {
    width: 34%;
    max-width: 360px;
    opacity: 0.2;
  }

  .page-home .desk__inner {
    grid-template-columns: 5fr 7fr;
    gap: 44px;
    align-items: start;
  }

  .page-home .console {
    padding: 22px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__input,
  .page-home .hero__chip,
  .page-home .console__key,
  .page-home .docs__list li,
  .page-home .support__copy,
  .page-home .status__more,
  .page-home .hero__suggest {
    transition: none;
  }

  .page-home .docs__list li:hover {
    transform: none;
  }
}
