.page-home {
  background: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
}

/* ---------- HERO ---------- */
.page-home .hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 28px) 0 44px;
  overflow: hidden;
  background: var(--bg-deep);
  isolation: isolate;
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.page-home .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 31, 0.94) 0%, rgba(10, 15, 31, 0.72) 46%, rgba(17, 26, 58, 0.42) 100%),
    radial-gradient(ellipse at 72% 42%, rgba(123, 45, 223, 0.18) 0%, transparent 62%);
}

.page-home .hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.page-home .particle-lines line {
  stroke: var(--purple);
  stroke-width: 1;
  opacity: 0.35;
  animation: ag-home-line-breathe 7s ease-in-out infinite alternate;
}

@keyframes ag-home-line-breathe {
  0% { opacity: 0.15; }
  100% { opacity: 0.55; }
}

.page-home .particle-dots circle {
  fill: var(--purple);
  transform-box: fill-box;
  transform-origin: center;
  animation: ag-home-pulse 5s ease-in-out infinite alternate;
}

.page-home .particle-dots circle:nth-child(2n) {
  animation-delay: 0.6s;
}

.page-home .particle-dots circle:nth-child(3n) {
  animation-delay: 1.2s;
}

.page-home .particle-dots circle:nth-child(4n) {
  fill: var(--orange);
  animation-delay: 1.8s;
}

@keyframes ag-home-pulse {
  0% { opacity: 0.3; transform: scale(0.82); }
  100% { opacity: 1; transform: scale(1.18); }
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-home .breadcrumb {
  margin-bottom: 32px;
}

.page-home .breadcrumb-list {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

.page-home .hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: end;
}

.page-home .hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--orange);
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.page-home .hero-main h1 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  max-width: 13em;
}

.page-home .hero-version {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.page-home .hero-version-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--text-main);
  transition: filter 0.3s ease;
}

.page-home .hero-version-num:hover {
  filter: drop-shadow(0 0 22px rgba(123, 45, 223, 0.55));
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .page-home .hero-version-num {
    background-image: linear-gradient(135deg, #ffffff 20%, #cbd5e1 55%, #7b2ddf 110%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.page-home .hero-version-side {
  writing-mode: vertical-rl;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--purple);
  border: 2px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
}

.page-home .hero-version-tag {
  align-self: flex-start;
}

.page-home .hero-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
  color: var(--text-sub);
  margin: 0 0 30px;
  max-width: 35em;
}

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

.page-home .hero-aside {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

.page-home .hero-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .hero-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.page-home .hero-card--primary {
  grid-column: 1 / -1;
  background: var(--gradient-main);
  border-color: transparent;
}

.page-home .hero-card--primary:hover {
  box-shadow: 0 10px 40px rgba(123, 45, 223, 0.28);
}

.page-home .hero-card--wide {
  grid-column: 1 / -1;
}

.page-home .hero-card-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1;
  color: var(--text-main);
}

.page-home .hero-card--secondary .hero-card-num {
  color: var(--orange);
}

.page-home .hero-card-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-sub);
}

.page-home .hero-card--primary .hero-card-label {
  color: rgba(248, 250, 252, 0.82);
}

.page-home .hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-sub);
  text-transform: uppercase;
}

.page-home .hero-scroll-text {
  white-space: nowrap;
}

.page-home .hero-scroll-line {
  position: relative;
  width: 72px;
  height: 2px;
  background: var(--border-color);
  overflow: hidden;
}

.page-home .hero-scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--purple), var(--orange));
  transform: translateX(-100%);
  animation: ag-home-line-slide 2.8s ease-in-out infinite;
}

@keyframes ag-home-line-slide {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- VERSION ---------- */
.page-home .version-section {
  background: linear-gradient(170deg, var(--bg-deep) 0%, var(--bg-card) 48%, var(--bg-deep) 100%);
  border-top: 2px solid var(--border-color);
}

.page-home .version-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 52px;
}

.page-home .version-hero {
  padding-top: 28px;
  border-top: 4px solid var(--purple);
}

.page-home .version-flag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin: 0 0 14px;
}

.page-home .version-large {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.page-home .version-sub {
  max-width: 24em;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--text-sub);
  margin: 0 0 26px;
}

.page-home .version-features {
  padding: 26px 22px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.page-home .version-features-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.02rem;
  color: var(--text-main);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .version-features-title::before {
  content: '';
  width: 22px;
  height: 4px;
  background: var(--orange);
}

.page-home .version-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-home .version-feature {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: start;
}

.page-home .version-feature-tag {
  justify-self: start;
}

.page-home .version-feature p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
}

.page-home .version-timeline {
  padding-top: 26px;
  border-top: 4px solid var(--border-color);
}

.page-home .version-timeline-title {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--text-sub);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.page-home .version-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-home .version-timeline-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-sub);
}

.page-home .version-timeline-item .mono {
  font-weight: 700;
  font-size: 0.95rem;
  color: inherit;
}

.page-home .version-year {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-sub);
}

.page-home .version-timeline-item--current {
  color: var(--text-main);
  border-bottom-color: var(--purple);
}

.page-home .version-timeline-item--current .mono {
  font-weight: 900;
  color: var(--orange);
}

.page-home .version-timeline-tag {
  font-size: 0.68rem;
}

/* ---------- TRUST ---------- */
.page-home .trust-section {
  position: relative;
  padding: 44px 0 40px;
  background: var(--bg-black);
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  overflow: hidden;
}

