.page-home {
  --home-radius-lg: 28px;
  --home-radius-md: 18px;
  --home-card-bg: linear-gradient(150deg, rgba(13, 20, 32, 0.92), rgba(7, 11, 20, 0.76));
  --home-glow-blue: 0 0 28px rgba(0, 229, 255, 0.22);
  --home-glow-purple: 0 0 34px rgba(157, 0, 255, 0.22);
  --home-chip-blue-bg: rgba(0, 229, 255, 0.14);
  --home-chip-blue-border: rgba(0, 229, 255, 0.5);
  background: linear-gradient(180deg, var(--c-bg-deep) 0%, var(--c-bg) 32%, var(--c-bg-deep) 100%);
  color: var(--c-text);
  overflow-x: hidden;
}

.page-home [data-reveal] {
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.page-home .home-hero {
  position: relative;
  padding: 44px 0 0;
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 30%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 12%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(157, 0, 255, 0.32), transparent 68%);
  filter: blur(42px);
  pointer-events: none;
}

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

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

.page-home .hero-eyebrow {
  margin-bottom: 14px;
}

.page-home .hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 5.4vw, 2.7rem);
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--c-text);
  margin: 0 0 18px;
}

.page-home .hero-copy h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
}

.page-home .hero-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-text-dim);
  max-width: 56ch;
  margin: 0 0 26px;
}

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

.page-home .hero-stats {
  list-style: none;
  margin: 34px 0 0;
  padding: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  border-top: 1px solid var(--border-soft);
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--c-blue);
  line-height: 1.1;
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
}

.page-home .hero-visual {
  position: relative;
  z-index: 1;
}

.page-home .hero-visual-frame {
  position: relative;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--c-bg-deep);
  box-shadow: 0 28px 60px rgba(3, 6, 14, 0.72);
}

.page-home .hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.94;
}

.page-home .hero-grid-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .grid-node-blue {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.9));
}

.page-home .grid-node-green {
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.85));
}

.page-home .grid-node-purple {
  filter: drop-shadow(0 0 8px rgba(157, 0, 255, 0.9));
}

.page-home .hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
}

.page-home .hero-glow-blue {
  width: 160px;
  height: 160px;
  right: -50px;
  top: -40px;
  background: rgba(0, 229, 255, 0.2);
}

.page-home .hero-glow-purple {
  width: 200px;
  height: 200px;
  left: -60px;
  bottom: -60px;
  background: rgba(157, 0, 255, 0.24);
}

.page-home .home-classification {
  padding: 76px 0 0;
}

.page-home .section-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.page-home .section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1.25;
  color: var(--c-text);
  margin: 10px 0 12px;
}

.page-home .section-intro {
  color: var(--c-text-dim);
  line-height: 1.75;
  font-size: 0.96rem;
  margin: 0;
}

.page-home .classification-grid {
  display: grid;
  gap: 18px;
}

.page-home .classification-card {
  position: relative;
  padding: 34px 28px 28px;
  border-radius: var(--home-radius-md);
  border: 1px solid var(--border-soft);
  background: var(--home-card-bg);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .classification-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 56px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
}

.page-home .classification-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: var(--home-glow-blue);
}

.page-home .card-index {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-purple);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.page-home .classification-card h3 {
  font-family: var(--font-head);
  font-size: 1.22rem;
  margin: 0 0 12px;
  color: var(--c-text);
}

.page-home .classification-card p {
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--c-text-dim);
  margin: 0 0 20px;
}

.page-home .card-link,
.page-home .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-blue);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: gap 0.2s ease, color 0.2s ease;
}

.page-home .card-link:hover,
.page-home .text-link:hover {
  gap: 10px;
  color: #7ef0ff;
}

.page-home .classification-visual {
  position: relative;
  margin-top: 26px;
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.page-home .classification-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .classification-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.08), rgba(10, 14, 23, 0.5));
  pointer-events: none;
}

.page-home .class-legend {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  color: var(--c-text);
  border: 1px solid var(--border-soft);
}

.page-home .class-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-home .legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.page-home .legend-blue { background: var(--c-blue); }
.page-home .legend-purple { background: var(--c-purple); }
.page-home .legend-green { background: var(--c-green); }

.page-home .home-query {
  padding: 80px 0 0;
}

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

.page-home .query-side h2 {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 4vw, 2.1rem);
  line-height: 1.25;
  margin: 10px 0 14px;
}

.page-home .query-side p {
  color: var(--c-text-dim);
  line-height: 1.75;
  font-size: 0.96rem;
  margin: 0 0 20px;
}

.page-home .query-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.page-home .query-features li {
  position: relative;
  padding-left: 24px;
  color: var(--c-text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-home .query-features li::before {
  content: "◈";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--c-blue);
  font-size: 0.9rem;
}

.page-home .query-console-wrap {
  position: relative;
}

.page-home .query-console {
  border: 1px solid var(--border-strong);
  border-radius: var(--home-radius-md);
  overflow: hidden;
  background: rgba(7, 11, 20, 0.86);
  box-shadow: 0 24px 54px rgba(3, 6, 14, 0.6);
  font-family: var(--font-data);
}

.page-home .console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(157, 0, 255, 0.28);
  background: rgba(157, 0, 255, 0.12);
}

