/* ==========================================================================
   FORGE GYM & FITNESS - BRUTALIST BLACK + VOLT LIME
   Demo by HORA Studio
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --line: rgba(201, 242, 78, 0.2);
  --line-soft: rgba(255, 255, 255, 0.09);

  --white: #f2f2ef;
  --muted: #a3a39c;
  --dim: #6b6b64;

  --volt: #c9f24e;
  --volt-deep: #97bd28;

  --display: 'Lexend', sans-serif;
  --sans: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.container { width: min(92%, var(--container)); margin: 0 auto; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 1001;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* --- TYPO --- */
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.volt { color: var(--volt); }

.section { padding: 6.5rem 0; }

.section-panel {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 15%, rgba(255, 255, 255, 0.02) 85%, transparent);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.btn-volt {
  background: var(--volt);
  color: #101400;
}

.btn-volt:hover {
  background: #daff62;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(201, 242, 78, 0.25);
}

.btn-line {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.btn-line:hover {
  box-shadow: inset 0 0 0 1px var(--volt);
  color: var(--volt);
}

.btn-full { width: 100%; }

.link-volt {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--volt);
  transition: letter-spacing 0.3s var(--ease-out);
}

.link-volt:hover { letter-spacing: 0.14em; }

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.35s var(--ease-out);
}

.site-header.scrolled {
  padding: 0.7rem 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.brand span { color: var(--volt); }

.nav { display: flex; gap: 2.2rem; }

.nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.15) brightness(0.5);
  animation: bg-zoom 16s ease-out both;
}

@keyframes bg-zoom {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.5), transparent 35%, rgba(10, 10, 10, 0.92) 88%),
    radial-gradient(ellipse at 15% 85%, rgba(201, 242, 78, 0.12), transparent 45%);
}

.hero-content { padding-bottom: 4rem; }

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title span { display: block; }

.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--volt);
}

.hero-sub {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 1.6rem 0 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

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

.rise-1 { animation: rise 0.9s var(--ease-out) 0.05s both; }
.rise-2 { animation: rise 0.9s var(--ease-out) 0.16s both; }
.rise-3 { animation: rise 0.9s var(--ease-out) 0.3s both; }
.rise-4 { animation: rise 0.9s var(--ease-out) 0.46s both; }
.rise-5 { animation: rise 0.9s var(--ease-out) 0.6s both; }
.rise-6 { animation: rise 0.9s var(--ease-out) 0.8s both; }

/* Hero stats bar */
.hero-stats {
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem 0;
}

.stat .count {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--volt);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.stat small {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --- MARQUEE --- */
.marquee {
  overflow: hidden;
  padding: 1.2rem 0;
  background: var(--volt);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #101400;
}

.marquee-track i {
  font-style: normal;
  color: #101400;
  opacity: 0.5;
  font-size: 0.7rem;
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* --- PROGRAMS --- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.4rem;
}

.program-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}

.program-card:hover {
  transform: translateY(-8px);
  border-color: var(--line);
}

.program-img {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.program-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.1) brightness(0.85);
  transition: transform 0.7s var(--ease-out), filter 0.5s;
}

.program-card:hover .program-img img {
  transform: scale(1.07);
  filter: grayscale(0) contrast(1.05) brightness(1);
}

.program-num {
  position: absolute;
  bottom: -6px;
  right: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 242, 78, 0.7);
}

.program-body { padding: 1.6rem 1.5rem 1.8rem; }

.program-body h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.program-body p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* --- WHY --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-list { margin-top: 1.8rem; }

.why-list li {
  padding: 0.85rem 0 0.85rem 1.8rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
  color: var(--muted);
  position: relative;
}

.why-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--volt);
}

.why-list strong {
  color: var(--white);
  font-weight: 600;
}

.why-visual {
  position: relative;
}

.why-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.why-chip {
  position: absolute;
  bottom: 22px;
  left: -18px;
  background: var(--volt);
  color: #101400;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.7rem 1.1rem;
  animation: chip-blink 3s ease-in-out infinite;
}

@keyframes chip-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* --- PRICING --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: var(--line);
}

.price-card.featured {
  border-color: var(--volt);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 242, 78, 0.08), transparent 55%),
    var(--panel);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--volt);
  color: #101400;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.price-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.4rem;
}

.price-card.featured .price-num { color: var(--volt); }

.price-num small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dim);
}

.price-card ul {
  flex: 1;
  margin-bottom: 1.8rem;
}

.price-card ul li {
  padding: 0.55rem 0 0.55rem 1.5rem;
  font-size: 0.87rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--line-soft);
  position: relative;
}

.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--volt);
  font-weight: 700;
}

/* --- SIGNUP --- */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.signup-desc {
  color: var(--muted);
  max-width: 420px;
}

.signup-hotline {
  margin-top: 2rem;
  border-left: 3px solid var(--volt);
  padding-left: 1.2rem;
}

.signup-hotline span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.signup-hotline a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--volt);
}

.signup-form {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(201, 242, 78, 0.12);
}

.field input::placeholder { color: var(--dim); }

.form-note {
  font-size: 0.76rem;
  color: var(--dim);
  text-align: center;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.footer-brand span { color: var(--volt); }

.footer-copy {
  margin-top: 0.8rem;
  font-size: 0.76rem;
  color: var(--dim);
}

/* --- FLOATING --- */
.floating-contact {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 999;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: #0068ff;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease-out);
}

.float-btn:hover { transform: translateY(-3px) scale(1.06); }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.in-view { opacity: 1; transform: none; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .why-grid, .signup-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .header-cta { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .why-visual img { height: 340px; }
  .why-chip { left: 10px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 62px; left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-140%);
    transition: transform 0.45s var(--ease-out);
  }

  .nav.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .section { padding: 4rem 0; }
  .hero { min-height: 86vh; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-bg img,
  .marquee-track,
  .why-chip,
  [class^="rise-"] {
    animation: none;
  }

  [class^="rise-"] { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
