/* Echo Blast landing page. Always dark: the game's basalt caves, cyan crystals and gold controls. */
.eb {
  --eb-bg: #040818;
  --eb-panel: rgba(14, 24, 54, .72);
  --eb-line: rgba(120, 190, 255, .16);
  --eb-ice: #9fe6ff;
  --eb-cyan: #3cc8ff;
  --eb-gold: #ffb830;
  --eb-ember: #ff7a2f;
  --eb-text: #e9f0ff;
  --eb-muted: #9fb0d6;
  --eb-display: "Oswald", "Bricolage Grotesque", "Arial Narrow", sans-serif;
  background: var(--eb-bg);
  color: var(--eb-text);
  overflow-x: clip;
}
.eb h1, .eb h2, .eb h3 { font-family: var(--eb-display); text-transform: uppercase; letter-spacing: .01em; }
.eb a { color: inherit; }

/* Hero */
.eb-hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px);
  background:
    linear-gradient(90deg, rgba(4, 8, 24, .94) 0%, rgba(4, 8, 24, .7) 48%, rgba(4, 8, 24, .25) 100%),
    linear-gradient(0deg, var(--eb-bg) 0%, transparent 30%),
    url("cave.webp") center 38% / cover no-repeat;
}
.eb-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eb .crumbs { color: var(--eb-muted); }
.eb .crumbs a { color: var(--eb-muted); }
.eb-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 12px 40px rgba(60, 200, 255, .3); }
.eb-hero h1 { margin: 22px 0 18px; line-height: .86; font-weight: 700; font-size: clamp(4rem, 11vw, 8.4rem); }
.eb-echo { display: block; color: var(--eb-ice); text-shadow: 0 0 34px rgba(60, 200, 255, .55); }
.eb-blast { display: block; background: linear-gradient(180deg, #ffe08a 0%, var(--eb-gold) 45%, var(--eb-ember) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(255, 122, 47, .35)); }
.eb-sub { display: block; margin-top: 14px; font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .32em; color: var(--eb-text); font-weight: 500; }
.eb-lede { font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.55; color: #cfdbf5; max-width: 34rem; }
.eb-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 30px 0 22px; }
.eb-play {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 24px 14px 20px; border-radius: 14px;
  background: linear-gradient(180deg, #ffd25a, var(--eb-gold) 55%, #f39a1d);
  color: #1b1204; font: 700 1.2rem/1 var(--eb-display); text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 0 0 1px rgba(255, 220, 140, .6) inset, 0 10px 30px rgba(255, 160, 40, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.eb-play:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 220, 140, .7) inset, 0 14px 38px rgba(255, 160, 40, .45); }
.eb-play svg { width: 24px; height: 24px; }
.eb-play span { display: grid; gap: 4px; }
.eb-play small { font: 600 .7rem/1 var(--f-body); letter-spacing: .06em; opacity: .75; }
.eb-play-lg { font-size: 1.45rem; padding: 18px 30px 18px 24px; }
.eb-link { color: var(--eb-ice) !important; font-weight: 600; text-underline-offset: 4px; }
.eb-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eb-chips li { font: 600 .78rem/1 var(--f-mono); color: var(--eb-ice); border: 1px solid var(--eb-line); background: rgba(10, 20, 50, .55); padding: 8px 11px; border-radius: 999px; }

.eb-hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.eb-phone {
  width: min(300px, 70vw); aspect-ratio: 390 / 844; border-radius: 42px; overflow: hidden;
  border: 9px solid #0b1124; box-shadow: 0 0 0 1px rgba(140, 200, 255, .25), 0 30px 80px rgba(0, 0, 0, .6), 0 0 90px rgba(60, 200, 255, .18);
  transform: rotate(4deg);
}
.eb-phone img, .eb-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-flight { position: absolute; left: -6%; top: 50%; width: 260px; pointer-events: none; }
.eb-flight img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.eb-rocket { filter: drop-shadow(0 0 22px rgba(255, 140, 50, .55)); animation: eb-fly 4.2s ease-in-out infinite; }
.eb-ghost { filter: grayscale(1) brightness(1.4) sepia(1) hue-rotate(160deg) saturate(4); opacity: .32; animation: eb-fly 4.2s ease-in-out infinite; }
.eb-ghost.g1 { animation-delay: -.35s; transform: translateX(-46px); opacity: .3; }
.eb-ghost.g2 { animation-delay: -.7s; opacity: .16; }
@keyframes eb-fly {
  0%, 100% { translate: 0 -10px; rotate: -8deg; }
  50% { translate: 26px 40px; rotate: 6deg; }
}

/* Sections */
.eb-section { padding-block: clamp(64px, 9vw, 110px); }
.eb-head { display: grid; gap: 14px; max-width: 44rem; margin-bottom: clamp(30px, 5vw, 50px); }
.eb-kicker { font: 600 .8rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--eb-gold); }
.eb-head h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 1; font-weight: 700; }
.eb-head p { color: var(--eb-muted); font-size: 1.15rem; line-height: 1.55; }

.eb-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); }
.eb-step { background: var(--eb-panel); border: 1px solid var(--eb-line); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.eb-step-shot { height: 300px; overflow: hidden; border-bottom: 1px solid var(--eb-line); }
.eb-step-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.eb-step > div:last-child { padding: 22px 24px 26px; }
.eb-num { font: 600 .8rem/1 var(--f-mono); color: var(--eb-cyan); }
.eb-step h3 { font-size: 1.9rem; margin: 8px 0 10px; }
.eb-step p { color: var(--eb-muted); line-height: 1.55; }

.eb-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.eb-split-rev { grid-template-columns: .95fr 1.05fr; }
.eb-worlds { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.eb-world { padding: 18px 20px 18px 22px; border-radius: 16px; border: 1px solid var(--eb-line); background: var(--eb-panel); border-left: 4px solid var(--c); }
.eb-world h3 { font-size: 1.45rem; color: var(--c); margin-bottom: 4px; }
.eb-world p { color: var(--eb-muted); }
.eb-ice { --c: #8fe3ff; }
.eb-lava { --c: #ff8a3d; }
.eb-void { --c: #b98cff; }
.eb-core { display: grid; place-items: center; position: relative; }
.eb-core::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 50, .35), transparent 65%); filter: blur(20px); }
.eb-core-img { position: relative; width: min(100%, 480px); height: auto; animation: eb-spin 60s linear infinite; }
@keyframes eb-spin { to { rotate: 360deg; } }

.eb-kit { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eb-kit li { padding: 24px; border-radius: 18px; border: 1px solid var(--eb-line); background: linear-gradient(180deg, rgba(60, 200, 255, .08), transparent 70%), var(--eb-panel); }
.eb-kit h3 { font-size: 1.4rem; color: var(--eb-ice); margin-bottom: 8px; }
.eb-kit p { color: var(--eb-muted); line-height: 1.5; }

.eb-hangar { background: radial-gradient(70% 80% at 30% 50%, rgba(60, 120, 255, .12), transparent 70%); }
.eb-hangar-art img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--eb-line); background: #070d22; }
.eb-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.eb-facts b { display: block; font: 700 3rem/1 var(--eb-display); color: var(--eb-gold); }
.eb-facts span { color: var(--eb-muted); font-size: .95rem; }

.eb-gallery {
  list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(16px, calc((100vw - var(--wrap)) / 2 + 24px)) 18px; scrollbar-color: var(--eb-line) transparent;
}
.eb-gallery li { flex: 0 0 auto; scroll-snap-align: center; }
.eb-gallery img { width: 230px; height: auto; aspect-ratio: 390 / 844; display: block; border-radius: 26px; border: 1px solid var(--eb-line); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.eb-gallery:focus-visible { outline: 2px solid var(--eb-cyan); outline-offset: -2px; }

.eb .faq { border-color: var(--eb-line); }
.eb .faq details { border-color: var(--eb-line); }
.eb .faq summary { color: var(--eb-text); }
.eb .faq summary::after { color: var(--eb-gold); }
.eb .faq details p { color: var(--eb-muted); }

.eb-final {
  text-align: center; padding: clamp(72px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--eb-bg) 0%, rgba(4, 8, 24, .72) 35%, rgba(4, 8, 24, .92) 100%), url("cave.webp") center 70% / cover no-repeat;
}
.eb-final .wrap { display: grid; justify-items: center; gap: 16px; }
.eb-final-rocket { width: 200px; height: auto; rotate: -24deg; filter: drop-shadow(0 0 24px rgba(255, 140, 50, .5)); }
.eb-final h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; }
.eb-final > .wrap > p { color: #cfdbf5; font-size: 1.15rem; }
.eb-final .eb-play { margin-top: 10px; }
.eb-small { margin-top: 26px; font-size: .9rem; color: var(--eb-muted) !important; max-width: 40rem; line-height: 1.6; }
.eb-small a { color: var(--eb-ice); }

@media (max-width: 960px) {
  .eb-hero-grid, .eb-split, .eb-split-rev { grid-template-columns: 1fr; }
  .eb-hero-art { min-height: 0; padding-top: 8px; }
  .eb-flight { left: 0; width: 190px; }
  .eb-steps { grid-template-columns: 1fr; }
  .eb-step { grid-template-columns: 150px 1fr; grid-template-rows: none; }
  .eb-step-shot { height: 100%; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--eb-line); }
  .eb-kit { grid-template-columns: repeat(2, 1fr); }
  .eb-core { order: -1; }
  .eb-core-img { width: min(70%, 340px); }
}
@media (max-width: 560px) {
  .eb-step { grid-template-columns: 1fr; }
  .eb-step-shot { height: 240px; border-right: 0; border-bottom: 1px solid var(--eb-line); }
  .eb-kit { grid-template-columns: 1fr; }
  .eb-gallery img { width: 190px; }
  .eb-play { padding: 13px 20px 13px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .eb-rocket, .eb-ghost, .eb-core-img { animation: none; }
}
@media (max-width: 560px) {
  .eb-phone { width: 230px; border-radius: 34px; border-width: 7px; }
  .eb-flight { width: 150px; top: 46%; }
  .eb-step-shot { height: 200px; }
  .eb-facts { gap: 18px 24px; }
  .eb-facts b { font-size: 2.4rem; }
}
.eb-spore { --c: #79ed92; }
.eb-world h3 small { display: inline-block; margin-left: 10px; font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; color: var(--eb-muted); vertical-align: 3px; }
/* Trailer: landscape cut on wide screens, vertical cut on phones. */
.eb-trailer { padding-top: clamp(40px, 6vw, 72px); }
.eb-head-center { margin-inline: auto; text-align: center; justify-items: center; }
.eb-video { margin-inline: auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--eb-line); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 80px rgba(60, 200, 255, .12); }
.eb-video video { display: block; width: 100%; height: auto; }
.eb-video-wide { max-width: 980px; aspect-ratio: 16 / 9; }
.eb-video-tall { display: none; max-width: 340px; aspect-ratio: 9 / 16; }
@media (max-width: 700px) {
  .eb-video-wide { display: none; }
  .eb-video-tall { display: block; }
}
/* Language switcher: flag dropdown in the hero, flag row at the bottom. */
.eb-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 28px; position: relative; z-index: 5; }
.eb-topline .crumbs { margin: 0; }
.eb-flag { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); flex: none; }
.eb-lang-menu { position: relative; }
.eb-lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--eb-line); background: rgba(10, 20, 50, .75); font: 600 .8rem/1 var(--f-mono); color: var(--eb-text); }
.eb-lang-menu summary::-webkit-details-marker { display: none; }
.eb-lang-menu summary:hover, .eb-lang-menu[open] summary { border-color: rgba(159, 230, 255, .5); }
.eb-lang-menu summary i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; margin: -3px 2px 0 2px; transition: rotate .15s; }
.eb-lang-menu[open] summary i { rotate: 225deg; margin-top: 3px; }
.eb-lang-menu nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: 14px; border: 1px solid var(--eb-line); background: #0a1430; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.eb-lang-menu ul { list-style: none; margin: 0; padding: 0; display: grid; }
.eb-lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--eb-text) !important; font-size: .92rem; }
.eb-lang-menu a:hover { background: rgba(60, 200, 255, .1); }
.eb-lang-menu a[aria-current="page"] { background: rgba(255, 184, 48, .14); color: var(--eb-gold) !important; font-weight: 700; }
.eb-langs { margin-top: 18px; }
.eb-langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.eb-langs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--eb-line); background: rgba(10, 20, 50, .55); color: var(--eb-muted) !important; text-decoration: none; font-size: .82rem; }
.eb-langs a:hover { color: var(--eb-text) !important; border-color: rgba(159, 230, 255, .45); }
.eb-langs a[aria-current="page"] { color: var(--eb-gold) !important; border-color: var(--eb-gold); font-weight: 700; }
.eb-hero h1 { overflow-wrap: anywhere; }
@media (max-width: 520px) { .eb-lang-menu nav { right: auto; left: 0; } }
/* Longer translated nav labels: on phones keep only the project button (breadcrumbs link to Our apps). */
@media (max-width: 520px) {
  .nav-links li.keep:not(:last-child) { display: none; }
  .nav .btn { white-space: nowrap; font-size: .85rem; }
}
