/* ==========================================================================
   NET77REGISTER.COM — "The Page Is The Object" (NET77 Gamer Passport)
   Direction: page-is-the-object | Type: Barlow Condensed + Barlow
   Palette: Rose Grey, Paper, Brown-Black Ink, Forest Green Accent
   ========================================================================== */

:root {
  --bg: #ebe5e3;
  --surface: #e1dad7;
  --paper: #f6f2f0;
  --ink: #2b2622;
  --muted: #59504b;
  --accent: #0c6b3b;
  --accent-hover: #08522d;
  --accent-ink: #ffffff;
  --room-dark: #1c1816;

  --font-display: 'Barlow Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.98rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem);
  --step-head: clamp(2.1rem, 1.4rem + 2.8vw, 3.8rem);
  --step-hero: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);

  --gutter: clamp(16px, 3vw, 32px);
  --max-w: 1280px;
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

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

button, input, select {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   HEADER NAVIGATION (Plain flat bar, no chrome, no glass)
   ========================================================================== */
.site-header {
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 60;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: var(--ink);
  color: var(--paper);
  font-size: 1.1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

/* ==========================================================================
   BUTTONS (Square-cornered, flat, single fill)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-ink {
  background-color: var(--ink);
  color: var(--paper);
}

.btn-ink:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn-paper {
  background-color: var(--surface);
  color: var(--ink);
}

.btn-paper:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   HERO — "Card Over A Dim Room" (NET77 Digital Gamer Passport)
   ========================================================================== */
.hero-room {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px) var(--gutter);
  background-color: var(--room-dark);
  overflow: hidden;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05);
  transform: scale(1.03);
  transition: transform 6s ease-out;
}

.hero-room.is-loaded .hero-bg-photo {
  transform: scale(1);
}

.passport-card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  background-color: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 4.5vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.passport-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.passport-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-hero);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.passport-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background-color: var(--surface);
  padding: 18px 20px;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-key {
  font-size: var(--step-small);
  color: var(--muted);
  font-weight: 500;
}

.fact-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.passport-lead {
  font-size: var(--step-lead);
  line-height: 1.45;
  color: var(--ink);
  max-width: 52ch;
}

.passport-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

.passport-meta {
  font-size: var(--step-small);
  color: var(--muted);
  font-weight: 500;
}

.passport-link {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.passport-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   SECTION 1 — "Output Slips Along The Edge" (Katalog Arcade)
   ========================================================================== */
.slips-stage {
  position: relative;
  background-color: var(--room-dark);
  padding-top: clamp(64px, 8vw, 110px);
  overflow: hidden;
}

.slips-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) grayscale(0.4);
}

.slips-intro {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-bottom: clamp(44px, 6vw, 72px);
  background-color: var(--room-dark);
  padding: clamp(24px, 3vw, 36px);
  color: var(--paper);
}

.slips-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-head);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--paper);
}

.slips-copy {
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--bg);
}

.slips-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: end;
}

.output-slip {
  background-color: var(--paper);
  color: var(--ink);
  padding: 24px 22px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease;
}

.output-slip:nth-child(1) { min-height: 310px; }
.output-slip:nth-child(2) { min-height: 350px; transform: rotate(-1.2deg); }
.output-slip:nth-child(3) { min-height: 325px; }
.output-slip:nth-child(4) { min-height: 365px; transform: rotate(1.1deg); }

.output-slip:hover {
  transform: translateY(-8px) rotate(0deg);
}

.slip-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.slip-cat {
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--accent);
}

.slip-desc {
  font-size: 1rem;
  line-height: 1.48;
  color: var(--muted);
}

.slip-action {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.slip-action:hover {
  color: var(--accent);
}

/* ==========================================================================
   INTERACTIVE MICRO-TOOL — "Konfigurator Paspor & Estimasi Node NET77"
   ========================================================================== */
.section-band {
  padding-block: clamp(72px, 9vw, 130px);
}

.section-surface {
  background-color: var(--surface);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-head);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-lead {
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.estimator-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.estimator-panel {
  background-color: var(--paper);
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.estimator-readout {
  background-color: var(--ink);
  color: var(--paper);
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.readout-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--paper);
}

.readout-sub {
  font-size: 1rem;
  color: var(--bg);
  margin-top: 8px;
}

.readout-bar-track {
  width: 100%;
  height: 10px;
  background-color: #413a35;
  margin-top: 18px;
  overflow: hidden;
}

.readout-bar-fill {
  height: 100%;
  background-color: var(--accent);
  width: 78%;
  transition: width 0.35s ease;
}

.readout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.readout-cell {
  background-color: #3a332e;
  padding: 16px;
}

.readout-label {
  font-size: var(--step-small);
  color: var(--bg);
}

.readout-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  margin-top: 4px;
}

/* ==========================================================================
   SECTION 2 — "Drag Row Of Moments" (4 Tahap Paspor & Studio)
   ========================================================================== */
.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.row-controls {
  display: flex;
  gap: 8px;
}

.row-btn {
  width: 48px;
  height: 48px;
  border: none;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.row-btn:hover {
  background-color: var(--accent);
}

.row-progress {
  width: 100%;
  height: 6px;
  background-color: var(--surface);
  margin-bottom: 36px;
  overflow: hidden;
}

.row-progress-fill {
  height: 100%;
  width: 35%;
  background-color: var(--ink);
  transition: width 0.25s ease;
}

.moments-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.moments-track::-webkit-scrollbar {
  display: none;
}

.moment-col {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.moment-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.moment-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
}

.moment-gap-sm { height: 28px; }
.moment-gap-md { height: 56px; }
.moment-gap-lg { height: 84px; }

.moment-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.25);
}

