
/* =========================================
   VOYAGER'S HAVEN — STYLE.CSS
   Versi perbaikan layout lengkap
========================================= */

:root {
  --bg: #061522;
  --panel: rgba(3, 16, 29, 0.96);
  --line: #1a354b;
  --text: #f4f8ff;
  --muted: #a5bed3;
  --cyan: #13c8f5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(
      rgba(2, 11, 21, 0.35),
      rgba(2, 11, 21, 0.72)
    ),
    url("assets/Panorama%20Kota%20Kastel%20Pulau%20Langit.png");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1440px, 94%);
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(3, 12, 23, 0.97);
  border: 1px solid rgba(75, 133, 170, 0.2);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}

.brand b {
  color: var(--cyan);
}

.compass {
  color: #22caff;
  font-size: 32px;
  text-shadow: 0 0 15px #00aaff;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

nav a,
.footer a {
  transition: color 0.2s;
}

nav a:hover,
.footer a:hover {
  color: var(--cyan);
}

.discord-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border: 1px solid #38546d;
  border-radius: 8px;
  background: #0a1a2b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.discord-top:hover {
  border-color: var(--cyan);
  background: #102b40;
}

.menu-toggle {
  display: none;
  color: white;
  background: transparent;
  border: 0;
  font-size: 25px;
}

/* HERO */

.hero {
  width: min(1240px, 92%);
  min-height: 335px;
  margin: 0 auto;
  padding: 65px 28px 55px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  color: #39d5ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 5px;
}

.hero h1 {
  margin: 15px 0;
  font-size: clamp(42px, 5.5vw, 70px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 20px #06111b;
}

.hero h1 span {
  color: #17c8f4;
}

.hero p {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.8;
  color: #e0eaf5;
}

.slogan {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 25px;
  background: linear-gradient(100deg, #078fe8, #13c8f5);
  border-radius: 6px;
  font-style: italic;
  font-weight: 800;
  box-shadow: 0 8px 25px #008dd533;
  transition: transform 0.2s;
}

.slogan:hover {
  transform: translateY(-3px);
}

/* PANEL */

.panel {
  min-width: 0;
  padding: 24px;
  background: linear-gradient(
    145deg,
    rgba(3, 16, 29, 0.97),
    rgba(3, 13, 24, 0.96)
  );
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 12px 35px #0004;
}

.rank-section,
.lower-grid,
.faq,
.footer {
  width: min(1240px, 92%);
  margin: 0 auto 22px;
}

/* JUDUL DAFTAR RANK */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 26px;
  text-align: center;
}

.section-heading > span {
  color: var(--cyan);
  font-size: 27px;
}

.section-heading h2 {
  margin: 0 0 7px;
  font-size: 30px;
  letter-spacing: -1px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* KARTU RANK */

.rank-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 15px;
  width: 100%;
}

.rank-card {
  --rank: #1acbff;

  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;

  border: 1px solid var(--rank);
  border-radius: 12px;

  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--rank) 10%, #071a2a),
    rgba(2, 12, 21, 0.98) 75%
  );

  box-shadow: inset 0 0 24px
    color-mix(in srgb, var(--rank) 5%, transparent);

  transition: transform 0.2s, box-shadow 0.2s;
}

.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px
    color-mix(in srgb, var(--rank) 15%, transparent);
}

.rank-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 14px;

  background: color-mix(in srgb, var(--rank) 8%, transparent);
  border-bottom: 1px solid
    color-mix(in srgb, var(--rank) 20%, transparent);
}

.rank-gem {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  font-size: 29px;
}

.rank-name {
  color: var(--rank);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.rank-tier {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 7px;
  border: 1px solid
    color-mix(in srgb, var(--rank) 25%, transparent);
  border-radius: 5px;
  background: color-mix(in srgb, var(--rank) 10%, #071522);
  color: #dce9f5;
  font-size: 10px;
  line-height: 1.4;
}

.rank-price {
  padding: 17px 8px;
  color: white;
  text-align: center;
  font-size: clamp(14px, 1.35vw, 19px);
  font-weight: 900;
  line-height: 1.5;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #173044;
}

.perks {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 16px 13px;
}

.perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: #d7e5f2;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal;
}

.perks li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--rank);
  font-size: 14px;
  font-weight: 900;
}

/* TOMBOL PILIH RANK */

.rank-button {
  display: block;
  width: calc(100% - 24px);
  min-height: 42px;
  margin: auto 12px 12px;
  padding: 11px 8px;

  border: 0;
  border-radius: 7px;
  color: #04121d;
  background: var(--rank);

  font-size: 12px;
  font-weight: 900;
  text-align: center;
  line-height: 1.4;

  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.rank-button:hover,
.buy-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.rank-button:focus-visible,
.buy-button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* BAGIAN BAWAH */

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 16px;
}

.lower-grid > .panel {
  min-width: 0;
  padding: 22px;
}

.lower-grid h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* KIT MINGGUAN */

