:root { --bg: #111214; --panel: #17181b; --line: #2b2e33; --line-2: #42464b; --text: #ecebe7; --text-2: #c4c3be; --muted: #95979b;
  --blue: #5b9be6; --green: #5fbf85; --red: #e5484d; --font: 'Manrope', system-ui, sans-serif; --ease: cubic-bezier(.2,.8,.2,1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.top { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 18px max(20px, calc((100vw - 1240px) / 2)); background: linear-gradient(180deg, rgba(17,18,20,.85), rgba(17,18,20,0)); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.logo img { width: 30px; height: 30px; }
.logo.small { font-size: 14px; gap: 8px; } .logo.small img { width: 20px; height: 20px; }
.top-link { color: var(--muted); font-weight: 600; font-size: 14px; } .top-link:hover { color: var(--text); }

/* hero: particles on the right, invitation on the left */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: radial-gradient(80% 70% at 70% 45%, #16223a 0%, var(--bg) 70%); }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-film { position: absolute; left: 50%; top: calc(50% - 3.15svh); width: calc(46svh * 16 / 9); max-width: 82vw; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); object-fit: cover; border-radius: 6px; opacity: 0; pointer-events: none; box-shadow: 0 0 80px rgba(91,155,230,.35); z-index: 1; }
.steps { position: absolute; z-index: 2; display: flex; gap: 8px; pointer-events: none; }
.steps span { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(17,18,20,.72); border: 1px solid rgba(236,235,231,.12); font-weight: 600; font-size: 12.5px; color: var(--muted); transition: color .3s, border-color .3s; }
.steps i { width: 7px; height: 7px; border-radius: 50%; background: rgba(236,235,231,.25); transition: background .3s, box-shadow .3s; }
.steps span.on { color: var(--text); border-color: rgba(236,235,231,.35); } .steps span.on i { background: var(--red); box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
.hero-copy { position: relative; z-index: 3; padding: 110px max(20px, calc((100vw - 1240px) / 2)) 60px; max-width: 760px; }
.pill { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(23,24,27,.7); font-size: 13px; font-weight: 600; color: var(--text-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(95,191,133,.18); }
.title { margin: 0; font-weight: 800; font-size: clamp(44px, 6.4vw, 96px); line-height: .98; letter-spacing: -.05em; }
.title .row { display: block; white-space: nowrap; }
.caret { display: inline-block; width: .06em; height: .8em; margin-left: .04em; background: var(--text); vertical-align: -.04em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.sub { margin: 22px 0 28px; max-width: 560px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.join { display: grid; gap: 10px; max-width: 540px; }
.join-row { display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: rgba(23,24,27,.85); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.join-row:focus-within { border-color: var(--blue); }
.join input { font: 500 15.5px var(--font); color: var(--text); }
.join-row input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; outline: 0; }
.join button, .again-btn { border: 0; border-radius: 10px; padding: 14px 20px; background: var(--text); color: #111214; font: 700 15px var(--font); cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s; }
.join button:hover, .again-btn:hover { transform: translateY(-1px); background: #fff; }
.join button:disabled { opacity: .6; cursor: wait; }
.join-extra { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: rgba(23,24,27,.6); padding: 0 14px; outline: 0; }
.join-extra:focus { border-color: var(--blue); }
.trap { position: absolute; left: -9999px; opacity: 0; }
.join-msg { min-height: 1.5em; margin: 2px 2px 0; font-size: 14.5px; color: var(--muted); }
.join-msg.ok { color: var(--green); font-weight: 600; } .join-msg.err { color: var(--red); }
.join.done .join-row, .join.done .join-extra { display: none; }

.film { padding: 100px 0 40px; }
.film h2, .again h2 { margin: 0 0 10px; font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.035em; line-height: 1.05; }
.film > p { margin: 0 0 26px; color: var(--text-2); }
.player { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0e10; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 14px 22px 14px 16px; border-radius: 99px; border: 0; background: rgba(17,18,20,.8); color: var(--text); font: 600 15px var(--font); cursor: pointer; backdrop-filter: blur(6px); }
.play span { width: 38px; height: 38px; border-radius: 50%; background: var(--red); position: relative; }
.play span::after { content: ""; position: absolute; left: 15px; top: 12px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.player.playing .play { opacity: 0; pointer-events: none; }

.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 60px 0 40px; }
.points article { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.points img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.points h3 { margin: 16px 18px 6px; font-size: 17px; letter-spacing: -.01em; }
.points p { margin: 0 18px 20px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.again { padding: 70px 0 110px; text-align: center; }
.again-btn { display: inline-block; margin-top: 18px; padding: 16px 26px; }
.foot { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 28px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot a:hover { color: var(--text); }

@media (min-aspect-ratio: 5/4) and (min-width: 900px) {
  .particles { transform: translateX(20vw); }
  .frame-film { left: calc(50% + 20vw); top: calc(50% - 2.6svh); width: calc(38svh * 16 / 9); max-width: 44vw; }
  .hero-copy { max-width: 50vw; }
}
@media (max-width: 1000px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px), (max-aspect-ratio: 5/4) {
  .hero { align-items: end; } .hero-copy { padding-top: 55svh; } .steps { display: none; }
  .frame-film { top: 26svh; width: 86vw; }
}
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } .join-row { flex-direction: column; } .join-row input { height: 46px; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } html { scroll-behavior: auto; } }
