/* home page only (loaded after style.css): hero, marquee and the landing sections */

/* ------------------------------------------------------------ hero */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: calc(var(--head) + 24px) 0 32px; overflow: hidden; }
.hero::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, #000 10%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 100%, #000 10%, transparent 70%);
	opacity: .7;
}
.hero .wrap { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
@media (min-width: 640px) { .hero .wrap { gap: 64px; } }
@media (min-width: 1024px) { .hero .wrap { gap: 80px; } }
.hero-top { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
@media (min-width: 768px) { .hero-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.hero h1 .scramble { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-side p { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-side .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 5px 14px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; color: var(--muted); }
.status-pill b { color: var(--fg); font-weight: 500; }
.live { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted2); }
.live.on i { background: #16a34a; }
.live.on::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #16a34a; animation: ping 1.8s var(--ease) infinite; }
.live.off i { background: #dc2626; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* giant faint wordmark (flickers in, like the "ROBO" outline) */
.wordmark { position: relative; width: 100%; user-select: none; }
.wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }
.wordmark text { font-family: 'Orbitron', sans-serif; font-weight: 900; fill: var(--fg); fill-opacity: .1; }
/* swordsman over the middle of the wordmark: flickers in with it, then pops up and floats */
.hero-top, .hero-bottom { position: relative; z-index: 2; }
.hero h1, .hero-side p, .specs { text-shadow: 0 0 14px #fff, 0 0 6px #fff, 0 0 2px #fff; }
.wordmark { z-index: 1; }
.wordmark-hero {
	position: absolute; left: 50%; top: -7%; height: 230%; width: auto; max-width: none;
	transform: translate(-50%, -50%); transform-origin: 50% 60%; pointer-events: none;
	filter: drop-shadow(0 24px 28px rgba(10, 10, 10, .22));
}
@media (min-width: 768px) { .wordmark-hero { top: 34%; height: 330%; } }
.js .loaded .wordmark-hero { animation: hero-pop .9s var(--ease) calc(var(--d, 0s) + .15s) both, hero-float 4.5s ease-in-out calc(var(--d, 0s) + 1.1s) infinite; }
@keyframes hero-pop { from { opacity: 0; transform: translate(-50%, -50%) translateY(40px) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes hero-float { 50% { transform: translate(-50%, -50%) translateY(-12px) rotate(-1deg); } }

.hero-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.specs { display: grid; grid-template-columns: repeat(3, auto); }
.specs > div { padding: 16px 24px; border-left: 1px solid var(--line); max-width: 210px; }
.specs > div:first-child { padding-left: 0; border-left: 0; }
.specs h3 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.specs p { color: var(--muted); font-size: .85rem; font-weight: 300; margin-top: 4px; }
.specs .v { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.specs .v svg { width: 24px; height: 24px; }
@media (max-width: 767px) {
	.specs { width: 100%; grid-template-columns: 1fr 1fr; }
	.specs > div:nth-child(3) { display: none; }
}
.spin-wrap { position: relative; flex: none; width: 170px; height: 170px; border: 1px solid var(--fg); border-radius: 50%; display: grid; place-items: center; }
.spin-wrap .inner { width: 105px; height: 105px; border: 1px solid var(--fg); border-radius: 50%; display: grid; place-items: center; transition: background .4s, color .4s; }
.spin-wrap:hover .inner { background: var(--fg); color: #fff; }
.spin-wrap .inner svg { width: 56px; height: 56px; stroke-width: 1.5; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.spin-text { position: absolute; inset: 0; animation: spin 12s linear infinite; font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.spin-text span { position: absolute; top: 50%; left: 50%; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 767px) { .spin-wrap { display: none; } }

/* ------------------------------------------------------------ intro sequence (only when JS runs) */
.js .seq { opacity: 0; }
.js .loaded .seq { animation: var(--anim, fade-up) .7s var(--ease) var(--d, 0s) both; }
.js .loaded .wordmark.seq { animation: flicker 1.2s linear var(--d, 0s) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-right { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes flicker { 0% { opacity: 0; } 10% { opacity: 1; } 30% { opacity: .3; } 50% { opacity: 1; } 70% { opacity: .3; } 100% { opacity: 1; } }

/* ------------------------------------------------------------ marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--soft2); }
.marquee .track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 32px; padding-right: 32px; font-weight: 500; white-space: nowrap; }
.marquee span::after { content: '✦'; color: var(--muted2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections */
section.block { padding: 112px 0 0; scroll-margin-top: var(--head); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--fg); border-radius: 1px; }
.head { max-width: 680px; margin-bottom: 48px; }
.head h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.03em; }
.head p { color: var(--muted); margin-top: 16px; font-size: 1.08rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.stats > div:hover { background: var(--soft2); }
.stats > div:nth-child(3n) { border-right: 0; }
.stats > div:nth-last-child(-n+3) { border-bottom: 0; }
.stats small { display: block; color: var(--muted); font-size: .9rem; }
.stats .num { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.stats .num sup { font-size: .42em; color: var(--muted2); font-weight: 500; margin-left: 3px; vertical-align: super; letter-spacing: 0; }
.stats p { color: var(--muted2); font-size: .85rem; margin-top: 6px; }
@media (max-width: 760px) {
	.stats { grid-template-columns: 1fr 1fr; }
	.stats > div { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
	.stats > div:nth-child(2n) { border-right: 0 !important; }
	.stats > div:nth-last-child(-n+2) { border-bottom: 0 !important; }
}

/* bento features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feat { grid-column: span 2; position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.feat.wide { grid-column: span 3; }
.feat:hover { transform: translateY(-4px); border-color: #d4d4d8; box-shadow: 0 24px 48px -24px rgba(10, 10, 10, .2); }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 22px; background: var(--soft2); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.feat:hover .ic { background: var(--fg); color: #fff; border-color: var(--fg); transform: rotate(-6deg); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .95rem; }
.feat.dark { background: var(--fg); color: #fff; border-color: var(--fg); }
.feat.dark p { color: var(--muted2); }
.feat.dark .ic { background: #18181b; border-color: #27272a; color: #fff; }
.feat.dark:hover .ic { background: #fff; color: var(--fg); }
.feat .big { position: absolute; right: -6px; bottom: -30px; font-family: 'Orbitron', sans-serif; font-size: 7rem; font-weight: 900; color: var(--soft); line-height: 1; pointer-events: none; transition: transform .6s var(--ease); }
.feat.dark .big { color: #1c1c1f; }
.feat:hover .big { transform: translateY(-10px); }
.feat > *:not(.big) { position: relative; z-index: 1; }
.feat .big { z-index: 0; }
.feat.dark .big { color: #161618; }
@media (max-width: 900px) { .feat, .feat.wide { grid-column: span 3; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .feat, .feat.wide { grid-column: auto; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { counter-increment: s; border-top: 1px solid var(--line); padding-top: 24px; position: relative; }
.step::before { content: '0' counter(s); display: block; font-family: 'Orbitron', sans-serif; font-size: .85rem; font-weight: 600; color: var(--muted2); margin-bottom: 18px; }
.step::after { content: ''; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--fg); transition: width 1.4s var(--ease) var(--d, 0s); }
.step.in::after { width: 100%; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.step a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* details */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row span { color: var(--muted); }
.row b { font-weight: 500; text-align: right; }
@media (max-width: 760px) { .details { grid-template-columns: 1fr; } }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 24px; background: var(--fg); color: #fff; padding: 80px 32px; text-align: center; }
.cta::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#3f3f46 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); opacity: .7; }
.cta::after { content: ''; position: absolute; width: 520px; height: 520px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent); animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translateX(-25%) scale(1.15); } }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); max-width: 760px; margin: 0 auto; letter-spacing: -.03em; }
.cta p { color: var(--muted2); margin: 16px auto 0; max-width: 540px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 36px; }

/* ------------------------------------------------------------ scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal, .js .seq { opacity: 1 !important; transform: none !important; filter: none !important; }
}