.kit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.kit-card {
  --rank: #1acbff;

  min-width: 0;
  overflow: hidden;
  border: 1px solid
    color-mix(in srgb, var(--rank) 65%, #173044);
  border-radius: 8px;
  text-align: center;
  background: color-mix(in srgb, var(--rank) 7%, #061522);
}

.kit-card h4 {
  margin: 10px 2px;
  color: var(--rank);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.kit-items {
  min-height: 90px;
  padding: 10px 2px;
  border-top: 1px solid
    color-mix(in srgb, var(--rank) 30%, transparent);
  font-size: 19px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* CARA PEMBELIAN */

.step {
  display: grid;
  grid-template-columns: 32px 42px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 23px;
}

.number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25578f;
  font-weight: 900;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #102a42;
  color: #b6dcff;
  font-size: 24px;
}

.step-icon.success {
  border-radius: 50%;
  background: #0d9a62;
  color: white;
}

.step b {
  font-size: 12px;
  line-height: 1.5;
}

.step p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

/* FORM PEMBELIAN */

#purchaseForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.field {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0 12px 0 40px;
  border: 1px solid #19384f;
  border-radius: 8px;
  background: #0a2034;
  transition: border-color 0.2s;
}

.field:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px #13c8f51a;
}

.field span {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  font-size: 15px;
}

.field input,
.field select {
  display: block;
  width: 100%;
  height: 45px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 12px;
}

.field input::placeholder {
  color: #c0d3e2;
}

.field select {
  cursor: pointer;
}

.field select option {
  color: white;
  background: #071827;
}

.summary {
  min-height: 18px;
  color: #85dfff;
  font-size: 12px;
  line-height: 1.6;
}

.buy-button {
  display: block;
  width: 100%;
  min-height: 45px;
  padding: 13px 12px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(100deg, #4779ed, #6798ff);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  transition: 0.2s;
}

.buy-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.feedback {
  margin: 0;
  color: #79edbb;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.small {
  margin: 0;
  text-align: center;
}

/* FAQ */

.faq h2 {
  margin: 0 0 15px;
  font-size: 23px;
}

.faq details {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* FOOTER */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(2, 12, 21, 0.97);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.footer .brand {
  font-size: 16px;
}

.footer .compass {
  font-size: 25px;
}

.footer p,
.footer > div {
  color: #a8cce7;
  font-size: 12px;
  line-height: 1.6;
}

/* TABLET */

@media (max-width: 1100px) {
  .navbar {
    width: 96%;
    padding: 13px 18px;
    gap: 15px;
  }

  nav {
    gap: 17px;
  }

  .hero {
    min-height: 300px;
  }

  .rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rank-name {
    font-size: 20px;
  }

  .rank-price {
    font-size: 18px;
  }

  .lower-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lower-grid > :last-child {
    grid-column: 1 / -1;
  }
}

/* HP */

@media (max-width: 700px) {
  .navbar {
    width: 100%;
    min-height: 65px;
    padding: 11px 15px;
    gap: 10px;
    border-radius: 0;
  }

  .brand {
    gap: 5px;
    font-size: 16px;
  }

  .compass {
    font-size: 26px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #061522;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .discord-top {
    padding: 9px;
    font-size: 10px;
  }

  .hero {
    width: 94%;
    min-height: 260px;
    padding: 40px 10px;
  }

  .hero h1 {
    font-size: clamp(35px, 8vw, 48px);
    letter-spacing: -1.5px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .hero p {
    max-width: 360px;
    font-size: 13px;
  }

  .panel {
    padding: 17px;
  }

  .rank-section,
  .lower-grid,
  .faq,
  .footer {
    width: 94%;
    margin-bottom: 16px;
  }

  .section-heading {
    gap: 10px;
    margin-bottom: 20px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .section-heading p {
    font-size: 11px;
  }

  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .rank-head {
    min-height: 70px;
    gap: 7px;
    padding: 10px 8px;
  }

  .rank-gem {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .rank-name {
    font-size: 17px;
  }

  .rank-tier {
    font-size: 9px;
  }

  .rank-price {
    padding: 14px 5px;
    font-size: 15px;
  }

  .perks {
    padding: 13px 10px;
  }

  .perks li {
    gap: 5px;
    margin-bottom: 9px;
    font-size: 11px;
  }

  .rank-button {
    width: calc(100% - 16px);
    margin: auto 8px 8px;
    padding: 11px 5px;
    font-size: 11px;
  }

  .lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lower-grid > :last-child {
    grid-column: auto;
  }

  .lower-grid > .panel {
    padding: 18px;
  }

  .kit-grid {
    gap: 5px;
  }

  .kit-card h4 {
    font-size: 10px;
  }

  .kit-items {
    font-size: 17px;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .footer p {
    width: 100%;
    margin: 0;
  }
}

/* HP KECIL */

@media (max-width: 380px) {
  .brand {
    font-size: 14px;
  }

  .discord-top {
    padding: 8px;
    font-size: 9px;
  }

  .rank-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-head {
    min-height: 75px;
  }

  .rank-name {
    font-size: 20px;
  }

  .rank-price {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .section-heading h2 {
    font-size: 22px;
  }
}

/* PENGATURAN AKSESIBILITAS */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
