:root {
  color-scheme: dark;
  --night: #07142c;
  --deep: #0b1e42;
  --panel: rgba(9, 24, 52, 0.76);
  --line: rgba(133, 235, 255, 0.22);
  --blue: #58c7ff;
  --cyan: #85ebff;
  --violet: #9b6cff;
  --purple: #d586ff;
  --gold: #ffd84f;
  --sun: #fff3a0;
  --text: #f4fbff;
  --muted: #b9cee4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 6%, rgba(133, 235, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 8% 28%, rgba(155, 108, 255, 0.2), transparent 26rem),
    linear-gradient(180deg, #051026 0%, var(--night) 42%, #040916 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.68;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1rem, env(safe-area-inset-left)) 0.9rem max(1rem, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(5, 14, 31, 0.86), rgba(5, 14, 31, 0.32));
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 216, 79, 0.52);
  border-radius: 50%;
  color: #07142c;
  background: radial-gradient(circle, var(--sun), var(--gold));
  box-shadow: 0 0 28px rgba(255, 216, 79, 0.55);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

.header-cta,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(133, 235, 255, 0.44);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(8, 22, 48, 0.62);
  text-decoration: none;
  font-weight: 800;
}

.language-toggle {
  min-width: 74px;
  border-color: rgba(255, 216, 79, 0.42);
  color: #07142c;
  background: linear-gradient(135deg, #fff3a0, var(--gold));
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 7rem 1.25rem 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 4.5rem 0 0;
  background:
    linear-gradient(100deg, transparent 0 10%, rgba(88, 199, 255, 0.18) 10% 12%, transparent 12% 72%, rgba(88, 199, 255, 0.2) 72% 74%, transparent 74%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 96px);
  opacity: 0.86;
}

.light-islands {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.island,
.portal-ring,
.qubik-orb,
.sunny-orb {
  position: absolute;
  display: block;
}

.island {
  width: 13rem;
  height: 4.8rem;
  border: 1px solid rgba(133, 235, 255, 0.3);
  transform: skewX(-18deg);
  background: linear-gradient(135deg, rgba(88, 199, 255, 0.64), rgba(83, 81, 184, 0.38));
  box-shadow: 0 20px 70px rgba(88, 199, 255, 0.22), inset 0 0 36px rgba(255,255,255,0.12);
  animation: floatIsland 8s ease-in-out infinite;
}

.island-one {
  top: 26%;
  right: -3rem;
}

.island-two {
  top: 56%;
  left: -5rem;
  width: 11rem;
  animation-delay: -2s;
}

.island-three {
  bottom: 14%;
  right: 8%;
  width: 9rem;
  height: 3.6rem;
  animation-delay: -4s;
}

.portal-ring {
  width: 17rem;
  height: 17rem;
  right: -3rem;
  top: 30%;
  border: 3px solid rgba(133, 235, 255, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(133, 235, 255, 0.16), 0 0 60px rgba(155, 108, 255, 0.22);
}

.portal-ring::before,
.portal-ring::after {
  content: "";
  position: absolute;
  inset: 1.3rem;
  border-radius: 50%;
  border: 2px dashed rgba(255, 216, 79, 0.38);
  animation: spin 14s linear infinite;
}

.portal-ring::after {
  inset: 3.1rem;
  border-color: rgba(213, 134, 255, 0.36);
  animation-duration: 19s;
  animation-direction: reverse;
}

.qubik-orb,
.sunny-orb {
  border-radius: 50%;
  box-shadow: 0 0 42px currentColor;
}

.qubik-orb {
  width: 5rem;
  height: 5rem;
  left: 14%;
  top: 42%;
  color: rgba(133, 235, 255, 0.64);
  background: radial-gradient(circle at 42% 35%, #fff, #8bf1ff 22%, #4e63d9 64%, #182251 100%);
  animation: bob 4.6s ease-in-out infinite;
}

.sunny-orb {
  width: 4.4rem;
  height: 4.4rem;
  right: 22%;
  bottom: 24%;
  color: rgba(255, 216, 79, 0.72);
  background: radial-gradient(circle at 40% 34%, #fff9c9, var(--gold) 45%, #ff9f3d 100%);
  animation: bob 4.2s ease-in-out infinite -1.2s;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.hero-qready-logo {
  position: absolute;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: 2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 150px;
  min-height: auto;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(133, 235, 255, 0.22);
  border-radius: 8px;
  background: rgba(3, 10, 22, 0.72);
  box-shadow: 0 0 34px rgba(133, 235, 255, 0.16), 0 18px 54px rgba(0, 0, 0, 0.32);
  opacity: 0.82;
  text-decoration: none;
}

.hero-qready-logo img {
  display: block;
  width: auto;
  max-height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(133, 235, 255, 0.18));
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  color: #fff7c9;
  font-size: clamp(2.85rem, 15vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  text-shadow: 0 0 28px rgba(255, 216, 79, 0.24);
}

.subtitle {
  max-width: 22rem;
  margin: 1.2rem 0 0;
  color: var(--cyan);
  font-size: clamp(1.25rem, 6vw, 2.2rem);
  font-weight: 850;
  line-height: 1.08;
}

.hero-copy {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: #d9ebfb;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0.86rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.language-toggle:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid rgba(255, 216, 79, 0.85);
  outline-offset: 3px;
}

.primary {
  color: #061226;
  background: linear-gradient(135deg, #fff3a0, var(--gold) 45%, #6fe7ff);
  box-shadow: 0 0 34px rgba(255, 216, 79, 0.36);
}

.secondary {
  color: var(--text);
  border: 1px solid rgba(133, 235, 255, 0.34);
  background: rgba(12, 30, 66, 0.72);
}

.about,
.story,
.characters,
.beta,
.contact,
.safety,
.trust-badge,
.site-footer {
  padding: 4.25rem 1.25rem;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 1.4rem;
}

h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.character-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  max-width: 1120px;
  margin: 0 auto;
}

.character-card {
  min-height: 176px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 30, 66, 0.82), rgba(13, 24, 52, 0.58));
  box-shadow: var(--shadow);
}

.character-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 0.95rem;
  border-radius: 50%;
  color: #07142c;
  font-size: 1.55rem;
  font-weight: 950;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 45%, var(--violet));
  box-shadow: 0 0 30px rgba(133, 235, 255, 0.32);
}

.sunny .character-avatar {
  background: radial-gradient(circle at 35% 30%, #fff9c9, var(--gold) 45%, #ff9f3d);
}

.prizmo .character-avatar {
  background: radial-gradient(circle at 35% 30%, #fff, var(--purple) 42%, var(--violet));
}

.character-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
}

.character-card p,
.beta-copy p,
.story p,
.about p,
.contact p,
.safety p,
.trust-badge p,
.site-footer p {
  color: var(--muted);
}

.about,
.story,
.contact {
  max-width: 920px;
  margin: 0 auto;
}

.about,
.story {
  position: relative;
  border-top: 1px solid rgba(133, 235, 255, 0.12);
  border-bottom: 1px solid rgba(133, 235, 255, 0.12);
}

.story {
  margin-top: -1px;
}

.about p,
.story p,
.contact p {
  max-width: 44rem;
  margin: 1rem 0 0;
  font-size: 1.04rem;
}

.story-highlight {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 216, 79, 0.36);
  border-radius: 999px;
  color: #07142c !important;
  background: linear-gradient(135deg, #fff3a0, var(--gold) 52%, #85ebff);
  box-shadow: 0 0 34px rgba(255, 216, 79, 0.22);
  font-weight: 950;
}

.contact {
  text-align: center;
}

.contact p {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  color: var(--cyan) !important;
  font-weight: 900;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(133, 235, 255, 0.36);
  border-radius: 999px;
  color: #07142c;
  background: linear-gradient(135deg, #fff3a0, var(--gold) 48%, #85ebff);
  box-shadow: 0 0 32px rgba(133, 235, 255, 0.2);
  font-weight: 900;
  text-decoration: none;
}

.linkedin-link {
  color: var(--cyan);
  background: rgba(12, 30, 66, 0.72);
  box-shadow: none;
}

.beta {
  display: grid;
  gap: 1.4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.beta-copy p {
  max-width: 34rem;
  margin: 1rem 0 0;
}

.waitlist-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 1.35rem;
  border: 1px solid rgba(133, 235, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 216, 79, 0.18), transparent 11rem),
    radial-gradient(circle at 12% 86%, rgba(155, 108, 255, 0.2), transparent 12rem),
    rgba(9, 24, 52, 0.76);
  box-shadow: var(--shadow);
}

.waitlist-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent, rgba(133, 235, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035), rgba(255,255,255,0.035) 1px, transparent 1px, transparent 72px);
  opacity: 0.72;
  pointer-events: none;
}

.waitlist-card h3,
.waitlist-card p,
.waitlist-contact,
.waitlist-pulse {
  position: relative;
  z-index: 1;
}

.waitlist-card h3 {
  margin: 0.7rem 0 0;
  color: #fff7c9;
  font-size: clamp(2rem, 10vw, 4rem);
  line-height: 1;
}

.waitlist-card p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: #d9ebfb;
  font-size: 1.05rem;
}

