/* A connected launch path, grounded in Vplay's blue-on-black gaming identity. */
.home-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--accent);
}
.home-page .band {
  padding-top: 15px;
  padding-bottom: 55px;
}
.home-page .section-heading {
  margin-bottom: 25px;
}
.home-page .section-heading h2 {
  font-size: clamp(23px, 2.2vw, 30px);
}
.home-page .launch-section {
  padding-block: 45px 55px;
}
.home-page .launch-steps {
  gap: 18px;
}
.home-page .launch-steps > div {
  padding: 30px 25px;
  border: 1px solid var(--line);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.home-page .launch-steps > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 40px;
  height: 2px;
  background: var(--accent);
  opacity: 0.45;
  transition:
    width 0.3s,
    opacity 0.3s;
}
.home-page .launch-steps > div:hover {
  border-color: #3d6177;
}
.home-page .launch-steps > div:hover::before {
  width: 90px;
  opacity: 1;
}
.home-page .launch-steps .step-number {
  left: auto;
  right: 16px;
  top: 13px;
  background: none;
  color: #6a8291;
  font-size: 10px;
  width: auto;
  height: auto;
}
.home-page .launch-steps h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  margin-bottom: 17px;
  padding-right: 10px;
}
.home-page .launch-steps .home-icon {
  width: 26px;
  height: 26px;
}
.home-page .launch-steps p {
  line-height: 1.85;
}
.home-main > .community-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  padding: 50px;
  border: 1px solid #29414e;
  border-radius: 9px;
  margin-block: 20px 35px;
  overflow: hidden;
}
.community-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.community-heading {
  align-self: center;
}
.community-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #29414e;
  border-radius: 13px;
  margin-bottom: 25px;
  background: #061017;
}
.community-symbol .home-icon {
  width: 35px;
  height: 35px;
}
.community-heading h2 {
  font-size: clamp(30px, 3.2vw, 43px);
  max-width: 15ch;
  line-height: 1.2;
  letter-spacing: -0.045em;
  color: var(--accent);
  margin: 0;
}
.community-line {
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 25px;
  background: var(--accent);
  opacity: 0.5;
}
.community-copy .community-lead {
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  max-width: none;
  margin-bottom: 20px;
}
.community-copy .muted {
  font-size: 12px;
  line-height: 1.9;
}
.community-promise {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin: 22px 0 18px;
}
.community-copy .button {
  font-size: 12px;
}
.home-main > .home-rule {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 55px;
}
.home-rule > .home-icon {
  width: 30px;
  height: 30px;
  margin-top: 2px;
}
.home-rule h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.home-rule p {
  font-size: 14px;
  max-width: 95ch;
  line-height: 1.9;
}
/* Headline entrance. Hidden until the font is ready (homepage.js), then each line
   rises and sharpens out of a soft blur, and a light sweeps across the blue words.
   A fail-safe shows the text after 2.5s even if the script never runs. */
html.title-pending .home-page .hero-copy h1 > span {
  opacity: 0;
  animation: home-title-failsafe 0s linear 2.5s forwards;
}
@keyframes home-title-failsafe {
  to { opacity: 1; }
}
.home-page.title-play .hero-copy h1 > span {
  display: inline-block;
  /* Render each line once as its own layer and slide that, so it moves smoothly
     instead of being redrawn and snapped to whole pixels on every frame. */
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: home-title-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-page.title-play .hero-copy h1 > span:nth-child(2) {
  animation-delay: 0.16s;
}
@keyframes home-title-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.28em, 0);
    filter: blur(10px);
  }
  60% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
.home-page.title-play .hero-copy h1 strong {
  background: linear-gradient(100deg, #66c0f4 0%, #66c0f4 42%, #f2fbff 50%, #66c0f4 58%, #66c0f4 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    home-title-shine 1.4s cubic-bezier(0.45, 0, 0.2, 1) 0.85s both,
    home-blue-breathe 6s ease-in-out 2.4s infinite;
}
@keyframes home-title-shine {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
.home-page .hero-copy h1 strong {
  animation: home-blue-breathe 6s ease-in-out infinite;
}
.home-reveal.is-entering {
  animation: home-section-in 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.home-reveal.is-inview .community-symbol {
  animation: home-emblem-breathe 5s ease-in-out infinite;
}
@keyframes home-title-in {
  from {
    opacity: 0;
    transform: translateY(12px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
}
@keyframes home-section-in {
  from {
    opacity: 0.3;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes home-blue-breathe {
  0%,
  100% {
    text-shadow: 0 0 24px #66c0f400;
  }
  50% {
    text-shadow: 0 0 27px #66c0f42a;
  }
}
@keyframes home-emblem-breathe {
  0%,
  100% {
    border-color: #29414e;
  }
  50% {
    border-color: #66c0f4;
  }
}
html:lang(si) .community-heading h2 {
  letter-spacing: 0;
  line-height: 1.5;
  max-width: none;
}
@media (max-width: 900px) {
  .home-main > .community-section {
    gap: 35px;
    padding: 35px;
  }
}
@media (max-width: 760px) {
  .home-page .launch-section {
    padding-block: 30px 35px;
  }
  .home-page .launch-steps > div {
    padding: 26px 22px;
  }
  .home-main > .community-section {
    grid-template-columns: 1fr;
    padding: 30px 25px;
    gap: 26px;
    margin-top: 10px;
  }
  .community-heading h2 {
    max-width: 18ch;
    font-size: 31px;
  }
  .community-symbol {
    margin-bottom: 18px;
    width: 54px;
    height: 54px;
  }
  .community-line {
    display: none;
  }
  .home-main > .home-rule {
    padding: 24px 20px;
    gap: 15px;
  }
  .home-rule h3 {
    font-size: 17px;
  }
  .home-rule p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-copy h1 > span,
  .home-page .hero-copy h1 strong,
  .home-reveal.is-entering,
  .home-reveal.is-inview .community-symbol {
    animation: none !important;
  }
  .home-page .launch-steps > div,
  .home-page .launch-steps > div::before {
    transition: none;
  }
}

/* Homepage offline rule uses the shared caution card (app.css). */
.home-main > .home-rule.rule-callout {
  display: block;
  padding: 26px 30px 26px 100px;
  border: 1px solid rgba(245, 181, 68, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(245, 181, 68, 0.13), transparent 55%),
    linear-gradient(135deg, rgba(245, 181, 68, 0.06), rgba(14, 12, 8, 0.65));
}
.home-rule.rule-callout::before {
  left: 28px;
  top: 26px;
}
.home-rule.rule-callout > .home-icon {
  display: none;
}
.home-rule.rule-callout h3 {
  color: #f7c66b;
}
@media (max-width: 560px) {
  .home-main > .home-rule.rule-callout {
    padding: 88px 20px 20px;
  }
  .home-rule.rule-callout::before {
    left: 20px;
    top: 20px;
  }
}
