* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background:
    radial-gradient(circle at top, #123826 0, #020604 55%),
    linear-gradient(135deg, #04100b, #020604 60%, #050a08 100%);
  color: #d7e4dd;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */

.bv-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(2, 6, 4, 0.95), rgba(2, 6, 4, 0.75));
  border-bottom: 1px solid rgba(129, 171, 149, 0.35);
}

.bv-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bv-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bv-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bv-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #9ae6b4, #38b2ac 45%, #134e4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #020604;
  box-shadow: 0 0 0 1px rgba(148, 250, 193, 0.4), 0 18px 40px rgba(0, 0, 0, 0.8);
}

.bv-logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #9ae6b4 0%, #69d3ac 32%, #4ade80 60%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bv-nav {
  display: flex;
  gap: 18px;
}

.bv-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 250, 193, 0.45);
}

.bv-lang-pill {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  text-decoration: none;
  color: #9CA3AF;
}

.bv-lang-pill.is-active {
  background: linear-gradient(135deg, #bbf7d0, #4ade80);
  color: #022c22;
}

.bv-nav-link {
  position: relative;
  font-size: 14px;
  color: #c5d9d0;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bv-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, #a7f3d0, #4ade80);
  transition: width 0.2s ease-out;
}

.bv-nav-link:hover::after {
  width: 100%;
}

/* SECTIONS BASE */

main {
  flex: 1;
}

.section,
.hero,
.video-section {
  padding: 72px 20px;
}

.section > .section-header,
.hero-inner,
.video-frame,
.portfolio-list,
.ecosystem-layout,
.invest-body {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 26px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5f5ec;
  margin-bottom: 10px;
}

.section-subtitle {
  max-width: 640px;
  color: #97b3a6;
  font-size: 16px;
  line-height: 1.6;
}

.placeholder-note {
  margin-top: 10px;
  font-size: 14px;
  color: #6f8b7d;
  font-style: italic;
}

/* HERO */

.hero {
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.22), transparent 55%),
    radial-gradient(circle at 100% 20%, rgba(45, 212, 191, 0.16), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(0, 0, 0, 0.8), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 720px;
}

.hero-overline {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8fbfa5;
  margin-bottom: 14px;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 22px;
  background: linear-gradient(120deg, #eaf8f0 0%, #bbf7d0 35%, #4ade80 70%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.hero-body {
  font-size: 16px;
  line-height: 1.7;
  color: #a0b9ac;
}

/* First supporting line under the hero title */
.hero-body-primary {
  margin-bottom: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #d4f0e3;
}

/* Second, more intimate line */
.hero-body-secondary {
  font-style: italic;
  color: #8bb9a9;
  letter-spacing: 0.015em;
  margin-bottom: 22px;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out, border-color 0.15s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #4ade80, #22c55e, #16a34a);
  color: #021207;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(190, 242, 200, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

.btn-secondary {
  background: transparent;
  color: #c5d9d0;
  border: 1px solid rgba(156, 178, 167, 0.6);
}

.btn-secondary:hover {
  border-color: rgba(190, 242, 200, 0.9);
  background: rgba(15, 23, 20, 0.6);
}

/* VIDEO */

.video-section {
  padding-top: 32px;
}

.video-frame {
  border-radius: 18px;
  border: 1px solid rgba(132, 189, 159, 0.6);
  background: radial-gradient(circle at 10% 0, #1b4332 0, #020604 60%);
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
}

.video-frame video {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.video-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #8daa9d;
}

/* PORTFOLIO */

.portfolio-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-left: 80px; /* leave room on the left for the flow */
}

/* Vertical spine showing the flow from Wallopop -> Myzine -> Education -> Travel -> BetterVerse */
.portfolio-list::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  bottom: -70px; /* extend further into the gap above BetterVerse */
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(15, 118, 110, 0.0) 0%,
    rgba(167, 243, 208, 0.35) 10%,
    rgba(167, 243, 208, 0.85) 40%,
    rgba(52, 211, 153, 0.95) 60%,
    rgba(167, 243, 208, 0.75) 80%,
    rgba(15, 118, 110, 0.0) 100%
  );
  box-shadow:
    0 0 18px rgba(16, 185, 129, 0.85),
    0 0 40px rgba(6, 95, 70, 0.9);
  pointer-events: none;
}

/* Arrow at the bottom, pointing down toward the BetterVerse section */
.portfolio-list::after {
  content: "";
  position: absolute;
  left: 40px;
  bottom: -76px; /* align with extended spine end */
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid rgba(167, 243, 208, 0.95);
  filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.9));
}

