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

:root {
  --black: #0a0a0a;
  --white: #f5f2ed;
  --amber: #e8a020;
  --amber-dim: #c4881a;
  --amber-glow: rgba(232, 160, 32, 0.15);
  --light-gray: #b0a898;
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-border: rgba(255, 255, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) var(--black);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 3px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.5;
}
@media (min-width: 901px) {
  body { cursor: none; }
}

::selection { background: var(--amber); color: var(--black); }

a { color: inherit; text-decoration: none; }

/* CUSTOM CURSOR */
.h-cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
  opacity: 0;
}
.h-cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(232, 160, 32, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s, opacity 0.3s;
  opacity: 0;
}
body:hover .h-cursor,
body:hover .h-cursor-ring { opacity: 1; }
.h-cursor.hovering {
  width: 48px; height: 48px;
  background: rgba(232, 160, 32, 0.08);
  mix-blend-mode: normal;
}
.h-cursor.hovering + .h-cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--amber);
  opacity: 0.8;
}
@media (max-width: 900px) {
  .h-cursor, .h-cursor-ring { display: none !important; }
}

/* SCROLL REVEAL */
.h-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.h-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO ENTRANCE */
@keyframes hFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.h-hero-text > * {
  opacity: 0;
  animation: hFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.h-hero .h-eyebrow { animation-delay: 0.1s; }
.h-hero .h-hero-title { animation-delay: 0.22s; }
.h-hero .h-hero-sub { animation-delay: 0.36s; }
.h-hero .h-hero-ctas { animation-delay: 0.48s; }

/* NAV */
.h-nav {
  display: flex;
  align-items: center;
  padding: 24px 6vw;
}
.h-logo { display: flex; align-items: center; }
.h-logo-img { height: 44px; width: auto; }

/* HERO */
.h-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  gap: 40px;
}
@media (min-width: 1100px) {
  .h-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
  .h-hero-text { flex: 0 0 52%; }
  .h-hero-play { flex: 0 0 40%; }
}
.h-hero-play {
  position: relative;
  width: 100%;
  height: 260px;
  border: 1px solid var(--card-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.h-hero-play.active {
  opacity: 1;
  pointer-events: auto;
}
.h-hero-play.fullscreen {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 20;
}
@media (min-width: 1100px) {
  .h-hero-play { height: 420px; }
}
#spikesCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
}
.h-game-cta {
  position: absolute;
  right: 6vw;
  bottom: 0;
  z-index: 6;
  padding: 10px 20px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  background: var(--black);
  color: var(--amber);
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.25s, color 0.25s;
}
.h-game-cta.near { opacity: 1; pointer-events: auto; }
.h-game-cta:hover { background: var(--amber); color: var(--black); }
.h-game-cta.hide { display: none; }
@media (pointer: coarse) {
  .h-game-cta:not(.hide) { opacity: 1; pointer-events: auto; }
}
.h-game-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 7;
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(10, 10, 10, 0.8);
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
}
.h-hero-play.fullscreen .h-game-close { display: flex; }
.h-hero-play-hint {
  display: none;
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
  opacity: 0.4;
  pointer-events: none;
}
.h-hero-play.active .h-hero-play-hint { display: block; }
.h-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.h-eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}
.h-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.92;
  letter-spacing: -1px;
}
.h-hero-title span { color: var(--amber); }
.h-hero-sub {
  margin-top: 24px;
  max-width: 480px;
  color: var(--light-gray);
  font-size: 1.05rem;
}
.h-hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.h-hero-ctas .h-btn {
  border-radius: 0;
  padding: 18px 40px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* BUTTONS */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.h-btn:hover { transform: translateY(-2px); }
.h-btn-primary { background: var(--amber); color: var(--black); }
.h-btn-primary:hover { background: var(--amber-dim); }
.h-btn-outline { border-color: var(--card-border); color: var(--white); }
.h-btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* SECTIONS */
.h-section { padding: 100px 6vw; }
.h-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.5px;
  margin-bottom: 48px;
}

/* PRICING */
.h-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.h-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.h-card-featured {
  border-color: var(--amber);
  background: var(--amber-glow);
}
.h-card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--amber);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.h-card-name {
  font-size: 1rem;
  color: var(--light-gray);
  margin-bottom: 8px;
}
.h-card-price-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light-gray);
  margin-bottom: 2px;
}
.h-card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--amber);
  margin-bottom: 16px;
}
.h-card-desc {
  color: var(--light-gray);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.h-card-list {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}
.h-card-list li {
  font-size: 0.9rem;
  padding: 8px 0;
  border-top: 1px solid var(--card-border);
}
.h-card-list li:first-child { border-top: none; }
.h-card-list li::before { content: "— "; color: var(--amber); }
.h-card-btn { width: 100%; }

.h-disclaimer {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--light-gray);
  max-width: 640px;
}

/* WORK CTA */
.h-work-cta {
  padding: 60px 6vw;
  text-align: center;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.h-work-cta p { font-size: 1.2rem; }
.h-work-cta a { color: var(--amber); border-bottom: 1px solid var(--amber); }

/* CONTACT */
.h-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
.h-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.h-contact-form-col { margin-top: -150px; }
.h-contact-chip {
  display: inline-block;
  border: 1px solid var(--card-border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: border-color 0.25s, color 0.25s;
}
.h-contact-chip:hover { border-color: var(--amber); color: var(--amber); }

.h-form { display: flex; flex-direction: column; }
.h-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.h-form-field { margin-bottom: 2px; }
.h-form input,
.h-form textarea {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 18px 20px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  resize: none;
}
.h-form input:focus,
.h-form textarea:focus {
  border-color: var(--amber);
  background: rgba(232, 160, 32, 0.03);
}
.h-form input::placeholder,
.h-form textarea::placeholder { color: var(--light-gray); }
.h-form-submit {
  margin-top: 2px;
  width: 100%;
  background: var(--amber);
  color: var(--black);
  border: none;
  padding: 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.h-form-submit:hover {
  background: var(--amber-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 160, 32, 0.3);
}
.h-form-consent {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--light-gray);
  text-align: center;
}
.h-form-consent a { color: var(--amber); }

.h-form-success {
  display: none;
  padding: 24px;
  border: 1px solid var(--amber);
  background: var(--amber-glow);
  border-radius: 12px;
  margin-top: 14px;
}
.h-form-success.show { display: block; }

.h-form-error {
  display: none;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-top: 14px;
}
.h-form-error.show { display: block; }
.h-form-error a { color: var(--amber); }

.h-footer {
  padding: 32px 6vw 48px;
  color: var(--light-gray);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.h-footer-link { color: var(--light-gray); transition: color 0.25s; }
.h-footer-link:hover { color: var(--amber); }

@media (max-width: 860px) {
  .h-pricing-grid { grid-template-columns: 1fr; }
  .h-contact-grid { grid-template-columns: 1fr; }
  .h-form-row { grid-template-columns: 1fr; }
}
