/* Creativity Sparks — creativity-forward, professional with indie warmth */

:root {
  --bg: #14120f;
  --bg-soft: #1c1915;
  --ink: #f2ece2;
  --ink-dim: #b8af9f;
  --spark: #ffb84d;
  --spark-hot: #ff8a3d;
  --line: #2c2820;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem clamp(1.2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 0.55rem; }

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: url("/assets/sparky-concept.png") right center / 200% 143% no-repeat;
  filter: drop-shadow(0 0 7px rgba(255, 138, 61, 0.42));
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.brand-link { color: inherit; text-decoration: none; }

.topbar nav { display: flex; gap: 1.4rem; }

.topbar nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.topbar nav a:hover { color: var(--spark); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(5rem, 14vh, 9rem) 1.5rem clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 1; }

.hero-copy .eyebrow { margin-bottom: 0.7rem; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--spark);
  text-shadow: 0 0 24px rgba(255, 184, 77, 0.35);
}

.hero .sub {
  margin: 1.4rem 0 2.2rem;
  max-width: 34rem;
  color: var(--ink-dim);
  font-size: 1.08rem;
}

.sparky-frame {
  position: relative;
  width: min(100%, 27rem);
  aspect-ratio: 0.69;
  overflow: hidden;
  justify-self: center;
  border-radius: 48% 48% 42% 42%;
  filter: drop-shadow(0 1.5rem 3rem rgba(0, 0, 0, 0.45));
}

.sparky-frame::after {
  content: "";
  position: absolute;
  inset: 8% 4% 5%;
  border-radius: 50%;
  box-shadow: 0 0 5rem rgba(255, 98, 24, 0.13);
  pointer-events: none;
}

.sparky-frame img {
  position: absolute;
  width: 200%;
  max-width: none;
  left: -100%;
  top: -13.5%;
  display: block;
}

/* floating spark particles */
.spark-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark-field span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--spark);
  opacity: 0;
  animation: drift 9s linear infinite;
}

.spark-field span:nth-child(1)  { left: 8%;  animation-delay: 0s;   animation-duration: 10s; }
.spark-field span:nth-child(2)  { left: 18%; animation-delay: 2.2s; animation-duration: 12s; }
.spark-field span:nth-child(3)  { left: 29%; animation-delay: 4.6s; animation-duration: 9s;  }
.spark-field span:nth-child(4)  { left: 41%; animation-delay: 1.1s; animation-duration: 11s; }
.spark-field span:nth-child(5)  { left: 52%; animation-delay: 3.8s; animation-duration: 10s; }
.spark-field span:nth-child(6)  { left: 63%; animation-delay: 0.7s; animation-duration: 13s; }
.spark-field span:nth-child(7)  { left: 72%; animation-delay: 5.4s; animation-duration: 9s;  }
.spark-field span:nth-child(8)  { left: 81%; animation-delay: 2.9s; animation-duration: 11s; }
.spark-field span:nth-child(9)  { left: 90%; animation-delay: 4.1s; animation-duration: 12s; }
.spark-field span:nth-child(10) { left: 96%; animation-delay: 6.3s; animation-duration: 10s; }

@keyframes drift {
  0%   { transform: translateY(105%) scale(0.6); opacity: 0; }
  15%  { opacity: 0.85; }
  70%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .spark-field span { animation: none; opacity: 0.25; top: 40%; }
}

/* ---------- content blocks ---------- */
.block {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.5rem;
}

.block h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.block p { margin-bottom: 1.05rem; color: var(--ink-dim); }
.block h3 { margin: 1.8rem 0 0.6rem; font-size: 1.15rem; color: var(--ink); }
.block h4 { margin: 1.2rem 0 0.4rem; font-size: 1rem; color: var(--spark); }
.block p strong { color: var(--ink); }

.eyebrow {
  color: var(--spark) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.game-preview { position: relative; }

.game-preview::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(255, 184, 77, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(255, 138, 61, 0.12);
  transform: translateY(-50%);
  pointer-events: none;
}

.block.accent {
  max-width: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.block.accent > * {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.block.accent h2 { color: var(--spark); }

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--spark);
  border-radius: 999px;
  color: var(--spark);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.cta:hover {
  background: var(--spark);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(255, 184, 77, 0.35);
}

.mail { color: var(--spark); text-decoration: none; }
.mail:hover { text-decoration: underline; }

.text-link {
  color: var(--spark);
  font-weight: 650;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* ---------- games placeholder ---------- */
.coming-soon {
  min-height: calc(100vh - 9rem);
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.coming-soon-content {
  max-width: 38rem;
  position: relative;
  z-index: 1;
}

.coming-soon h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0.5rem 0 1.25rem;
}

.coming-soon .lead {
  color: var(--ink-dim);
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 32rem;
}

.ember-orbit {
  width: min(56vw, 24rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 184, 77, 0.14);
  border-radius: 50%;
  position: absolute;
  box-shadow: inset 0 0 80px rgba(255, 138, 61, 0.04), 0 0 100px rgba(255, 138, 61, 0.05);
}

/* ---------- footer ---------- */
footer {
  text-align: center;
  padding: 2.2rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.88rem;
}

footer a { color: var(--ink-dim); }
footer a:hover { color: var(--spark); }

@media (max-width: 620px) {
  .topbar { align-items: flex-start; }
  .topbar nav { gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
  .topbar nav a { font-size: 0.82rem; }
  .game-preview::after { opacity: 0.45; }
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }

  .hero .sub { margin-left: auto; margin-right: auto; }

  .sparky-frame {
    width: min(82vw, 23rem);
    margin-top: -1rem;
  }
}
