/* Nebulon Labs. Palette: the original nebulongames.com indigo, deepened toward navy;
   layout borrows from app-family sites like Readdle: icon-led product cards. */

:root {
  --indigo: #1d1b47;
  --navy: #232b6b;
  --deep: #0b0d24;
  --cyan: #4fc3ff;
  --accent: #4b62a8;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #1d1f2c;
  --muted: #646a80;
  --line: #e7e9f2;
  --band: linear-gradient(135deg, var(--indigo) 0%, #13163b 55%, var(--deep) 100%);
  --shadow-sm: 0 1px 2px rgba(16, 18, 60, 0.04), 0 2px 8px rgba(16, 18, 60, 0.04);
  --shadow-md: 0 2px 4px rgba(16, 18, 60, 0.04), 0 16px 40px rgba(16, 18, 60, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); font-weight: 600; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header band, with rings that echo the O in the logo */
.band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% 30%, rgba(79, 195, 255, 0.12), transparent 70%),
    var(--band);
  color: #fff;
  padding-bottom: 72px;
}
.band::before, .band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.band::before {
  width: 640px; height: 640px;
  right: -200px; top: -220px;
  border: 90px solid rgba(79, 195, 255, 0.05);
}
.band::after {
  width: 380px; height: 380px;
  right: -60px; top: -80px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.topbar .logo { text-decoration: none; }
.wordmark { height: 25px; width: auto; display: block; }
.topbar nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.topbar nav a {
  padding: 7px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.88rem;
  transition: background-color 0.2s, color 0.2s;
}
.topbar nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 0 24px;
}
.hero .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.hero .chip i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 195, 255, 0.25);
}
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .hl {
  /* Cyan to blue, taken from the O in the Nebulon logo */
  background: linear-gradient(90deg, #5ee3ff 0%, #4fc3ff 45%, #8ea2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 14px 0 28px; max-width: 44ch; color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 40, 0.25); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }


/* Hero screenshot carousel */
.carousel { position: relative; }
.frame {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 30px 60px rgba(0, 0, 40, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.dot {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.dot:hover { color: #fff; }
.dot.active { background: #fff; color: var(--navy); border-color: #fff; }

/* App-style icon tile */
.tile {
  display: grid;
  place-items: center;
  border-radius: 24%;
  background: var(--tint, #fff);
  overflow: hidden;
}
.tile img { width: 70%; height: 70%; object-fit: contain; display: block; }
.tile.full img { width: 100%; height: 100%; object-fit: cover; }
.tile.ring { box-shadow: inset 0 0 0 1px var(--line); }
.tile.ring img { width: 92%; height: 92%; object-fit: contain; }

/* Content overlaps the header */
main { position: relative; z-index: 2; margin-top: -48px; padding-bottom: 64px; }

.products-wrap {
  padding: 32px;
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-title { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.sec-sub { margin: 4px 0 0; color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  font-weight: 400;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.product .tile { width: 60px; height: 60px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.product .tile.ring { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.product .body { flex: 1; min-width: 0; }
.product .cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tint, #eef0f8);
  color: var(--ink, var(--accent));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product h3 { font-size: 1.12rem; font-weight: 700; margin: 8px 0 4px; }
.product p { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.product .go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.product .go b {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #eef0fb;
  font-size: 0.8rem;
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.product:hover .go b { transform: translateX(3px); background: var(--navy); color: #fff; }
.product .go + .stores { margin-top: 10px; }
.product .stores { display: flex; gap: 6px; flex-wrap: wrap; }
.product .stores img { height: 32px; width: auto; display: block; }
.product .stores a:hover img { opacity: 0.85; }
.product.soon { background: var(--bg); border-style: dashed; align-items: center; }
.product.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.product.soon .tile { background: #fff; color: var(--accent); font-size: 1.6rem; font-weight: 400; box-shadow: inset 0 0 0 1px var(--line); }
.product.soon h3 { margin-top: 0; }

/* About */
.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
  padding: 28px;
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}
.about img { width: 100%; height: auto; border-radius: 18px; display: block; }
.about .sec-title { margin-bottom: 10px; }
.about p { margin: 0 0 10px; color: #3d4152; }
.about p:last-child { margin: 0; }

.contact {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 32px;
  border-radius: 28px;
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(79, 195, 255, 0.14), transparent 70%),
    var(--band);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact h2 { font-size: 1.4rem; font-weight: 800; }
.contact p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.78); }

footer { color: var(--muted); font-size: 0.82rem; }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
}
footer p { margin: 0; }
footer a { color: var(--muted); font-weight: 500; }
footer a:hover { color: var(--navy); }

/* Load-in */
.rise { animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) both; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Document pages (privacy) */
.panel {
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: 36px 40px;
}
.doc h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.doc .updated { color: var(--muted); margin: 6px 0 20px; font-size: 0.88rem; }
.doc h2 { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin: 28px 0 8px; }
.doc p, .doc li { font-size: 0.93rem; color: #3d4152; }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc li { margin-bottom: 4px; }
.doc .plist { list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc .plist li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px;
  margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.doc .plist li:last-child { border-bottom: 0; }
.doc .plist li:nth-child(even) { background: var(--bg); }
.doc address { font-style: normal; font-size: 0.93rem; color: #3d4152; }
.doc a:hover { text-decoration: underline; }

/* Store redirect page (quizzr.html) */
.redirect { max-width: 520px; margin: 0 auto; text-align: center; }
.redirect .tile { width: 88px; height: 88px; margin: 0 auto 18px; }
.redirect h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.redirect p { margin: 8px 0 18px; color: var(--muted); }
.redirect .stores { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.redirect .stores img { height: 40px; width: auto; display: block; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .products-wrap, .about, .contact { padding: 22px; border-radius: 22px; }
}
@media (max-width: 560px) {
  .topbar nav { display: none; }
  .panel { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .slide { transition: none; }
  .product, .btn, .product .go b { transition: none; }
}
