/* YKeyWorld home — space theme. Shared tokens are mirrored in theme.css for the hub pages. */
:root {
  --bg: #07080a;
  --surface: #0f1013;
  --surface-2: #0b0c0f;
  --line: #24211d;
  --line-2: #3a342c;
  --text: #f4efe7;
  --soft: #cfc8bc;
  --muted: #a39c91;
  --dim: #8a8378;
  --orange: #ff9a3d;
  --orange-2: #ffb76b;
  --ink-on-orange: #160c02;
  --display: "Syne", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --max: 1280px;
  --ease: cubic-bezier(.4, .1, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--orange-2); }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--orange); color: var(--ink-on-orange); border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--orange-2); }
.kicker.muted { color: var(--muted); letter-spacing: .24em; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--ink-on-orange); box-shadow: 0 18px 40px -20px rgba(255, 154, 61, .9); }
.btn-primary:hover { color: var(--ink-on-orange); background: var(--orange-2); }
.btn-ghost { border: 1px solid #4a4137; background: rgba(15, 16, 19, .6); color: var(--text); font-weight: 600; }

/* Stars */
.starfield { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; border-radius: 50%; background: #fff4e6; opacity: .5; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }

/* Hero */
.hero { position: relative; min-height: min(100vh, 960px); min-height: max(760px, min(100vh, 960px)); overflow: hidden; isolation: isolate; }
.hero-planet { position: absolute; z-index: -1; right: -12%; top: 2%; width: min(76vw, 1080px); max-width: none; height: auto; transform-origin: 50% 50%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 64%, transparent 100%); }
.site-header { position: relative; z-index: 5; max-width: var(--max); margin: 0 auto; padding: 22px 24px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .05em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 18px rgba(255, 150, 60, .55); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(15, 16, 19, .72); backdrop-filter: blur(10px); }
.site-nav a { text-decoration: none; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--soft); }
.site-nav a[aria-current="page"] { background: #1c1814; color: var(--text); font-weight: 600; }
.site-nav a:hover { color: var(--text); background: #16130f; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--orange); color: var(--ink-on-orange); text-decoration: none; font-weight: 700; font-size: 14px; }
.header-cta:hover { color: var(--ink-on-orange); background: var(--orange-2); }
.intro-toggle { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(15, 16, 19, .7); color: var(--soft); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.intro-toggle:hover { color: var(--text); border-color: #5a5045; }
[data-intro-skip] { display: none; }
[data-intro-replay] { display: none; }
.js [data-intro-replay] { display: inline-block; }
.intro [data-intro-replay] { display: none; }
.intro [data-intro-skip] { display: inline-block; }

.hero-copy { position: relative; z-index: 4; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 14vh, 150px) 24px 120px; display: flex; flex-direction: column; gap: 26px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 10.5vw, 150px); line-height: .86; letter-spacing: -.035em; color: #fff1de;
  text-shadow: 1px 1px 0 #f08a2e, 2px 2px 0 #de7724, 3px 3px 0 #c9661f, 4px 4px 0 #b3571a, 5px 5px 0 #9a4814, 6px 6px 0 #7f3a0f, 7px 7px 0 #642d0b, 10px 14px 30px rgba(0, 0, 0, .65), 0 0 60px rgba(255, 140, 40, .25);
  transform: perspective(1000px) rotateY(14deg); transform-origin: 0 50%; }
.tagline { font-family: var(--mono); font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: #e6ded2; }
.lead { max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Intro sequence (only while <html> has .intro) */
.intro .hero .starfield { animation: warp 2.6s cubic-bezier(.12, .8, .25, 1) both; }
.intro .hero-planet { animation: approach 2.6s cubic-bezier(.16, .84, .3, 1) both; }
.intro .wordmark { animation: rise 1.3s 1.8s cubic-bezier(.2, .8, .2, 1) both; }
.intro .after, .intro .site-nav, .intro .brand, .intro .header-cta { animation: fadeup .8s 2.7s ease-out both; }
@keyframes warp { from { transform: scale(2.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); } }
@keyframes approach { from { transform: scale(.06); filter: blur(8px); opacity: 0; } 12% { opacity: 1; } 70% { filter: blur(0); } to { transform: scale(1); filter: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: perspective(1000px) rotateY(70deg) translateZ(-240px); } to { opacity: 1; transform: perspective(1000px) rotateY(14deg); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 100px 24px 40px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head.ruled { border-bottom: 2px solid var(--text); }
.section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.4vw, 72px); line-height: .96; letter-spacing: -.03em; }
.section-note { max-width: 400px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Ecosystem */
.eco { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.orbit { position: relative; flex: 999 1 600px; min-width: 0; height: 620px; border-radius: 32px; background: var(--surface-2); border: 1px solid #1c1a17; overflow: hidden; outline: none; }
.ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.ring-a { width: 84%; height: 60%; border: 1px solid rgba(255, 170, 90, .16); }
.ring-b { width: 60%; height: 40%; border: 1px dashed rgba(255, 170, 90, .12); }
.core { position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 50; box-shadow: 0 0 80px rgba(255, 140, 40, .45), inset -20px -20px 60px rgba(0, 0, 0, .6); animation: corePulse 6s ease-in-out infinite; }
@keyframes corePulse { 0%, 100% { box-shadow: 0 0 70px rgba(255, 140, 40, .38); } 50% { box-shadow: 0 0 110px rgba(255, 140, 40, .6); } }
.planets { position: absolute; inset: 0; }
.planet { position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: inherit;
  transition: left .9s var(--ease), top .9s var(--ease), width .9s var(--ease), height .9s var(--ease), opacity .9s, filter .9s; filter: drop-shadow(0 0 18px var(--g)); }
.planet:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 6px; }
.sphere { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--s); box-shadow: inset -14px -16px 34px rgba(0, 0, 0, .65), inset 6px 6px 18px rgba(255, 255, 255, .12); transition: box-shadow .4s; }
.planet[aria-pressed="true"] { filter: drop-shadow(0 0 40px var(--g)); }
.planet[aria-pressed="true"] .sphere { box-shadow: inset -14px -16px 34px rgba(0, 0, 0, .65), inset 6px 6px 18px rgba(255, 255, 255, .12), 0 0 0 2px var(--c); }
.planet.is-future::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(200, 205, 214, .45); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pl-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 12px); white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: opacity .6s, color .4s; }
.planet[aria-pressed="true"] .pl-label { color: var(--c); }
.planet.is-back .pl-label { opacity: 0; }
.orbit-caption { position: absolute; left: 24px; bottom: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }

.slides { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 36px; gap: 20px; perspective: 1200px; }
.slide { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.slide[hidden] { display: none; }
.slide.enter { animation: slideIn .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) rotateY(-8deg); } to { opacity: 1; transform: none; } }
.slide-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.slide-num { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pill { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); }
.bar { display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--c); }
.slide h3 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 3.6vw, 46px); line-height: 1; letter-spacing: -.02em; }
.slide-kicker { font-size: 20px; font-weight: 600; line-height: 1.35; }
.slide-desc { font-size: 16px; line-height: 1.65; color: #b9b2a6; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.facts li { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid #1f1c19; padding-top: 10px; }
.facts li::before { content: "→"; font-family: var(--mono); color: var(--orange-2); }
.slide .btn { align-self: flex-start; margin-top: auto; }
.slide-note { margin-top: auto; font-size: 14px; color: var(--dim); }
.slide-nav { display: none; align-items: center; justify-content: space-between; gap: 12px; }
.js .slide-nav { display: flex; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }
.round:hover { border-color: var(--orange-2); }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .4s, background .4s; }
.dots button[aria-current="true"] { width: 26px; background: var(--c, var(--orange)); }
/* With JS each dot is 44px tall for touch, drawn as a small pill. */
.dots button { position: relative; }
.dots button::before { content: ""; position: absolute; left: -6px; right: -6px; top: -17px; bottom: -17px; }

