/* Front page */
.home { overflow-x: hidden; }
.home a { text-decoration: none; }

.home-hero {
  position: relative; isolation: isolate;
  padding: 88px 24px 72px;
  background:
    linear-gradient(color-mix(in srgb, var(--color-accent) 6%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 6%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(900px 480px at 78% 20%, color-mix(in srgb, var(--color-accent) 28%, transparent), transparent 70%),
    radial-gradient(700px 420px at 8% 90%, color-mix(in srgb, var(--color-accent-2-600) 22%, transparent), transparent 70%);
}
.home-hero-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.home-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-400); border: 1px solid var(--color-divider);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 22px;
}
.home-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04; margin-bottom: 20px; }
.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--color-accent-400), var(--color-accent-2-300), var(--color-accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-lead { font-size: 19px; line-height: 1.6; max-width: 540px; color: color-mix(in srgb, var(--color-text) 72%, transparent); }
.home-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn-primary { background: linear-gradient(135deg, var(--color-accent-500), var(--color-accent-600)); color: #fff !important; box-shadow: 0 8px 28px color-mix(in srgb, var(--color-accent) 45%, transparent); }
.home-btn-ghost { border: 1px solid var(--color-divider); color: var(--color-text) !important; }
.home-btn-ghost:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

.home-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.home-trust span::before { content: "\2713"; color: var(--color-accent-400); margin-right: 7px; font-weight: 700; }

/* Futuristic family-tree hub */
.home-tree { width: 100%; height: auto; overflow: visible; }
.home-tree .strands path { fill: none; stroke: var(--color-accent-400); stroke-width: 1.2; stroke-dasharray: 3 7; opacity: .75; animation: flow 3s linear infinite; }
.home-tree .strands path:nth-child(2n) { animation-duration: 4.5s; opacity: .5; }
.home-tree .spokes path { stroke: var(--color-accent-700); stroke-width: 1; stroke-dasharray: 2 6; fill: none; }
.home-tree .glow { animation: pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.home-tree .ring-spin { transform-origin: 280px 190px; animation: spin 40s linear infinite; }
.home-tree .ring-dash { fill: none; stroke: var(--color-accent-300); stroke-width: 1; stroke-dasharray: 2 9; }
.home-tree .ring-arc { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--color-accent-400)); }
.home-tree .ring-core { fill: color-mix(in srgb, var(--color-bg) 70%, transparent); stroke: var(--color-accent-300); stroke-width: 1.2; }
.home-tree .icon { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-tree .icon.big { stroke-width: 2; }
.home-tree .label { fill: #fff; font: 500 20px Inter, sans-serif; letter-spacing: .08em; }
.home-tree .sat circle { fill: color-mix(in srgb, var(--color-bg) 60%, transparent); stroke: var(--color-accent-300); stroke-width: 1.2; transition: fill .2s; }
.home-tree .sat { animation: bob 6s ease-in-out infinite; }
.home-tree .sat:hover circle { fill: color-mix(in srgb, var(--color-accent) 35%, transparent); }
.home-tree .s2 { animation-delay: -1s; } .home-tree .s3 { animation-delay: -2s; } .home-tree .s4 { animation-delay: -3s; } .home-tree .s5 { animation-delay: -4s; } .home-tree .s6 { animation-delay: -5s; }
@keyframes flow { to { stroke-dashoffset: -40; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* Stats strip */
.home-stats { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.home-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
}
.home-stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--color-divider); }
.home-stat:last-child { border-right: 0; }
.home-stat b { display: block; font-size: 34px; font-weight: 700; color: var(--color-accent-300); }
.home-stat span { font-size: 13px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }

/* Sections */
.home-section { max-width: 1160px; margin: 0 auto; padding: 96px 24px 0; }
.home-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; text-align: center; }
.home-section > p.sub { text-align: center; max-width: 620px; margin: 10px auto 48px; font-size: 17px; color: color-mix(in srgb, var(--color-text) 65%, transparent); }

.home-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-feature {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--color-accent) 10%, var(--color-surface)), var(--color-surface));
  border: 1px solid var(--color-divider); transition: transform .2s, border-color .2s;
}
.home-feature:hover { transform: translateY(-5px); border-color: var(--color-accent-600); }
.home-feature .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
}
.home-feature h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.home-feature p { font-size: 14.5px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 66%, transparent); margin: 0; }
.home-feature .soon { position: absolute; top: 18px; right: 18px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-500); border: 1px solid var(--color-divider); border-radius: 999px; padding: 2px 9px; }

.home-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.home-step { padding: 8px 8px 0; text-align: center; }
.home-step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  font-weight: 700; font-size: 20px; border: 2px solid var(--color-accent-500); color: var(--color-accent-300);
}
.home-step h3 { font-size: 18px; font-weight: 600; }
.home-step p { font-size: 14.5px; color: color-mix(in srgb, var(--color-text) 62%, transparent); }

.home-final {
  max-width: 1160px; margin: 96px auto 72px; padding: 56px 24px; text-align: center; border-radius: 22px;
  background: radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--color-accent) 35%, transparent), transparent 70%), var(--color-surface);
  border: 1px solid var(--color-divider);
}
.home-final h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; }
.home-final p { color: color-mix(in srgb, var(--color-text) 66%, transparent); margin-bottom: 26px; }
.home-final .home-cta { justify-content: center; margin-top: 0; }

@media (max-width: 900px) {
  .home-hero { padding-top: 56px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-features, .home-steps { grid-template-columns: 1fr; }
  .home-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .home-stat:nth-child(2) { border-right: 0; }
  .home-stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-divider); }
}
@media (prefers-reduced-motion: reduce) {
  .home-tree *, .home-tree { animation: none !important; }
}