.portfolio-item {
  display: flex;
  gap: 24px;
  padding: 20px 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.16), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(21, 128, 61, 0.18), transparent 60%),
    rgba(3, 10, 7, 0.85);
  border: 1px solid rgba(110, 166, 138, 0.6);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out,
    background 0.18s ease-out;
}

/* Glow overlay on hover */
.portfolio-item::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at 0 0, rgba(74, 222, 128, 0.18), transparent 55%);
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}


.portfolio-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  border-color: rgba(148, 250, 193, 0.9);
  background: radial-gradient(circle at 0 0, rgba(74, 222, 128, 0.22), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(45, 212, 191, 0.26), transparent 60%),
    rgba(3, 10, 7, 0.95);
}

.portfolio-item:hover::before {
  opacity: 1;
}

.portfolio-left {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 250, 193, 0.9);
  background: rgba(6, 22, 12, 0.9);
  text-decoration: none;
  cursor: pointer;
}

.product-chip-disabled {
  border-style: dashed;
  border-color: rgba(120, 156, 136, 0.9);
  cursor: default;
}

.product-chip-future {
  border-color: rgba(74, 222, 128, 0.7);
}

.product-icon {
  font-size: 16px;
  color: #bbf7d0;
}

.product-name {
  font-size: 14px;
  color: #d9f5e4;
}

.product-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #8fbfa5;
}

.product-hint {
  margin-top: 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7ea996;
  opacity: 0.8;
}

.product-tag-live {
  color: #bbf7d0;
}

.portfolio-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.portfolio-body {
  font-size: 15px;
  line-height: 1.7;
  color: #b1c7bd;
}

/* ECOSYSTEM */

.ecosystem-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 28px;
}

.ecosystem-diagram {
  position: relative;
  border-radius: 24px;
  padding: 24px 32px 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.28), transparent 60%),
    rgba(3, 13, 10, 0.96);
  border: 1px solid rgba(94, 234, 212, 0.5);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.ecosystem-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ecosystem-core,
.ecosystem-orbit,
.ecosystem-main-subtitle {
  position: relative;
  z-index: 1;
}

.ecosystem-core {
  margin-top: 6px;
  text-align: center;
}

.ecosystem-diagram::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(190, 242, 255, 0.8), rgba(34, 197, 94, 0) 70%);
  opacity: 0.7;
  filter: blur(14px);
  pointer-events: none;
}

.ecosystem-main-pill {
  margin: 0 auto 10px auto;
  padding: 10px 22px;
  border-radius: 999px;
  width: fit-content;
  background: radial-gradient(circle at 0 0, #bbf7d0, #4ade80 50%, #14b8a6 100%);
  color: #022c22;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 26px rgba(45, 212, 191, 0.7);
}

.ecosystem-main-subtitle {
  text-align: center;
  font-size: 13px;
  color: #9fbeb1;
  margin-top: 12px;
}

/* Floating particle animation behind BetterVerse */
.ecosystem-particles .particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(190, 242, 255, 0.95);
  box-shadow: 0 0 16px rgba(190, 242, 255, 0.95);
  opacity: 0;
}

.ecosystem-particles .p1 {
  top: 26%;
  left: 22%;
  animation: floatParticle1 12s linear infinite;
}

.ecosystem-particles .p2 {
  top: 20%;
  right: 20%;
  animation: floatParticle2 13s linear infinite;
}

.ecosystem-particles .p3 {
  bottom: 24%;
  left: 26%;
  animation: floatParticle3 12.5s linear infinite;
}

.ecosystem-particles .p4 {
  bottom: 18%;
  right: 24%;
  animation: floatParticle4 14s linear infinite;
}

.ecosystem-particles .p5 {
  top: 48%;
  left: 50%;
  animation: floatParticle5 15s linear infinite;
}

.ecosystem-particles .p6 {
  top: 34%;
  left: 42%;
  animation: floatParticle6 11.5s linear infinite;
}

.ecosystem-particles .p7 {
  top: 58%;
  right: 40%;
  animation: floatParticle7 13.5s linear infinite;
}

.ecosystem-particles .p8 {
  bottom: 28%;
  right: 34%;
  animation: floatParticle8 14.5s linear infinite;
}

.ecosystem-particles .p9 {
  bottom: 32%;
  left: 38%;
  animation: floatParticle9 12.8s linear infinite;
}

