/* ===== Amber Roach Games — Studio Site ===== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: #111111;
  --orange: #ff8a1e;
  --blue: #2f7dff;
  --white: #ffffff;
  --muted: #c2c0cc;
  --border: rgba(255, 255, 255, 0.1);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.section-lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
}

.mission-statement {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.35;
  max-width: 20ch;
  letter-spacing: -0.01em;
}

section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

/* ===== Background curves ===== */
.bg-curves {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 6%, black 48%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 6%, black 48%);
}
.bg-curves path {
  fill: none;
  stroke: #141414;
  stroke-width: 9;
  stroke-linecap: round;
}
.bg-curves-drift {
  animation: bg-drift 40s ease-in-out infinite;
  transform-origin: center;
}
.bg-curves-parallax {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bg-drift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-45px, 25px) scale(1.03); }
  50% { transform: translate(20px, 55px) scale(1); }
  75% { transform: translate(45px, -20px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

.gradient-text {
  color: var(--orange);
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #000000;
}
.btn-primary:hover {
  transform: translateY(-3px);
  background: #ffa04a;
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-3px);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-brand span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--muted);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.42rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle button.active {
  background: var(--orange);
  color: #000000;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}
.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  animation: draw-line 1.4s ease forwards 0.3s;
}
@keyframes draw-line {
  to { transform: scaleX(1); }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.hero-logo {
  width: min(70vw, 380px);
  margin-bottom: 2.6rem;
  animation: logo-in 1s ease;
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(-14px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  max-width: 16ch;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Pillars ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.pillar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.8rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}
.pillar-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.pillar-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}
.pillar-card p {
  color: var(--muted);
  font-size: 1.02rem;
  position: relative;
  z-index: 1;
}

/* ===== Stats ===== */
.stats {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--orange);
}
.stat-label {
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.4rem;
}

/* ===== Project section ===== */
.project-section {
  background: var(--bg-soft);
}
.project-text {
  margin-top: 2.2rem;
}
.project-cta {
  margin-top: 1.8rem;
}
.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.6rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  color: var(--muted);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse-dot 1.6s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.project-text p {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 52ch;
}
.project-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.tag {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

/* Project screenshot */
.project-shot {
  margin: 0;
}
.project-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--orange);
  border-radius: 14px;
  transition: transform 0.35s ease;
}
.project-shot:hover img {
  transform: translateY(-6px);
}
.project-shot figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ===== Team ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 2.6rem;
}
.team-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.7rem 1.4rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
}
.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-1,
.avatar-2,
.avatar-3,
.avatar-4 {
  background: var(--orange);
  color: #000000;
}
.team-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
}
.team-role {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-head);
  margin: 0.3rem 0 0.7rem;
  letter-spacing: 0.02em;
}
.team-bio {
  color: var(--muted);
  font-size: 1rem;
}

/* ===== Updates / Signup ===== */
.updates-section {
  background: var(--bg-soft);
}
.updates-intro {
  text-align: center;
}
.updates-intro .section-lede {
  margin: 0 auto;
}
.signup-form {
  max-width: 640px;
  margin: 2.6rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  width: 100%;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.form-field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}
.form-field input,
.form-field textarea {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(194, 192, 204, 0.5);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.98rem;
  user-select: none;
}
.checkbox-row input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.checkbox-box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid var(--border);
  background: var(--panel);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.checkbox-row:hover .checkbox-box {
  border-color: var(--orange);
}
.checkbox-row input[type="checkbox"]:focus-visible + .checkbox-box {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.checkbox-check {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #000000;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.3s ease 0.05s;
}
.checkbox-row input[type="checkbox"]:checked + .checkbox-box {
  background: var(--orange);
  border-color: var(--orange);
  animation: checkbox-pop 0.3s ease;
}
.checkbox-row input[type="checkbox"]:checked + .checkbox-box .checkbox-check {
  stroke-dashoffset: 0;
}
@keyframes checkbox-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}
.form-status {
  min-height: 1.2rem;
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}
.tester-panel {
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.tester-panel.open {
  max-height: 500px;
  opacity: 1;
}
.tester-note-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
}
.tester-panel textarea {
  width: 100%;
  font-family: var(--font-body);
}

/* ===== Contact ===== */
.contact-section {
  text-align: center;
}
.contact-section .section-lede {
  margin: 0 auto;
}
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.social-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.4rem;
}
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.social-icon svg {
  width: 18px;
  height: 18px;
}
.social-icon:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  background: var(--orange);
  color: #000000;
}

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 2.4rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-copy {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(14px);
    padding: 1.4rem 6vw;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}
