:root {
  --ink: #020706;
  --paper: #effff9;
  --cyan: #5befff;
  --lime: #c7ff3c;
  --muted: #8ea7a1;
  --line: rgba(138, 239, 223, 0.2);
  --background: #020706;
  --foreground: #effff9;
  --primary: #c7ff3c;
  --primary-foreground: #071006;
  --secondary: #0a1d1b;
  --secondary-foreground: #effff9;
  --muted-foreground: #8ea7a1;
  --border: rgba(138, 239, 223, 0.2);
  --ring: #5befff;
  --radius: 0.75rem;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  overflow: hidden;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

.site-shell {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: var(--ink);
}

.world-background, .color-wash, .particle-field, .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-background {
  z-index: -5;
  background: url('./assets/ponestar-bg.webp') center / cover no-repeat;
  filter: saturate(1.08) contrast(1.08);
  animation: background-breathe 12s ease-in-out infinite alternate;
}
.color-wash {
  z-index: -4;
  background:
    radial-gradient(circle at 71% 46%, rgba(26, 224, 255, 0.08), transparent 31%),
    linear-gradient(90deg, rgba(2, 7, 6, 0.96) 0%, rgba(2, 7, 6, 0.7) 32%, rgba(2, 7, 6, 0.1) 72%, rgba(2, 7, 6, 0.55) 100%),
    linear-gradient(180deg, rgba(1, 6, 5, 0.18), rgba(1, 6, 5, 0.66));
}
.particle-field { z-index: -2; width: 100%; height: 100%; }
.grain {
  z-index: 20;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.topbar {
  position: relative;
  z-index: 30;
  height: 92px;
  padding: 0 clamp(28px, 4.1vw, 78px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(1, 8, 7, 0.88), rgba(1, 8, 7, 0.28));
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; }
.brand-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(91, 239, 255, 0.5);
  border-radius: 50%;
  overflow: hidden;
  background: #020706;
  box-shadow: 0 0 24px rgba(91, 239, 255, 0.16), inset 0 0 0 4px rgba(91, 239, 255, 0.04);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.22); }
