/* Reset Dasar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cyan Tajam */
  --bg-color: #7fff44;
  /* Hitam Pekat */
  --text-color: #050505;
  /* Border Hitam */
  --border-color: #050505;
  --font-main: 'Space Grotesk', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  height: 100vh;
  overflow: hidden; /* Supaya ga ada scroll bar kalau konten pas */
  display: flex;
  flex-direction: column;
}

/* Container Utama */
.main-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 20px solid var(--bg-color); /* Memberi frame luar */
  outline: 1px solid var(--border-color); /* Garis tipis luar */
}

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.status-badge {
  font-family: monospace;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  text-transform: uppercase;
}

.blink {
  animation: blinker 1.5s linear infinite;
  color: red;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/* --- Main Grid Layout (Bento) --- */
.grid-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Kiri lebih lebar */
  grid-template-rows: 1fr 1fr;
  flex-grow: 1; /* Mengisi sisa ruang */
}

/* Shared Box Styles */
.box {
  padding: 3rem;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Specific Box Tweaks */
.hero-section {
  grid-row: 1 / span 2; /* Box kiri memanjang ke bawah full */
}

.hero-section h1 {
  font-size: 4.5rem;
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 400px;
  line-height: 1.4;
}

.info-section {
  border-right: none; /* Hilangkan border kanan karena mentok layar */
}

.cta-section {
  border-right: none;
  border-bottom: none;
  background: #000; /* Invert warna buat box CTA */
  color: var(--bg-color);
}

.cta-section label {
  margin-bottom: 1rem;
  display: block;
  font-weight: bold;
}

/* --- Form Styles --- */
.email-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--bg-color);
}

.email-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  color: var(--bg-color);
  font-family: var(--font-main);
  outline: none;
}

.email-form input::placeholder {
  color: rgba(204, 255, 0, 0.5);
}

.email-form button {
  background: var(--bg-color);
  color: #000;
  border: none;
  padding: 0 1.5rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

.email-form button:hover {
  background: #fff;
}

/* --- Decorative Crosshairs --- */
.crosshair {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--border-color);
  border-style: solid;
}

.top-left {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px; /* Garis siku kiri atas */
}

.bottom-right {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0; /* Garis siku kanan bawah */
  border-color: var(--bg-color); /* Ikutin warna teks box gelap */
}

/* --- Footer Marquee --- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  color: var(--bg-color);
  padding: 0.8rem 0;
  font-family: monospace;
  font-size: 0.9rem;
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
  body {
    height: auto;
    overflow-y: auto;
  }

  .main-container {
    border-width: 10px;
  }

  .grid-layout {
    grid-template-columns: 1fr; /* Jadi satu kolom */
    grid-template-rows: auto;
  }

  .hero-section {
    grid-row: auto;
    border-right: none;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .info-section,
  .cta-section {
    border-right: none;
  }
}

/* =========================================
   MOBILE RESPONSIVE (Taruh di paling bawah)
   ========================================= */

@media (max-width: 768px) {
  /* 1. Atur Body supaya bisa discroll di HP */
  body {
    height: auto;
    overflow-y: auto; /* Aktifkan scroll vertikal */
  }

  /* 2. Frame luar diperkecil dikit biar gak makan tempat */
  .main-container {
    border-width: 10px; /* Frame lebih tipis di HP */
    height: auto; /* Tinggi ngikutin konten */
    min-height: 100vh; /* Minimal setinggi layar */
  }

  /* Header lebih padat */
  header {
    padding: 1rem 1.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* 3. Grid Layout jadi 1 Kolom (Numpuk ke bawah) */
  .grid-layout {
    display: flex; /* Ubah grid jadi flex column */
    flex-direction: column;
  }

  /* 4. Reset Border Kotak-kotak */
  .box {
    width: 100%; /* Lebar full */
    border-right: none; /* Hapus garis kanan */
    border-bottom: 1px solid var(--border-color); /* Pastikan ada garis bawah */
    padding: 2rem; /* Padding diperkecil biar muat */
    min-height: auto; /* Tinggi otomatis */
  }

  /* 5. Kecilin Font Judul Utama (Hero) */
  .hero-section h1 {
    font-size: 2.8rem; /* Di desktop 4.5rem, di HP 2.8rem cukup */
    margin-bottom: 1rem;
  }

  .hero-section {
    padding-bottom: 4rem; /* Kasih napas di bawah */
  }

  /* 6. Atur ulang urutan (kalau perlu) */
  /* Di sini urutannya: Hero -> Info -> Form (default HTML flow) */

  /* Hapus border bawah di elemen terakhir biar gak dobel sama footer */
  .cta-section {
    border-bottom: none;
  }

  /* Crosshair adjustment */
  .crosshair {
    width: 10px;
    height: 10px;
  }
}