.page-home .trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(123, 45, 223, 0.16) 0%, transparent 38%, rgba(255, 107, 53, 0.1) 100%);
  pointer-events: none;
}

.page-home .trust-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.page-home .trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
  border-left: 2px solid var(--purple);
}

.page-home .trust-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1;
  color: var(--text-main);
}

.page-home .trust-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-sub);
}

.page-home .trust-item--cert .trust-cert {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1;
  color: var(--orange);
}

.page-home .trust-more {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.page-home .trust-more a {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-home .trust-more a:hover,
.page-home .trust-more a:focus-visible {
  color: var(--orange);
}

/* ---------- SERVICES ---------- */
.page-home .services-section {
  background: var(--bg-deep);
}

.page-home .services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 52px;
  align-items: center;
}

.page-home .services-lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--text-sub);
  margin: 0 0 24px;
  padding: 18px 0 18px 22px;
  border-left: 4px solid var(--purple);
  max-width: 33em;
}

.page-home .services-tags {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .services-tags .tag {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-sub);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-home .services-tags .tag:hover {
  border-color: var(--purple);
  color: var(--text-main);
}

.page-home .services-visual {
  position: relative;
}

.page-home .services-img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

.page-home .services-map-wrap {
  margin-top: 48px;
  padding: 28px 0;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  background: radial-gradient(ellipse at 50% 50%, rgba(123, 45, 223, 0.07) 0%, transparent 72%);
}

.page-home .services-node-map {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .services-node-map .node line {
  stroke: rgba(123, 45, 223, 0.32);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: ag-home-dash 14s linear infinite;
  transition: stroke 0.3s ease, opacity 0.3s ease;
}

@keyframes ag-home-dash {
  to { stroke-dashoffset: -120; }
}

.page-home .services-node-map .node circle {
  fill: var(--bg-card);
  stroke: var(--border-color);
  stroke-width: 2;
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.page-home .services-node-map .node text {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  fill: var(--text-main);
}

.page-home .services-node-map .node-hub circle {
  fill: var(--purple);
  stroke: var(--orange);
  stroke-width: 3;
}

.page-home .services-node-map .node-hub text {
  font-size: 17px;
  font-weight: 900;
  fill: #ffffff;
  letter-spacing: 0.08em;
}

.page-home .services-node-map .node:hover line {
  stroke: var(--orange);
  opacity: 1;
}

.page-home .services-node-map .node:hover circle {
  fill: var(--purple);
  stroke: var(--orange);
}

.page-home .services-node-map .node:hover text {
  fill: #ffffff;
}

/* ---------- MEMBER ---------- */
.page-home .member-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-card) 46%, var(--bg-deep) 100%);
}

.page-home .member-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  margin-top: 52px;
  align-items: center;
}

.page-home .member-visual {
  position: relative;
}

.page-home .member-img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

.page-home .member-visual::after {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 55%;
  height: 55%;
  border-top: 3px solid var(--purple);
  border-right: 3px solid var(--purple);
  border-radius: 0 var(--radius-md) 0 0;
  z-index: -1;
}

.page-home .member-visual-overlay {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(8, 11, 26, 0.75);
  border-radius: var(--radius-sm);
}

.page-home .member-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .member-lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--text-sub);
  margin: 0 0 26px;
  max-width: 30em;
}

.page-home .member-points {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  width: 100%;
  border-top: 2px solid var(--border-color);
}

.page-home .member-point {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 2px solid var(--border-color);
}

.page-home .member-point-year {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--purple);
}

.page-home .member-point-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* ---------- REGISTER ---------- */
.page-home .register-section {
  background: var(--bg-deep);
}

.page-home .register-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-top: 52px;
  align-items: center;
}

.page-home .steps-track {
  display: flex;
  flex-direction: column;
}

.page-home .step-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 26px 20px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-home .step-card:hover {
  transform: translateX(8px);
  border-color: var(--purple);
  box-shadow: var(--shadow-glow);
}

.page-home .step-card--final {
  margin-bottom: 0;
}

.page-home .step-card-num {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--orange);
}

.page-home .step-card-body h3 {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--text-main);
  margin: 0 0 8px;
}

.page-home .step-card-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0;
}

.page-home .step-card-arrow {
  width: 32px;
  height: 32px;
  align-self: end;
  margin-bottom: 24px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
  opacity: 0.5;
}

.page-home .register-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.page-home .register-img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  object-fit: cover;
}

.page-home .register-side-note {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-sub);
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}

.page-home .register-support-link {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-home .register-support-link:hover,
.page-home .register-support-link:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- MOBILE TWEAKS ---------- */
@media (max-width: 767px) {
  .page-home .hero-particles {
    opacity: 0.5;
  }

  .page-home .step-card-arrow {
    display: none;
  }

  .page-home .step-card {
    grid-template-columns: 48px 1fr;
  }
}

/* ---------- TABLET / DESKTOP ---------- */
@media (min-width: 768px) {
  .page-home .hero-particles {
    opacity: 1;
  }

  .page-home .trust-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-home .hero-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }

  .page-home .hero-aside {
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    padding: calc(var(--header-height) + 40px) 0 56px;
  }

  .page-home .version-layout {
    grid-template-columns: 1.1fr 1fr 0.9fr;
    gap: 48px;
    align-items: start;
  }

  .page-home .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .page-home .member-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }

  .page-home .register-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}