.waitlist-pulse {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--gold) 44%, #ff9f3d);
  box-shadow: 0 0 34px rgba(255, 216, 79, 0.5);
}

.waitlist-pulse::before,
.waitlist-pulse::after {
  content: "";
  position: absolute;
  inset: -0.55rem;
  border: 1px solid rgba(255, 216, 79, 0.44);
  border-radius: 50%;
  animation: pulseRing 2.8s ease-out infinite;
}

.waitlist-pulse::after {
  animation-delay: 1.4s;
}

.waitlist-contact {
  margin-top: 1.25rem;
}

.beta-form {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
  border: 1px solid rgba(133, 235, 255, 0.28);
  border-radius: 8px;
  background: rgba(9, 24, 52, 0.76);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  color: #e9f7ff;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(133, 235, 255, 0.28);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  color: var(--text);
  background: rgba(3, 12, 28, 0.72);
}

textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.form-status[data-tone="success"] {
  color: #9bffd2;
}

.form-status[data-tone="warn"] {
  color: var(--gold);
}

.form-status[data-tone="error"] {
  color: #ff9aa8;
}

.safety {
  max-width: 920px;
  margin: 0 auto;
}

.safety h2 {
  font-size: clamp(1.7rem, 7vw, 2.8rem);
}

.trust-badge {
  max-width: 920px;
  margin: 0 auto 2rem;
  text-align: center;
}