/* ==========================================================================
   SECTION 3 — "Questions Beside A Tall Photograph" (FAQ Split 5:7)
   ========================================================================== */
.faq-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.faq-facts {
  margin-top: 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.faq-item {
  background-color: var(--paper);
  padding: 20px 24px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.faq-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.faq-photos {
  position: relative;
  padding-bottom: 48px;
}

.faq-photo-tall {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.2);
}

.faq-photo-inset {
  position: absolute;
  left: -28px;
  bottom: 0;
  width: 38%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--bg);
  padding: 8px;
}

/* ==========================================================================
   FORMS & SUBPAGES (Main, Daftar, Register, Login, Masuk)
   ========================================================================== */
.subpage-hero {
  background-color: var(--surface);
  padding-block: clamp(56px, 7vw, 96px);
}

.subpage-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.release-sheet {
  background-color: var(--paper);
  display: flex;
  flex-direction: column;
}

.release-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--room-dark);
}

.release-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.release-sheet:hover .release-media img {
  transform: scale(1.03);
}

.release-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.release-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.release-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-tag {
  background-color: var(--surface);
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
  padding: 5px 12px;
}

.auth-sheet {
  max-width: 620px;
  margin-inline: auto;
  background-color: var(--paper);
  padding: clamp(28px, 4.5vw, 48px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background-color: #ffffff;
  border: 1.5px solid #c9c0bc;
  color: var(--ink);
  font-size: 1rem;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
}

.status-msg {
  display: none;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 0.95rem;
}

.status-msg.error {
  display: block;
  background-color: #f8e2e0;
  color: #7c1f1a;
}

.status-msg.success {
  display: block;
  background-color: #d8efe2;
  color: #0b522e;
}

.lobby-ribbon {
  background-color: var(--ink);
  color: var(--paper);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   FOOTER — "The Back Of The Card" (Postcard panel with scalloped top)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--ink);
  padding: clamp(56px, 7vw, 88px) var(--gutter) clamp(36px, 5vw, 56px);
}

.postcard-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
}

.postcard-scallop {
  width: 100%;
  height: 22px;
  display: block;
  fill: var(--paper);
}

.postcard-panel {
  background-color: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 4.5vw, 52px);
}

.postcard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.postcard-signoff {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.postcard-msg {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 24px;
}

.postcard-right {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
}

.postcard-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.postcard-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
}

.postcard-links a:hover {
  color: var(--accent);
}

.postcard-stamp {
  width: 88px;
  aspect-ratio: 3 / 4;
  background-color: var(--surface);
  padding: 6px;
  flex-shrink: 0;
}

.postcard-stamp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.3);
}

.postcard-imprint {
  margin-top: 36px;
  padding-top: 18px;
  background-color: var(--surface);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--step-small);
  color: var(--muted);
}

/* ==========================================================================
   SCROLL REVEAL MOTION (Transform + Opacity only, accessible fallback)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.js-motion .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg-photo {
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE — TABLET (<= 960px) & MOBILE (<= 640px)
   ========================================================================== */
@media (max-width: 960px) {
  .slips-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .output-slip:nth-child(2),
  .output-slip:nth-child(4) {
    transform: none;
  }
  .estimator-grid,
  .faq-split,
  .subpage-grid,
  .postcard-grid,
  .lobby-grid {
    grid-template-columns: 1fr;
  }
  .faq-photo-inset {
    left: auto;
    right: 12px;
    width: 36%;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--paper);
    padding: 20px var(--gutter) 28px;
  }
  .nav-menu.nav-active {
    display: block;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .passport-facts {
    grid-template-columns: 1fr;
  }
  .slips-row {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .row-controls {
    display: none;
  }
  .moment-col {
    flex: 0 0 76vw;
  }
  .moment-gap-md { height: 32px; }
  .moment-gap-lg { height: 48px; }
  .postcard-stamp {
    width: 64px;
  }
}
