/* index.html – main page styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #050608;
  --surface: #0d0f14;
  --card: #111318;
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(0, 229, 190, 0.3);
  --cyan: #00e5be;
  --cyan-dim: rgba(0, 229, 190, 0.12);
  --cyan-glow: rgba(0, 229, 190, 0.25);
  --white: #f0f2f5;
  --muted: #5a6070;
  --muted2: #8a90a0;
  --text: #c8cdd8;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  font-family: "Cabinet Grotesk", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 2px;
}

/* ── CANVAS BG ── */
#gridCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 6, 8, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  background: var(--cyan);
  color: var(--black) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  font-weight: 700 !important;
  transition:
    box-shadow 0.2s,
    transform 0.15s !important;
}
.nav-cta:hover {
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-1px);
  color: var(--black) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(5, 6, 8, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 1.25rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--cyan);
}
.mobile-menu .nav-cta {
  text-align: center;
  background: var(--cyan);
  color: var(--black) !important;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-weight: 700 !important;
}

/* ── HERO ── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 4rem 4rem;
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
}

.hero-game-wrap {
  display: none;
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 360px;
  max-height: 55vh;
  margin-left: auto;
  margin-right: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 15, 20, 0.5);
  flex-shrink: 0;
}

/* Gradient overlay: edges blend into page background */
.hero-game-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  background: linear-gradient(to bottom, var(--black) 0%, transparent 22%),
    linear-gradient(to top, var(--black) 0%, transparent 22%),
    linear-gradient(to right, var(--black) 0%, transparent 22%),
    linear-gradient(to left, var(--black) 0%, transparent 22%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hero-game-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

@media (min-width: 1024px) {
  .hero-wrap {
    display: grid;
    grid-template-columns: 1fr minmax(380px, 480px);
    gap: 3rem;
    align-items: center;
  }
  .hero-game-wrap {
    display: block;
    margin-left: 0;
    margin-right: 0;
    height: 440px;
    max-height: min(440px, 50vh);
    max-width: 100%;
    align-self: start;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan-dim);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s ease forwards;
}
.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

h1.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s ease forwards;
}
h1.hero-title em {
  font-style: normal;
  color: var(--cyan);
  -webkit-text-stroke: 0px;
}
h1.hero-title .outline {
  -webkit-text-stroke: 1.5px rgba(240, 242, 245, 0.25);
  color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--muted2);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s ease forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.btn-primary:hover {
  box-shadow:
    0 0 30px var(--cyan-glow),
    0 4px 20px rgba(0, 229, 190, 0.2);
  transform: translateY(-2px);
}
.btn-primary svg {
  transition: transform 0.2s;
}
.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.7s 0.85s ease forwards;
  flex-wrap: wrap;
}
.stat-item {
}
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
}
.stat-num span {
  color: var(--cyan);
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

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

/* ── SECTION SHARED ── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 4rem;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted2);
  max-width: 480px;
  line-height: 1.7;
}

/* ── SERVICES ── */
#services {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  background: var(--card);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.3s;
  cursor: default;
}
.service-card:hover {
  background: #161820;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.service-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted2);
  border: 1px solid var(--border);
}
.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
}
.service-more {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.service-actions .service-more {
  margin-top: 0;
}
.service-more:hover {
  color: var(--white);
}
.service-try {
  color: var(--white);
  background: var(--cyan);
  color: var(--black);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.service-try:hover {
  color: var(--black);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-1px);
}

/* ── HOW WE WORK ── */
#process {
}

.process-steps {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: padding-left 0.3s;
}
.process-step:hover {
  padding-left: 1rem;
}
.process-step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.5rem;
  color: var(--border);
  line-height: 1;
  transition: color 0.3s;
}
.process-step:hover .step-num {
  color: var(--cyan);
}

.step-content {
}
.step-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.7;
  max-width: 520px;
}

/* ── WHY US ── */
#why {
  background: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition:
    border-color 0.3s,
    transform 0.2s;
}
.why-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}
.why-card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.why-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.why-card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted2);
  line-height: 1.7;
}

/* ── CTA BANNER ── */
#cta {
  position: relative;
  overflow: hidden;
}
#cta .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 5rem 4rem;
}

.cta-left {
}
.cta-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--white);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.cta-title span {
  color: var(--cyan);
}
.cta-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted2);
  max-width: 380px;
  line-height: 1.7;
}

/* Cyan diagonal line decoration */
#cta::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  opacity: 0.3;
}
#cta::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: 60px;
  width: 200px;
  height: 200px;
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  opacity: 0.15;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
}
.footer-logo span {
  color: var(--cyan);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--cyan);
}

.footer-social {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--cyan);
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 190, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 229, 190, 0);
  }
}
/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

      /* ── RESPONSIVE ── */
      @media (max-width: 900px) {
        nav {
          padding: 1.2rem 1.5rem;
        }
        .nav-links {
          display: none;
        }
        .hamburger {
          display: flex;
        }
        #hero {
          padding: 6rem 1.5rem 3rem;
        }
  .section-inner {
    padding: 4rem 1.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .process-step {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
  }
  #cta .section-inner {
    padding: 4rem 1.5rem;
  }
  footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .hero-stats {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1.hero-title {
    font-size: 3.2rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-primary,
  .btn-ghost {
    text-align: center;
    justify-content: center;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .stat-num {
    font-size: 2.2rem;
  }
}
