.page-home {
  background: var(--c-bg);
  color: var(--c-ink);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-hero {
  position: relative;
  min-height: 82vh;
  background: var(--c-primary);
  color: #fff;
  padding-top: var(--header-h);
  padding-bottom: 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
  mix-blend-mode: screen;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--c-primary-light) 0 2px, transparent 2px 14px);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.5;
  z-index: -1;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -5%;
  width: 56%;
  height: 3px;
  background: var(--c-accent);
  transform: rotate(-16deg);
  opacity: 0.5;
  z-index: -1;
}

.page-home .home-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .home-hero-main {
  position: relative;
  z-index: 2;
}

.page-home .home-hero-main .section-index {
  margin-bottom: 8px;
}

.page-home .home-hero-main h1 {
  font-size: 46px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 12px 0 8px;
}

.page-home .home-hero-lead {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.page-home .home-hero-desc {
  color: rgba(245, 247, 250, 0.8);
  font-size: 15px;
  line-height: 1.9;
  max-width: 560px;
  margin-top: 12px;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.page-home .home-hero-ghost {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-s);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-hero-ghost:hover {
  border-color: var(--c-accent);
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

.page-home .home-hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.page-home .home-metric-card {
  position: relative;
  background: rgba(6, 18, 43, 0.72);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-metric-card:hover {
  border-color: var(--c-warm);
  transform: translateY(-2px);
}

.page-home .home-metric-card--live {
  border-color: var(--c-accent);
  animation: home-pulse 2.4s var(--ease) infinite;
}

.page-home .home-metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

.page-home .home-metric-value {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}

.page-home .home-metric-value small {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-accent);
  margin-left: 2px;
  font-family: var(--font-mono);
}

.page-home .home-metric-note {
  font-size: 13px;
  color: #b6c2d6;
}

.page-home .home-hero-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 18, 43, 0.78);
  border-top: 1px solid rgba(0, 255, 136, 0.28);
  padding: 12px 0;
  z-index: 3;
}

.page-home .home-ticker-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .home-ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: 0 0 auto;
  animation: home-pulse 1.6s var(--ease) infinite;
}

.page-home .home-ticker-text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.page-home .home-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
  padding: 0 var(--gutter);
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
}

.page-home .home-quicklink {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--c-subtle);
  border-bottom: 2px solid var(--c-line);
  padding: 4px 0;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-quicklink:hover {
  border-color: var(--c-accent);
  color: var(--c-primary);
}

.page-home .home-data {
  padding: 68px 0 72px;
}

.page-home .home-data-panel {
  background: var(--c-primary);
  border-radius: var(--radius-l);
  transform: skewY(-1.2deg);
  box-shadow: var(--shadow-m);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.page-home .home-data-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  background: repeating-linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.page-home .home-data-inner {
  transform: skewY(1.2deg);
  display: grid;
  gap: 32px;
}

.page-home .home-data-head {
  color: #fff;
  max-width: 720px;
  position: relative;
}

.page-home .home-data-head h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 12px 0 12px;
  color: #fff;
}

.page-home .home-data-head p:last-child {
  color: #a9b6c9;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

.page-home .home-data-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .home-data-metric {
  background: rgba(30, 58, 111, 0.38);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-data-metric:hover {
  border-color: var(--c-warm);
  transform: translateY(-2px);
}

.page-home .home-data-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--c-accent);
}

.page-home .home-data-num small {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
  font-family: var(--font-mono);
}

.page-home .home-data-label {
  font-size: 12px;
  color: #8fa0b8;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.page-home .home-data-spark {
  background: rgba(30, 58, 111, 0.25);
  border: 1px solid rgba(0, 255, 136, 0.1);
  border-radius: var(--radius-m);
  padding: 16px;
}

.page-home .home-data-spark svg {
  width: 100%;
  height: 88px;
  display: block;
}

.page-home .home-data-bottom {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.page-home .home-data-viz img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  border: 1px solid rgba(0, 255, 136, 0.12);
  display: block;
  object-fit: cover;
}

.page-home .home-data-notes {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .home-data-note {
  background: rgba(30, 58, 111, 0.3);
  border: 1px solid rgba(140, 170, 200, 0.18);
  border-radius: var(--radius-m);
  color: #eef3fa;
  transition: border-color var(--dur) var(--ease);
}

.page-home .home-data-note:hover {
  border-color: rgba(0, 255, 136, 0.35);
}

.page-home .home-data-note summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.page-home .home-data-note summary::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--c-accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-data-note[open] summary::before {
  transform: rotate(135deg);
  background: var(--c-warm);
}

.page-home .home-data-note p {
  padding: 0 16px 14px;
  color: #cdd9ea;
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}

.page-home .home-products {
  padding: 72px 0;
  background: #fff;
}

.page-home .home-products-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.page-home .home-products-head h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 12px 0 12px;
  color: var(--c-primary);
}