.trust-badge p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  padding: 0.9rem 1.05rem;
  border: 1px solid rgba(133, 235, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 30, 66, 0.82), rgba(13, 24, 52, 0.58));
  box-shadow: var(--shadow);
  color: #dff8ff;
  font-weight: 850;
}

.site-footer {
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
  border-top: 1px solid rgba(133, 235, 255, 0.16);
  background: rgba(3, 10, 22, 0.58);
}

.site-footer p {
  margin: 0;
}

.qready-logo {
  display: block;
  max-height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.footer-brand h2 {
  margin: 0 0 0.35rem;
  color: #fff7c9;
  font-size: clamp(1.8rem, 8vw, 3rem);
}

.footer-brand p {
  color: var(--cyan);
  font-weight: 850;
}

.footer-details {
  display: grid;
  gap: 0.45rem;
}

.footer-details a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.site-footer button {
  min-height: 44px;
  border: 1px solid rgba(133, 235, 255, 0.24);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--cyan);
  background: rgba(10, 27, 58, 0.64);
  cursor: pointer;
}

@keyframes floatIsland {
  0%, 100% { transform: translateY(0) skewX(-18deg); }
  50% { transform: translateY(-16px) skewX(-18deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulseRing {
  0% {
    opacity: 0.75;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@media (min-width: 720px) {
  .site-header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero-content {
    margin-left: max(0rem, calc((100vw - 1120px) / 2));
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beta {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 0.55rem;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100vw - 154px);
  }

  .header-actions {
    flex: 0 0 auto;
  }

  .header-cta {
    display: none;
  }

  .language-toggle {
    min-width: 82px;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .hero-qready-logo {
    max-width: 110px;
    right: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.45rem;
  }

  .hero-qready-logo img {
    max-height: 24px;
  }

  .qready-logo {
    max-height: 24px;
  }
}

@media (min-width: 1040px) {
  .character-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hero-copy {
    font-size: 1.14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