/* Without JS: all slides visible, planets in a row */
html:not(.js) .slide[hidden] { display: flex; }
html:not(.js) .slides .slide + .slide { border-top: 1px solid var(--line); padding-top: 24px; }
html:not(.js) .orbit { height: auto; padding: 40px 24px 70px; }
html:not(.js) .ring, html:not(.js) .core { display: none; }
html:not(.js) .planets { position: static; display: flex; flex-wrap: wrap; gap: 48px 32px; justify-content: center; }
html:not(.js) .planet { position: relative; left: auto; top: auto; transform: none; width: 84px; height: 84px; }

/* Register */
.table-wrap { overflow-x: auto; }
.register { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 16px; }
.register thead th { text-align: left; padding: 0 16px 14px 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.register tbody tr { border-top: 1px solid var(--line); }
.register td, .register tbody th { padding: 22px 16px 22px 0; text-align: left; vertical-align: middle; }
.register td:first-child { font-family: var(--mono); color: var(--dim); }
.register tbody th { font-family: var(--display); font-weight: 700; font-size: 22px; }
.register td:nth-child(3) { color: #b9b2a6; }
.register td:last-child { font-family: var(--mono); font-size: 14px; }
.register tr.dim { color: #8f887d; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 10px; }
.verify { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.verify div { border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.verify span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }
.verify p { font-size: 16px; line-height: 1.5; }

/* Partners band */
.partners-band { margin-top: 80px; padding: 36px 0 28px; border-top: 1px solid #1c1a17; border-bottom: 1px solid #1c1a17; background: var(--surface-2); display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.band-head, .disclosure { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.band-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.band-head h2 { font-weight: 500; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 10px; vertical-align: middle; animation: twinkle 2s ease-in-out infinite; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-inner { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-inner, .marquee:focus-within .marquee-inner, .marquee.paused .marquee-inner { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.track { display: flex; gap: 16px; margin: 0; padding: 0 8px; list-style: none; }
.track a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 24px 0 16px; border: 1px solid #2a2621; border-radius: 999px; background: var(--surface); white-space: nowrap; text-decoration: none; transition: border-color .2s; }
.track a:hover { border-color: var(--orange-2); color: var(--text); }
.track img { width: 28px; height: 28px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.track b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.track small { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.track span { color: var(--orange-2); }
.disclosure { font-size: 13px; line-height: 1.6; color: var(--dim); }

/* Footer */
.site-footer { max-width: var(--max); margin: 0 auto; padding: 56px 24px 64px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; color: var(--muted); font-size: 14px; }
.site-footer h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.site-footer div { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--orange-2); }
.footer-brand p { max-width: 340px; }
.footer-bottom { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); }

/* Phones and small tablets: orbit becomes a horizontal carousel */
@media (max-width: 900px) {
  .site-nav { order: 3; width: 100%; justify-content: center; }
  .hero-planet { right: -45%; top: 14%; width: 130vw; opacity: .5; }
  .wordmark { transform: none; }
  .intro .wordmark { animation-name: riseFlat; }
  @keyframes riseFlat { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
  .js .orbit { height: auto; padding: 150px 0 24px; }
  .js .core { top: 78px; width: 120px; height: 120px; }
  .js .ring { display: none; }
  .js .planets { position: relative; display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 24px 48px; }
  .js .planet { position: relative; left: auto !important; top: auto !important; transform: none; flex: 0 0 auto; width: 84px !important; height: 84px !important; opacity: 1 !important; scroll-snap-align: center; }
  .js .planet .pl-label { opacity: 1; }
  .js .planet, .js .planet[aria-pressed="true"] { filter: none; }
  .js .planet .sphere { box-shadow: inset -14px -16px 34px rgba(0, 0, 0, .65), inset 6px 6px 18px rgba(255, 255, 255, .12), 0 0 26px var(--g); }
  .js .planet[aria-pressed="true"] .sphere { box-shadow: inset -14px -16px 34px rgba(0, 0, 0, .65), inset 6px 6px 18px rgba(255, 255, 255, .12), 0 0 0 2px var(--c), 0 0 34px var(--g); }
  .orbit-caption { display: none; }
  .slides { padding: 28px 22px; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .js [data-intro-replay] { display: none; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .site-nav a { flex: 0 0 auto; padding: 9px 13px; }
  .hero-copy { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-inner { animation: none !important; flex-wrap: wrap; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