.page-home .home-products-head p:last-child {
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

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

.page-home .home-product-card {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 32px 28px 28px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-home .home-product-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  transition: background var(--dur) var(--ease);
}

.page-home .home-product-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-m);
  transform: translateY(-4px);
}

.page-home .home-product-card:hover::after {
  background: var(--c-warm);
}

.page-home .home-product-card--warm {
  border-color: #e0b99a;
}

.page-home .home-product-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-warm);
  border: 1px solid rgba(255, 106, 0, 0.3);
  background: var(--c-orange-tint);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.page-home .home-product-card h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--c-primary);
  margin: 18px 0 10px;
}

.page-home .home-product-card p {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
}

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

.page-home .home-product-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.6;
}

.page-home .home-product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--c-accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.page-home .home-product-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.page-home .home-story {
  padding: 72px 0;
  background: var(--c-bg);
}

.page-home .home-story-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .home-story-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  object-fit: cover;
  display: block;
}

.page-home .home-story-content h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--c-primary);
  margin: 12px 0 16px;
}

.page-home .home-story-content p {
  color: var(--c-subtle);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 14px;
}

.page-home .home-story-content p:last-of-type {
  margin-bottom: 24px;
}

.page-home .home-review {
  padding: 72px 0;
  background: var(--c-primary);
  position: relative;
  overflow: hidden;
}

.page-home .home-review::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 30%;
  height: 200%;
  background: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(0, 255, 136, 0.05) 18px 20px);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-home .home-review-head {
  color: #fff;
  max-width: 680px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.page-home .home-review-head h2 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin: 12px 0 12px;
}

.page-home .home-review-head p:last-child {
  color: #aebbd0;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

.page-home .home-review-list {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.page-home .home-review-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(30, 58, 111, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  text-decoration: none;
  color: #fff;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-review-item:hover {
  border-color: var(--c-accent);
  background: rgba(30, 58, 111, 0.55);
  transform: translateX(6px);
}

.page-home .home-review-idx {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-accent);
  flex: 0 0 auto;
}

.page-home .home-review-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .home-review-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
  flex: 0 0 auto;
  white-space: nowrap;
}

.page-home .home-download {
  padding: 72px 0;
  background: #fff;
}

.page-home .home-download-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .home-download-content h2 {
  font-size: 28px;
  font-weight: 900;
  color: var(--c-primary);
  margin: 12px 0 16px;
}

.page-home .home-download-content > p {
  color: var(--c-subtle);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.page-home .home-steps {
  counter-reset: home-step;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.page-home .home-steps li {
  counter-increment: home-step;
  position: relative;
  padding-left: 44px;
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.6;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.page-home .home-steps li::before {
  content: counter(home-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--c-primary);
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-s);
  border: 1px solid rgba(0, 255, 136, 0.35);
}

.page-home .home-download-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-home .home-download-qr {
  width: 96px;
  flex: 0 0 auto;
}

.page-home .home-download-qr svg {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
}

.page-home .home-download-qr-label {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.page-home .home-download-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  object-fit: cover;
  display: block;
}

@keyframes home-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
  }
}

@media (min-width: 720px) {
  .page-home .home-hero-main h1 {
    font-size: 56px;
  }

  .page-home .home-data-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-data-spark svg {
    height: 104px;
  }
}

@media (min-width: 860px) {
  .page-home .home-products-grid {
    grid-template-columns: 1.06fr 0.94fr;
    gap: 32px;
  }

  .page-home .home-story-grid {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }

  .page-home .home-download-grid {
    grid-template-columns: 6fr 6fr;
    gap: 56px;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 64px;
    align-items: center;
  }

  .page-home .home-hero-metrics {
    margin-top: 0;
  }

  .page-home .home-metric-card:nth-child(2) {
    transform: translateX(18px);
  }

  .page-home .home-metric-card:nth-child(2):hover {
    transform: translateX(18px) translateY(-2px);
  }

  .page-home .home-metric-card:nth-child(3) {
    transform: translateX(36px);
  }

  .page-home .home-metric-card:nth-child(3):hover {
    transform: translateX(36px) translateY(-2px);
  }

  .page-home .home-data-inner {
    gap: 40px;
  }

  .page-home .home-data-bottom {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-data-metrics {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .home-data-metric {
    padding: 18px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-metric-card--live,
  .page-home .home-ticker-dot {
    animation: none;
  }

  .page-home .home-data-panel,
  .page-home .home-data-inner {
    transform: none;
  }

  .page-home .home-product-card,
  .page-home .home-metric-card,
  .page-home .home-data-metric,
  .page-home .home-review-item,
  .page-home .home-hero-ghost {
    transition: none;
  }
}