.ecosystem-particles .p10 {
  top: 38%;
  left: 54%;
  animation: floatParticle10 16s linear infinite;
}

.ecosystem-particles .p11 {
  top: 42%;
  right: 46%;
  animation: floatParticle11 17s linear infinite;
}

.ecosystem-particles .p12 {
  bottom: 22%;
  left: 50%;
  animation: floatParticle12 18s linear infinite;
}

.ecosystem-particles .p13 {
  top: 30%;
  right: 32%;
  animation: floatParticle13 16.5s linear infinite;
}

.ecosystem-particles .p14 {
  bottom: 36%;
  left: 30%;
  animation: floatParticle14 17.5s linear infinite;
}

@keyframes floatParticle1 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate3d(40px, -60px, 0); opacity: 0.9; }
  90% { opacity: 0; }
  100% { transform: translate3d(60px, -90px, 0); opacity: 0; }
}

@keyframes floatParticle2 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate3d(-40px, -50px, 0); opacity: 0.9; }
  90% { opacity: 0; }
  100% { transform: translate3d(-60px, -80px, 0); opacity: 0; }
}

@keyframes floatParticle3 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate3d(30px, 40px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(60px, 70px, 0); opacity: 0; }
}

@keyframes floatParticle4 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translate3d(-30px, 40px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(-60px, 70px, 0); opacity: 0; }
}

@keyframes floatParticle5 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate3d(0, -70px, 0); opacity: 0.9; }
  90% { opacity: 0; }
  100% { transform: translate3d(0, -110px, 0); opacity: 0; }
}

@keyframes floatParticle6 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate3d(20px, -40px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(40px, -70px, 0); opacity: 0; }
}

@keyframes floatParticle7 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate3d(-20px, -50px, 0); opacity: 0.9; }
  90% { opacity: 0; }
  100% { transform: translate3d(-40px, -80px, 0); opacity: 0; }
}

@keyframes floatParticle8 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate3d(-30px, 30px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(-50px, 60px, 0); opacity: 0; }
}

@keyframes floatParticle9 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  18% { opacity: 1; }
  50% { transform: translate3d(30px, 30px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(50px, 60px, 0); opacity: 0; }
}

@keyframes floatParticle10 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate3d(10px, -60px, 0); opacity: 0.9; }
  90% { opacity: 0; }
  100% { transform: translate3d(20px, -90px, 0); opacity: 0; }
}

@keyframes floatParticle11 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translate3d(-10px, 60px, 0); opacity: 0.9; }
  90% { opacity: 0; }
  100% { transform: translate3d(-25px, 90px, 0); opacity: 0; }
}

@keyframes floatParticle12 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  14% { opacity: 1; }
  50% { transform: translate3d(0, 70px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(0, 110px, 0); opacity: 0; }
}

@keyframes floatParticle13 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate3d(-40px, -40px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(-70px, -70px, 0); opacity: 0; }
}

@keyframes floatParticle14 {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  18% { opacity: 1; }
  50% { transform: translate3d(40px, 20px, 0); opacity: 0.85; }
  90% { opacity: 0; }
  100% { transform: translate3d(80px, 40px, 0); opacity: 0; }
}

.ecosystem-orbit {
  position: relative;
  width: 100%;
  height: 220px;
}

.ecosystem-orbit span {
  position: absolute;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 250, 193, 0.7);
  font-size: 13px;
  color: #d7fbe8;
  background: radial-gradient(circle at 0 0, rgba(15, 118, 110, 0.6), transparent 70%);
}

/* Position each product around BetterVerse */
.ecosystem-orbit span:nth-child(1) { /* Wallopop */
  top: 16%;
  left: 12%;
}

.ecosystem-orbit span:nth-child(2) { /* Myzine */
  top: 16%;
  right: 12%;
}

.ecosystem-orbit span:nth-child(3) { /* Education */
  bottom: 20%;
  left: 10%;
}

.ecosystem-orbit span:nth-child(4) { /* Travel */
  bottom: 20%;
  right: 10%;
}

.ecosystem-orbit span:nth-child(5) { /* More to come */
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
}

.ecosystem-more-pill {
  opacity: 0.7;
  border-style: dashed;
}

.ecosystem-orbit-secondary {
  margin-top: 6px;
}

.ecosystem-betterverse-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at 0 0, #bbf7d0, #4ade80 50%, #14b8a6 100%);
  color: #022c22;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.55);
}

.ecosystem-caption {
  font-size: 13px;
  color: #7a9789;
}

