/* sections.css — homepage section styles */

/* ════════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════════ */

.hero-section {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem; /* header offset */
  padding-bottom: var(--sp-16);
  background: #0E0822;
  background: -webkit-linear-gradient(135deg, #0E0822 0%, #1C0A42 50%, #091635 100%);
  background: linear-gradient(135deg, #0E0822 0%, #1C0A42 50%, #091635 100%);
}

/* Ambient glow layers */
.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(229, 25, 122, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(255, 77, 26, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-section__inner {
    grid-template-columns: 1fr 0.85fr;
    gap: var(--sp-16);
  }
}

.hero-content {
  max-width: 56ch;
}

.hero-content__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--sp-5);
}

.hero-content__eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 2px;
  background: var(--grad-accent);
  border-radius: var(--radius-full);
}

.hero-content__title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
}

@media (min-width: 768px) {
  .hero-content__title {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1280px) {
  .hero-content__title {
    font-size: var(--text-6xl);
  }
}

.hero-content__text {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--sp-8);
  max-width: 46ch;
}

.hero-content__chips {
  margin-bottom: var(--sp-10);
}

.hero-content__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.hero-content__cta-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

/* Hero visual — decorative floating screenshots */
.hero-visual {
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
    height: 520px;
  }
}

.hero-visual__frame {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.hero-visual__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual__frame--main {
  width: 380px;
  height: 214px;
  top: 60px;
  right: 0;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transform: rotate(-1.5deg);
}

.hero-visual__frame--secondary {
  width: 280px;
  height: 158px;
  top: 0;
  left: 20px;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.06);
  transform: rotate(2deg);
  opacity: 0.75;
}

.hero-visual__frame--tertiary {
  width: 240px;
  height: 135px;
  bottom: 80px;
  left: 60px;
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.06);
  transform: rotate(-0.5deg);
  opacity: 0.6;
}

/* Decorative ring */
.hero-visual__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 0;
}

.hero-visual__ring::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(229, 25, 122, 0.1);
}

/* ════════════════════════════════════════════
   GAME PULSE STRIP
════════════════════════════════════════════ */

.game-pulse-section {
  background: var(--clr-surface);
  padding-block: var(--sp-16);
  border-bottom: 1px solid var(--clr-border);
}

.pulse-grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .pulse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pulse-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pulse-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-8) var(--sp-6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pulse-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.pulse-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pulse-card:hover::before {
  opacity: 1;
}

.pulse-card--1::before { background: linear-gradient(90deg, #FF4D1A, #FF8A50); }
.pulse-card--2::before { background: linear-gradient(90deg, #E5197A, #FF5BAE); }
.pulse-card--3::before { background: linear-gradient(90deg, #00BFA5, #4DD9C8); }
.pulse-card--4::before { background: linear-gradient(90deg, #7B5CF6, #A78BFA); }

.pulse-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  font-size: 1.4rem;
}

.pulse-card--1 .pulse-card__icon { background: var(--clr-orange-10); }
.pulse-card--2 .pulse-card__icon { background: var(--clr-pink-10); }
.pulse-card--3 .pulse-card__icon { background: var(--clr-teal-10); }
.pulse-card--4 .pulse-card__icon { background: rgba(123, 92, 246, 0.10); }

.pulse-card__title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-md);
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
  line-height: var(--leading-snug);
}

.pulse-card__text {
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ════════════════════════════════════════════
   INTERACTIVE GAMEPLAY SHOWCASE
════════════════════════════════════════════ */

.gameplay-section {
  background: var(--clr-bg);
  padding-block: var(--section-py-lg);
}

.gameplay-section .section-header {
  margin-bottom: var(--sp-16);
}

.gameplay-inner {
  display: grid;
  gap: var(--sp-10);
}

@media (min-width: 1024px) {
  .gameplay-inner {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--sp-16);
    align-items: start;
  }
}

/* Tab list */
.gameplay-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

@media (max-width: 1023px) {
  .gameplay-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: var(--sp-2);
    gap: var(--sp-2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gameplay-tabs::-webkit-scrollbar { display: none; }
}

.gameplay-tab {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius-xl);
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  text-align: left;
  transition: all var(--transition-smooth);
  flex-shrink: 0;
  width: 100%;
}

@media (max-width: 1023px) {
  .gameplay-tab {
    width: auto;
    min-width: max-content;
    padding: var(--sp-3) var(--sp-5);
  }
}

.gameplay-tab:hover {
  background: var(--clr-surface);
  border-color: var(--clr-border);
}

.gameplay-tab.is-active {
  background: var(--clr-surface);
  border-color: var(--clr-orange);
  box-shadow: var(--shadow-sm);
}

.gameplay-tab__number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
  background: var(--clr-bg-alt);
  color: var(--clr-text-secondary);
  border: 1.5px solid var(--clr-border);
  transition: all var(--transition-base);
}

.gameplay-tab.is-active .gameplay-tab__number {
  background: var(--grad-accent);
  background: -webkit-linear-gradient(135deg, #FF4D1A 0%, #E5197A 100%);
  background: linear-gradient(135deg, #FF4D1A 0%, #E5197A 100%);
  color: var(--clr-white);
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(255, 77, 26, 0.3);
}

.gameplay-tab__label {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  line-height: var(--leading-snug);
  transition: color var(--transition-base);
}

@media (max-width: 1023px) {
  .gameplay-tab__label { white-space: nowrap; }
}

.gameplay-tab.is-active .gameplay-tab__label {
  color: var(--clr-text);
}

/* Panel content */
.gameplay-panels {
  position: relative;
}

.gameplay-panel {
  display: none;
  animation: panelFadeIn 0.35s ease forwards;
}

.gameplay-panel.is-active {
  display: block;
}

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

.gameplay-panel__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--sp-8);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
}

.gameplay-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gameplay-panel__image:hover img {
  transform: scale(1.03);
}

.gameplay-panel__step {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: var(--sp-3);
}

.gameplay-panel__title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
  line-height: var(--leading-snug);
}

.gameplay-panel__text {
  font-size: var(--text-md);
  color: var(--clr-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 44ch;
}

/* ════════════════════════════════════════════
   GALLERY SECTION
════════════════════════════════════════════ */

.gallery-section {
  background: var(--clr-surface);
  padding-block: var(--section-py-lg);
}

.gallery-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .gallery-item:first-child {
    grid-row: 1 / 3;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--clr-bg-alt);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
  .gallery-item:first-child {
    aspect-ratio: auto;
  }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-5);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item__label {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-white);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transform: translateY(6px);
  transition: transform var(--transition-smooth);
}

.gallery-item__label svg {
  opacity: 0.8;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-item__label {
  transform: translateY(0);
}

/* Border on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 77, 26, 0);
  transition: border-color var(--transition-smooth);
  pointer-events: none;
}

.gallery-item:hover::after {
  border-color: rgba(255, 77, 26, 0.4);
}

/* ════════════════════════════════════════════
   PROGRESS / VARIETY SECTION
════════════════════════════════════════════ */

.progress-section {
  background: var(--grad-warm-surface);
  background: -webkit-linear-gradient(160deg, #FFF6F1 0%, #FFF0F8 100%);
  background: linear-gradient(160deg, #FFF6F1 0%, #FFF0F8 100%);
  padding-block: var(--section-py-lg);
}

.progress-inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .progress-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-20);
  }
}

.progress-content {}

.progress-content .section-title {
  margin-bottom: var(--sp-5);
}

.progress-content__text {
  font-size: var(--text-md);
  color: var(--clr-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-8);
  max-width: 42ch;
}

.progress-tiles {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.progress-tile {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.progress-tile:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.progress-tile__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.progress-tile:nth-child(1) .progress-tile__dot { background: var(--clr-orange); }
.progress-tile:nth-child(2) .progress-tile__dot { background: var(--clr-pink); }
.progress-tile:nth-child(3) .progress-tile__dot { background: var(--clr-teal); }
.progress-tile:nth-child(4) .progress-tile__dot { background: #7B5CF6; }

.progress-tile__text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-base);
  color: var(--clr-text);
}

.progress-tile__sub {
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
  margin-left: auto;
}

/* ════════════════════════════════════════════
   WHY IT FEELS GOOD SECTION
════════════════════════════════════════════ */

.why-section {
  background: var(--clr-surface);
  padding-block: var(--section-py-lg);
}

.why-section .section-header--center {
  margin-bottom: var(--sp-12);
}

.why-quote {
  text-align: center;
  margin-bottom: var(--sp-16);
  position: relative;
  padding-block: var(--sp-10);
}

.why-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--grad-accent);
}

.why-quote::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--grad-accent);
}

