/* ===================================
   GONGBOLA — GLOBAL DESIGN SYSTEM
=================================== */

:root {
  --black-900: #0a0a0d;
  --black-800: #121218;
  --black-700: #16161c;

  --gold-soft: #c9b27c;
  --gold-glow: rgba(201,178,124,0.35);

  --text-main: #f5f5f5;
  --text-muted: #b5b5b5;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  line-height: 1.7;
}

/* ===================================
   BACKGROUND MODES
=================================== */

/* HOME PAGE */
body.home {
  background:
    radial-gradient(circle at left center, rgba(201,178,124,0.28), transparent 60%),
    radial-gradient(circle at right center, rgba(201,178,124,0.28), transparent 60%),
    radial-gradient(circle at center top, rgba(201,178,124,0.18), transparent 55%),
    linear-gradient(180deg, var(--black-900), var(--black-800));
}

/* INNER PAGES */
body.inner {
  background: linear-gradient(180deg, var(--black-800), var(--black-700));
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body > * {
  position: relative;
  z-index: 1;
}

/* ===================================
   LAYOUT
=================================== */

section {
  padding: 96px 24px;
}

.container {
  max-width: 1080px;
  margin: auto;
}

/* ===================================
   TYPOGRAPHY
=================================== */

h1 {
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: .08em;
  margin-bottom: 24px;
}

body.home h1 {
  background: linear-gradient(90deg, #f3e7c3, #c9b27c, #8b7344);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.inner h1 {
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: .02em;
}

p {
  color: var(--text-muted);
}

/* ===================================
   HERO
=================================== */

.hero {
  text-align: center;
  padding-top: 140px;
}

/* ===================================
   STATEMENT
=================================== */

.statement p {
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.statement::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  margin: 40px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* ===================================
   PLATFORM
=================================== */

.brand-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold-soft);
  text-decoration: none;
  position: relative;
  transition: color .3s ease;
}

.brand-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,178,124,.7),
    transparent
  );
  opacity: .6;
}

.brand-link:hover {
  color: #f3e7c3;
}


/* ===================================
   SLIDER & CARD (HOME ONLY)
=================================== */

.slider {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 0 32px;
  margin-top: -40px;
}

.slider::-webkit-scrollbar {
  display: none;
}

.card {
  min-width: 320px;
  scroll-snap-align: center;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.015)
  );
  border: 1px solid rgba(201,178,124,0.25);
  backdrop-filter: blur(6px);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

body.home .card:hover,
body.home .card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(201,178,124,0.6);
  box-shadow:
    0 0 0 1px rgba(201,178,124,0.2),
    0 20px 60px var(--gold-glow);
}

.card h3 {
  color: var(--gold-soft);
  margin-top: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(201,178,124,.35);
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: all .3s ease;
}

.read-more span {
  transition: transform .3s ease;
}

.read-more:hover {
  background: rgba(201,178,124,.08);
  border-color: rgba(201,178,124,.7);
}

.read-more:hover span {
  transform: translateX(4px);
}


/* ===================================
   INNER PAGE ELEMENTS
=================================== */

.inner header {
  padding: 32px 24px;
}

.inner header a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 500;
}

.inner main {
  max-width: 760px;
  margin: auto;
  padding: 64px 24px 96px;
}

.lead {
  font-size: 18px;
  max-width: 680px;
}

.divider {
  width: 64px;
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.note {
  background: rgba(201,178,124,0.08);
  border-left: 3px solid var(--gold-soft);
  padding: 16px 20px;
  font-size: 14px;
  margin: 32px 0;
}

.back {
  display: inline-block;
  margin-top: 64px;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 14px;
}

/* ===================================
   FOOTER
=================================== */

footer {
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===================================
   POPUP
=================================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-card {
  position: relative;
  width: min(420px, 90%);
  background: linear-gradient(180deg, #121216, #0b0b0e);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(201, 178, 124, 0.18);
  animation: popupIn 0.45s ease;
}

@keyframes popupIn {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* Close button */
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s ease;
}

.popup-close:hover {
  background: rgba(201, 178, 124, 0.2);
  color: #c9b27c;
}

/* Image */
.popup-image img {
  width: 100%;
  display: block;
}

/* Content */
.popup-content {
  padding: 22px;
  text-align: center;
}

.popup-content h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: #c9b27c;
}

.popup-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d0d0d0;
  margin-bottom: 18px;
}

/* Button */
.popup-btn {
  appearance: none;
  border: none;
  cursor: pointer;

  padding: 14px 30px;
  border-radius: 999px;

  background: linear-gradient(180deg, #0b0b0e, #15151c);
  color: #c9b27c;

  font-weight: 600;
  letter-spacing: .35px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.6),
    inset 0 0 0 1px rgba(201,178,124,.35);

  transition: all .35s ease;
}

.popup-btn:hover {
  transform: translateY(-2px);
  color: #f5e6b0;

  box-shadow:
    0 18px 45px rgba(201,178,124,.35),
    inset 0 0 0 1px rgba(201,178,124,.6);
}