.brand strong { display: block; font-size: 14px; letter-spacing: .17em; line-height: 1; }
.brand small { display: block; margin-top: 6px; font: 600 9px/1 monospace; color: var(--muted); letter-spacing: .13em; }
.signal { display: flex; align-items: center; gap: 9px; color: #b9d2cc; font: 700 10px/1 monospace; letter-spacing: .14em; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px var(--lime); animation: signal-pulse 1.4s ease-in-out infinite; }
.signal-code { margin-left: 12px; color: #4f726b; }
.social-nav { display: flex; justify-content: flex-end; gap: 8px; }
.social-nav a {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 18, 16, 0.55);
  color: #eafff8;
  font: 700 10px/1 monospace;
  letter-spacing: .08em;
  transition: border-color .25s, color .25s, background .25s, transform .25s;
}
.social-nav a:hover { transform: translateY(-2px); border-color: var(--cyan); color: var(--cyan); background: rgba(8, 34, 31, 0.86); }
.social-nav svg { width: 13px; height: 13px; }
.link-index { color: #587a73; }

.hero {
  position: relative;
  z-index: 2;
  height: calc(100svh - 92px - 150px);
  min-height: 438px;
  display: grid;
  grid-template-columns: minmax(480px, .82fr) minmax(620px, 1.18fr);
  align-items: center;
  gap: 24px;
  padding: 20px clamp(28px, 4.1vw, 78px) 10px;
}
.hero-copy { position: relative; z-index: 8; max-width: 690px; padding-bottom: 8px; }
.eyebrow { width: max-content; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--lime); font: 700 11px/1 monospace; letter-spacing: .2em; }
.eyebrow::after { content: ''; width: 64px; height: 1px; background: linear-gradient(90deg, var(--lime), transparent); }
.eyebrow svg { width: 14px; height: 14px; }
h1 {
  margin: 0;
  width: min-content;
  color: #eafff8;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(84px, 7.4vw, 142px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.052em;
  text-transform: uppercase;
  text-shadow: 0 8px 48px rgba(0, 0, 0, .55);
}
h1 span { display: block; color: transparent; -webkit-text-stroke: 2px var(--cyan); text-shadow: 0 0 32px rgba(91, 239, 255, .14); }
.tagline { margin: 30px 0 9px; color: var(--lime); font: 800 clamp(17px, 1.25vw, 24px)/1.1 monospace; letter-spacing: .055em; text-transform: uppercase; }
.intro { max-width: 590px; margin: 0; color: #abc3bd; font-size: clamp(14px, .92vw, 17px); line-height: 1.65; }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.ca-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  min-width: 178px;
  padding: 0 21px;
  overflow: hidden;
  border: 1px solid rgba(199, 255, 60, .8);
  border-radius: 14px;
  background: var(--lime);
  color: #071006;
  font: 900 12px/1 monospace;
  letter-spacing: .1em;
  box-shadow: 0 0 34px rgba(199, 255, 60, .18);
  cursor: pointer;
}
.ca-button:hover { background: #dbff79; box-shadow: 0 0 48px rgba(199, 255, 60, .34); transform: translateY(-2px); }
.ca-button:focus-visible, .lore-jump:focus-visible, .lore-card:focus-visible, .social-nav a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.ca-button svg { position: relative; z-index: 2; width: 16px; height: 16px; }
.ca-button span:not(.button-glow) { position: relative; z-index: 2; }
.button-glow { position: absolute; inset: -30%; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-75%); animation: button-scan 4.2s ease-in-out infinite; }
.lore-jump { height: 50px; display: flex; align-items: center; gap: 9px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 22, 19, .62); color: #d9eee9; font: 800 10px/1 monospace; letter-spacing: .1em; cursor: pointer; transition: .25s ease; }
.lore-jump:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.lore-jump svg { width: 16px; height: 16px; transition: transform .5s ease; }
.lore-jump:hover svg { transform: rotate(180deg); }
.specimen-line { display: flex; align-items: center; gap: 12px; margin-top: 21px; color: #5f817a; font: 700 9px/1 monospace; letter-spacing: .12em; }
.specimen-line strong { color: #91aaa4; font-weight: 700; }
.wave { height: 18px; display: flex; align-items: center; gap: 2px; }
.wave i { display: block; width: 2px; height: 4px; background: var(--cyan); animation: wave 1.25s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.4s; }
.wave i:nth-child(4n) { animation-delay: -.75s; }
.wave i:nth-child(5n) { animation-delay: -.2s; }

.character-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  position: relative;
  align-self: stretch;
  min-width: 0;
  perspective: 1200px;
}
.character {
  position: absolute;
  z-index: 5;
  right: clamp(-20px, 1vw, 18px);
  bottom: -11px;
  width: min(43vw, 770px);
  max-height: calc(100% + 38px);
  object-fit: contain;
  filter: drop-shadow(0 35px 42px rgba(0, 0, 0, .72)) drop-shadow(0 0 22px rgba(110, 255, 71, .12));
  transform: translate3d(var(--shift-x), var(--shift-y), 0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-origin: 60% 70%;
  animation: character-float 5.8s ease-in-out infinite;
  transition: transform .14s ease-out, filter .3s ease;
  will-change: transform;
}
.character-stage:hover .character { filter: drop-shadow(0 42px 50px rgba(0, 0, 0, .8)) drop-shadow(0 0 34px rgba(199, 255, 60, .2)); }
.character-aura { position: absolute; z-index: 1; right: 4%; top: 4%; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(91,239,255,.1), transparent 68%); filter: blur(9px); animation: aura 4s ease-in-out infinite; }
.character-shadow { position: absolute; z-index: 2; right: 10%; bottom: 1%; width: 60%; height: 8%; border-radius: 50%; background: rgba(0,0,0,.75); filter: blur(20px); animation: shadow-breathe 5.8s ease-in-out infinite; }
.orbit { position: absolute; z-index: 3; right: 4%; top: 7%; width: 74%; aspect-ratio: 1; border: 1px solid rgba(91,239,255,.16); border-radius: 50%; transform: rotate(-12deg); animation: orbit-spin 18s linear infinite; }
.orbit-two { right: 13%; top: 15%; width: 57%; border-color: rgba(199,255,60,.14); animation-direction: reverse; animation-duration: 13s; }
.orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.orbit-two i { background: var(--lime); box-shadow: 0 0 16px var(--lime); }
.data-card { position: absolute; z-index: 8; width: 176px; padding: 13px 14px; border: 1px solid rgba(132, 240, 223, .24); border-radius: 14px; background: linear-gradient(135deg, rgba(4, 20, 18, .74), rgba(4, 20, 18, .34)); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0,0,0,.22); animation: card-float 5s ease-in-out infinite; }
.data-card::before { content: ''; position: absolute; left: -22px; top: 50%; width: 22px; height: 1px; background: rgba(91,239,255,.4); }
.data-card small, .data-card span { display: block; color: #71948c; font: 700 8px/1.2 monospace; letter-spacing: .14em; }
.data-card strong { display: block; margin: 7px 0; color: #eafff8; font: 800 11px/1.15 monospace; letter-spacing: .08em; }
.specimen-card { left: 5%; top: 21%; }
.mood-card { right: 0; top: 56%; animation-delay: -2.4s; }
.asterisk-note { position: absolute; z-index: 8; right: 1%; top: calc(56% + 92px); color: #6a8982; font: 600 8px/1 monospace; }

.lore-dock { position: relative; z-index: 12; height: 150px; display: grid; grid-template-columns: 150px minmax(320px, 1fr) minmax(360px, .82fr) minmax(300px, .8fr); align-items: stretch; border-top: 1px solid var(--line); background: rgba(1, 9, 8, .86); backdrop-filter: blur(18px); }
.lore-label { display: flex; flex-direction: column; justify-content: center; padding: 0 24px 0 clamp(28px, 4.1vw, 78px); border-right: 1px solid var(--line); }
.lore-label span, .mission span { color: #66837d; font: 700 9px/1 monospace; letter-spacing: .14em; }
.lore-label strong { margin-top: 10px; color: var(--cyan); font: 900 21px/1 monospace; }
.lore-card { position: relative; display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 18px; padding: 18px 32px; text-align: left; border: 0; border-right: 1px solid var(--line); background: rgba(5, 21, 18, .24); cursor: pointer; transition: background .25s; }
.lore-card:hover { background: rgba(12, 42, 36, .48); }
.lore-card > span { color: var(--lime); font: 900 12px/1 monospace; letter-spacing: .12em; }
.lore-card p, .mission p { margin: 0; color: #b6cbc6; font-size: 12px; line-height: 1.5; }
.lore-card i { position: absolute; right: 18px; bottom: 11px; color: #49665f; font: 700 7px/1 monospace; letter-spacing: .1em; font-style: normal; }
.mission { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px 34px; border-right: 1px solid var(--line); }
.ticker { overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker div { display: flex; width: max-content; animation: ticker 14s linear infinite; }
.ticker span { padding: 0 18px; color: transparent; -webkit-text-stroke: 1px #78a098; font: 900 26px/1 Impact, sans-serif; letter-spacing: .08em; }
.ticker b { color: var(--lime); font-size: 13px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 176px; display: flex; align-items: center; gap: 9px; padding: 13px 17px; border: 1px solid rgba(199,255,60,.5); border-radius: 999px; background: rgba(7,23,18,.94); color: var(--lime); font: 800 10px/1 monospace; letter-spacing: .09em; box-shadow: 0 16px 50px rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, 18px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 14px; height: 14px; }

@keyframes background-breathe { from { transform: scale(1.01); } to { transform: scale(1.035); } }
@keyframes signal-pulse { 0%, 100% { opacity: .45; transform: scale(.82); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes button-scan { 0%, 54% { transform: translateX(-85%); } 78%, 100% { transform: translateX(85%); } }
@keyframes wave { 0%,100% { height: 4px; opacity: .35; } 50% { height: 17px; opacity: 1; } }
@keyframes character-float { 0%,100% { margin-bottom: 0; } 50% { margin-bottom: 13px; } }
@keyframes shadow-breathe { 0%,100% { transform: scaleX(1); opacity: .64; } 50% { transform: scaleX(.88); opacity: .42; } }
@keyframes aura { 0%,100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes orbit-spin { to { transform: rotate(348deg); } }
@keyframes card-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ticker { to { transform: translateX(-50%); } }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr 1fr; }
  .signal { display: none; }
  .hero { grid-template-columns: minmax(390px, .82fr) 1.18fr; }
  .character { width: min(53vw, 690px); right: -9%; }
  .mood-card, .asterisk-note { display: none; }
  .lore-dock { grid-template-columns: 130px 1fr 1fr; }
  .ticker { display: none; }
}
@media (max-height: 800px) and (min-width: 801px) {
  .topbar { height: 74px; }
  .hero { height: calc(100svh - 74px - 124px); padding-top: 8px; }
  .lore-dock { height: 124px; }
  h1 { font-size: clamp(74px, 6.5vw, 112px); }
  .tagline { margin-top: 22px; }
  .intro { line-height: 1.45; }
  .actions { margin-top: 17px; }
  .specimen-line { margin-top: 14px; }
  .toast { bottom: 145px; }
}
@media (max-width: 800px) {
  body { overflow: auto; }
  .site-shell { height: auto; min-height: 100svh; overflow: hidden; }
  .topbar { height: 76px; grid-template-columns: 1fr auto; padding: 0 20px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand small { display: none; }
  .social-nav a { width: 40px; justify-content: center; padding: 0; }
  .social-nav a span, .social-nav a:nth-child(2) { display: none; }
  .hero { height: auto; min-height: auto; grid-template-columns: 1fr; padding: 58px 20px 0; }
  .hero-copy { max-width: 620px; }
  h1 { font-size: clamp(78px, 23vw, 118px); }
  .intro { max-width: 520px; }
  .actions { flex-wrap: wrap; }
  .character-stage { height: 570px; margin-top: 20px; }
  .character { width: min(100%, 620px); right: -10%; bottom: -4px; }
  .orbit { width: 84%; right: 2%; }
  .specimen-card { left: 0; top: 10%; }
  .lore-dock { height: auto; grid-template-columns: 90px 1fr; }
  .lore-label { min-height: 132px; padding: 20px; }
  .lore-card { min-height: 132px; grid-template-columns: 72px 1fr; padding: 20px; border-right: 0; }
  .mission { min-height: 128px; grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; padding: 26px 20px; }
  .toast { bottom: 22px; width: max-content; max-width: calc(100% - 32px); }
  .world-background { background-position: 67% center; opacity: .74; }
  .color-wash { background: linear-gradient(180deg, rgba(2,7,6,.96) 0%, rgba(2,7,6,.76) 38%, rgba(2,7,6,.28) 78%, rgba(2,7,6,.82)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .character { transition: none; }
}