.why-quote__text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  color: var(--clr-text);
  max-width: 26ch;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .why-quote__text {
    font-size: var(--text-3xl);
  }
}

.why-columns {
  display: grid;
  gap: var(--sp-10);
}

@media (min-width: 768px) {
  .why-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-16);
  }
}

.why-column__title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-lg);
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.why-column__title::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.why-column:nth-child(1) .why-column__title::before { background: var(--clr-orange); }
.why-column:nth-child(2) .why-column__title::before { background: var(--clr-pink); }
.why-column:nth-child(3) .why-column__title::before { background: var(--clr-teal); }
.why-column:nth-child(4) .why-column__title::before { background: #7B5CF6; }

.why-column__text {
  font-size: var(--text-base);
  color: var(--clr-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ════════════════════════════════════════════
   STUDIO / TRUST SECTION
════════════════════════════════════════════ */

.studio-section {
  background: var(--clr-bg);
  padding-block: var(--section-py-lg);
  border-top: 1px solid var(--clr-border);
}

.studio-inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .studio-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--sp-20);
  }
}

.studio-brand__logo {
  margin-bottom: var(--sp-6);
}

.studio-brand__logo img {
  height: 2.25rem;
  width: auto;
}

.studio-brand__copy {
  font-size: var(--text-md);
  color: var(--clr-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 40ch;
}

.studio-trust {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--shadow-xs);
}

.trust-item__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.trust-item:nth-child(1) .trust-item__icon { background: var(--clr-orange-10); }
.trust-item:nth-child(2) .trust-item__icon { background: var(--clr-pink-10); }
.trust-item:nth-child(3) .trust-item__icon { background: var(--clr-teal-10); }

.trust-item__text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  color: var(--clr-text);
}

/* ════════════════════════════════════════════
   FINAL CTA SECTION
════════════════════════════════════════════ */

.final-cta-section {
  padding-block: var(--section-py-lg);
  background: #160A2E;
  background: -webkit-linear-gradient(135deg, #160A2E 0%, #2E0D1E 60%, #120A30 100%);
  background: linear-gradient(135deg, #160A2E 0%, #2E0D1E 60%, #120A30 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 77, 26, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(229, 25, 122, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-inline: auto;
}

.final-cta__eyebrow {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--sp-5);
}

.final-cta__title {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  color: var(--clr-white);
  margin-bottom: var(--sp-5);
}

@media (min-width: 768px) {
  .final-cta__title {
    font-size: var(--text-5xl);
  }
}

.final-cta__text {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-10);
  max-width: 42ch;
  margin-inline: auto;
}

.final-cta__badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.final-cta__badge-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}
