:root {
  --cream: #F4F0E6;
  --matcha: #74A12E;
  --matcha-soft: rgba(116, 161, 46, 0.18);
  --bg: #060a17;
  --bg-2: #0b1430;
  --panel: rgba(18, 28, 58, 0.55);
  --border: rgba(244, 240, 230, 0.08);
  --muted: rgba(244, 240, 230, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--cream);
  background: radial-gradient(ellipse at top, var(--bg-2) 0%, var(--bg) 60%) fixed, var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

/* ---------- Enter screen ---------- */
.enter {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.enter.hidden {
  opacity: 0;
  visibility: hidden;
}

.enter__text {
  padding: 0 16px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 4vw, 2rem);
  letter-spacing: 0.25em;
  text-transform: lowercase;
  color: #fff;
  animation: glow 2.4s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    opacity: 0.75;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.5), 0 0 16px rgba(255, 255, 255, 0.3);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 10px #fff, 0 0 28px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.5);
  }
}

/* Hero animations wait until the site is entered */
body.locked .logo,
body.locked .hero__tag,
body.locked .scroll-hint {
  animation-play-state: paused;
}

/* ---------- Player ---------- */
.player {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.player__btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(244, 240, 230, 0.06);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.player__btn:hover {
  background: var(--matcha-soft);
  color: var(--matcha);
}

.player__btn:active {
  transform: scale(0.92);
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-pause,
.icon-muted {
  display: none;
}

.player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; }
.player.is-muted .icon-vol { display: none; }
.player.is-muted .icon-muted { display: block; }
.player.is-muted #muteBtn { color: #d9534f; }

.player__value {
  min-width: 26px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Volume slider */
#volume {
  --fill: 85%;
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--matcha) var(--fill), rgba(244, 240, 230, 0.15) var(--fill));
  outline: none;
  cursor: pointer;
}

#volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  box-shadow: 0 0 0 3px var(--matcha-soft);
  transition: transform 0.15s;
}

#volume::-webkit-slider-thumb:hover { transform: scale(1.2); }

#volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  box-shadow: 0 0 0 3px var(--matcha-soft);
}

.player.is-muted #volume {
  opacity: 0.4;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
}

.hero__glow {
  position: absolute;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 161, 46, 0.16), transparent 65%);
  filter: blur(20px);
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

.logo {
  position: relative;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 1;
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.logo__byte { color: var(--cream); }
.logo__sense { color: var(--matcha); }

.hero__tag {
  position: relative;
  margin-top: 18px;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeUp 1.2s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.8s both;
}

.scroll-hint svg {
  width: 22px;
  height: 22px;
  fill: var(--matcha);
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Offer ---------- */
.offer {
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 16px 100px;
  text-align: center;
}

.section-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 4rem);
  letter-spacing: -0.02em;
}

.offer__lead {
  margin-top: 20px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--muted);
}

.accent {
  color: var(--matcha);
  font-weight: 600;
}

.sub-title {
  margin-top: 90px;
  margin-bottom: 30px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 36px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(116, 161, 46, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(116, 161, 46, 0.4);
}

.card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--matcha-soft);
}

/* Lucide icons (stroke-based) */
.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--matcha);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.card--more h4 {
  color: var(--muted);
}

.devs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dev {
  padding: 14px 32px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.amp {
  font-size: 1.8rem;
  color: var(--matcha);
  font-weight: 600;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* stagger feature cards */
.features .reveal:nth-child(2) { transition-delay: 0.12s; }
.features .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Footer ---------- */
.footer {
  padding: 30px 16px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer .logo__byte,
.footer .logo__sense {
  font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .player {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
  }

  #volume { flex: 1; width: auto; }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