.ecosystem-copy p {
  font-size: 15px;
  line-height: 1.8;
  color: #a0b9ac;
}

.ecosystem-copy p + p {
  margin-top: 10px;
}

/* INVEST */

.invest-body {
  margin-top: 32px;
}

.invest-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #a0b9ac;
}

.invest-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.invest-note {
  font-size: 13px;
  color: #7a9789;
}

/* FOOTER */

.page-footer {
  border-top: 1px solid rgba(110, 166, 138, 0.6);
  background: rgba(2, 6, 4, 0.96);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: baseline;
  color: #8fbfa5;
  font-size: 13px;
}

.footer-brand {
  font-weight: 600;
}

.footer-mood {
  opacity: 0.85;
}

.footer-meta {
  opacity: 0.7;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .bv-header-inner {
    padding-inline: 14px;
  }

  .bv-nav {
    gap: 10px;
  }

  .hero {
    padding-inline: 16px;
  }

  .video-section,
  .section {
    padding-inline: 16px;
  }

  .portfolio-item {
    flex-direction: column;
  }

  .portfolio-left {
    min-width: 0;
  }

  .portfolio-list {
    padding-left: 0;
  }

  .portfolio-flow {
    display: none;
  }

  .ecosystem-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* INTRO OVERLAY */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.98));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}

.intro-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.intro-overlay--fadeout {
  opacity: 0;
  pointer-events: none;
}

.intro-glass {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0 8vw;
  border-radius: 0;
  background: none;
  border: none;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: introGlassIn 0.6s ease-out forwards;
}

.intro-glass::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.98)),
    url("intro-glass-crack.png") center/cover no-repeat;
  filter: blur(10px) brightness(0.35);
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.intro-glass::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(248, 250, 252, 0.85), transparent 78%);
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.intro-text {
  position: relative;
  z-index: 2; /* above blurred glass, below crack */
  text-align: center;
  max-width: min(900px, 92vw);
  margin: 0 auto;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

.intro-line {
  min-height: 1.8em;
  font-size: 32px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-spacing: 0.32em; /* make spaces between words clearly visible */
  margin-bottom: 18px;
  color: #f9fafb;
  text-shadow:
    0 0 22px rgba(16, 185, 129, 0.55),
    0 0 40px rgba(6, 95, 70, 0.8);
}

.intro-line + .intro-line {
  margin-top: 6px;
}

.intro-line:nth-child(1) {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(115deg, #fef3c7, #facc15, #f97316, #fb7185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-line:nth-child(2) {
  font-size: 34px;
  font-weight: 700;
  opacity: 0.95;
  background: linear-gradient(115deg, #a5f3fc, #38bdf8, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-line:nth-child(3) {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(115deg, #bbf7d0, #4ade80, #22d3ee, #f97316, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 24px rgba(59, 130, 246, 0.8),
    0 0 40px rgba(248, 250, 252, 0.9);
}

.intro-char {
  display: inline-block;
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}

.intro-space {
  display: inline-block;
  width: 0.7em; /* explicit visual gap between words */
}

.intro-char--hidden {
  opacity: 0;
}

.intro-crack {
  position: absolute;
  inset: -40px;
  opacity: 0;
  pointer-events: none;
  background:
    url("intro-glass-crack.png") center/cover no-repeat;
  z-index: 3;
  transform: scale(0.96);
  transform-origin: center;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.intro-overlay--crack .intro-crack {
  opacity: 1;
  transform: scale(1);
  animation: introGlassShake 0.5s ease-out;
}

.intro-overlay--crack .intro-glass {
  box-shadow:
    0 0 0 1px rgba(190, 242, 255, 0.5),
    0 40px 90px rgba(0, 0, 0, 1);
}

.intro-overlay--crack .intro-glass::before {
  filter: blur(6px) brightness(0.7);
}

.intro-particle {
  position: absolute;
  border-radius: 999px;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.6);
  box-shadow: 0 0 16px rgba(248, 250, 252, 0.9);
  animation: introParticleFlight var(--tdur, 800ms) cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}

@keyframes introGlassIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introGlassShake {
  0% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-3px, 2px, 0);
  }
  40% {
    transform: translate3d(3px, -2px, 0);
  }
  60% {
    transform: translate3d(-2px, 1px, 0);
  }
  80% {
    transform: translate3d(2px, -1px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes introParticleFlight {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  12% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translate3d(var(--tx), var(--ty), 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--tx) * 1.2), calc(var(--ty) * 1.2), 0) scale(0.2);
  }
}