.page-home .console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.page-home .console-red { background: #ff5d5d; }
.page-home .console-yellow { background: #ffc24b; }
.page-home .console-green { background: var(--c-green); }

.page-home .console-title {
  margin-left: 6px;
  color: var(--c-text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .console-body {
  padding: 18px 16px;
}

.page-home .console-line {
  margin: 0 0 10px;
  color: var(--c-text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .console-line:last-child {
  margin-bottom: 0;
}

.page-home .console-prompt {
  color: var(--c-blue);
  font-weight: 700;
  margin-right: 4px;
}

.page-home .console-ok {
  color: var(--c-green);
  margin-left: 6px;
}

.page-home .query-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-home .query-img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

@media (min-width: 640px) {
  .page-home .query-img {
    width: 72px;
    height: 72px;
  }
}

.page-home .query-btn {
  margin-left: auto;
}

.page-home .home-rules {
  padding: 80px 0 0;
}

.page-home .rules-steps {
  display: grid;
  gap: 22px;
}

.page-home .rule-step {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(150deg, rgba(255, 248, 231, 0.045), rgba(255, 248, 231, 0.01));
}

.page-home .rule-step::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.35);
  opacity: 0.6;
  pointer-events: none;
}

.page-home .step-tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-green);
  margin-bottom: 16px;
}

.page-home .rule-step h3 {
  font-family: var(--font-head);
  font-size: 1.28rem;
  margin: 0 0 12px;
  color: var(--c-text);
}

.page-home .rule-step p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--c-text-dim);
  margin: 0 0 18px;
  max-width: 42ch;
}

.page-home .home-subscribe {
  padding: 80px 0 0;
}

.page-home .subscribe-layout {
  display: grid;
  gap: 26px;
  align-items: center;
}

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

.page-home .subscribe-plans {
  display: grid;
  gap: 14px;
}

.page-home .plan-card {
  padding: 24px 26px;
  border-radius: var(--home-radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(10, 14, 23, 0.7);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.page-home .plan-card:hover {
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
  transform: translateX(4px);
}

.page-home .chip--blue {
  --chip-bg: var(--home-chip-blue-bg);
  --chip-border: var(--home-chip-blue-border);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
}

.page-home .plan-card h3 {
  font-family: var(--font-head);
  font-size: 1.14rem;
  margin: 12px 0 8px;
  color: var(--c-text);
}

.page-home .plan-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--c-text-dim);
  margin: 0;
}

.page-home .plan-pro {
  border-color: rgba(0, 229, 255, 0.36);
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.1), rgba(13, 18, 30, 0.82));
}

.page-home .home-news {
  padding: 80px 0 72px;
}

.page-home .news-layout {
  display: grid;
  gap: 26px;
}

.page-home .news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-home .news-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.page-home .news-item:first-child {
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}

.page-home .news-item a {
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-home .news-item a:hover {
  color: var(--c-blue);
  transform: translateX(3px);
}

.page-home .feedback-card {
  padding: 30px 28px;
  border-radius: var(--home-radius-lg);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.12), rgba(157, 0, 255, 0.1));
  border: 1px solid var(--border-soft);
}

.page-home .feedback-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--c-text);
}

.page-home .feedback-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--c-text-dim);
  margin: 0 0 20px;
}

.page-home .home-trust {
  margin-top: 48px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 231, 0.04);
  border: 1px solid rgba(255, 248, 231, 0.1);
}

.page-home .trust-mark {
  color: var(--c-green);
  font-size: 1.35rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.page-home .home-trust p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--c-text-dim);
}

@media (min-width: 768px) {
  .page-home .classification-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .page-home .query-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 48px;
  }

  .page-home .rules-steps {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .page-home .subscribe-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 36px;
  }

  .page-home .subscribe-plans {
    grid-template-columns: 1fr;
  }

  .page-home .news-layout {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 30px;
    align-items: start;
  }

  .page-home .home-news {
    padding-bottom: 88px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-layout {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 50px;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    padding-top: 20px;
    padding-bottom: 30px;
  }

  .page-home .home-hero {
    padding-top: 36px;
  }

  .page-home .hero-copy h1 {
    font-size: 2.65rem;
  }

  .page-home .hero-visual-frame {
    transform: rotate(1.2deg) translateX(10px);
    transition: transform 0.35s ease;
  }

  .page-home .hero-visual-frame:hover {
    transform: rotate(0deg) translateX(6px);
  }

  .page-home .home-classification {
    padding-top: 96px;
  }

  .page-home .home-query {
    padding-top: 96px;
  }

  .page-home .home-rules {
    padding-top: 96px;
  }

  .page-home .rule-step:first-child::after {
    content: "→";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-blue);
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  }

  .page-home .home-subscribe {
    padding-top: 96px;
  }

  .page-home .home-news {
    padding-top: 96px;
    padding-bottom: 100px;
  }
}
