@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #10120f;
  --panel: #191c18;
  --line: #30352e;
  --white: #f4f3ec;
  --muted: #a4a79c;
  --lime: #d6fa7a;
  --orange: #ff9975;
  --purple: #c2adff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(ellipse at 78% 10%, #28321f 0, transparent 30%),
    var(--bg);
  font-family: "DM Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Navigasi */

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 0 max(6vw, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid #ffffff12;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 800 19px "Manrope", sans-serif;
  letter-spacing: -1px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--lime);
  color: #1a2110;
  font-size: 18px;
}

.topbar nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.topbar nav a {
  color: #b8bcb3;
  font-size: 12px;
}

.topbar nav a:hover {
  color: var(--lime);
}

.nav-button {
  padding: 11px 15px;
  border: 1px solid #454c40;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.nav-button span {
  margin-left: 9px;
  color: var(--lime);
}

/* Bagian utama */

main {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  gap: 55px;
  padding: 55px 0 65px;
}

.eyebrow {
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.sparkle {
  margin-right: 7px;
  font-size: 14px;
}

.hero h1,
.how-section h2 {
  margin: 20px 0 18px;
  font: 800 clamp(43px, 5.6vw, 70px)/1.05 "Manrope", sans-serif;
  letter-spacing: -4px;
}

.hero h1 span,
.how-section h2 span {
  color: var(--lime);
}

.hero-text {
  max-width: 475px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 27px;
}

.button-main,
.button-plain {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.button-main {
  border: 0;
  background: var(--lime);
  color: #1a2110;
}

.button-main:hover {
  background: #e2ff9b;
}

.button-main span {
  margin-left: 12px;
  font-size: 17px;
}

.button-plain {
  border: 1px solid #41473e;
  background: #1b1f1a;
  color: var(--white);
}

.button-plain:hover {
  border-color: #79836d;
}

.quick-note {
  margin-top: 25px;
  color: #8d9488;
  font-size: 10px;
}

.quick-note > span:first-child {
  color: var(--lime);
}

.note-divider {
  padding: 0 7px;
  color: #575e54;
}

/* Kartu contoh ruang nobar */

.preview-wrap {
  position: relative;
  padding: 25px 10px 30px;
}

.preview-glow {
  position: absolute;
  inset: 15% 4%;
  border-radius: 50%;
  background: #b8ed5b20;
  filter: blur(65px);
}

.preview-card {
  position: relative;
  padding: 15px;
  border: 1px solid #41483c;
  border-radius: 17px;
  background: #1a1e19;
  box-shadow: 0 28px 80px #0008;
  transform: rotate(1deg);
}

.preview-top,
.preview-bottom {
  display: flex;
  align-items: center;
}

.preview-top {
  justify-content: space-between;
  padding: 1px 2px 13px;
}

.room-label,
.room-time {
  color: #aeb4a8;
  font-size: 9px;
  letter-spacing: 1px;
}

.room-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.room-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px #d6fa7a99;
}

.fake-screen {
  height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 110%, #9d7646 0, transparent 34%),
    radial-gradient(ellipse at 48% 90%, #374a37 0, transparent 45%),
    linear-gradient(150deg, #283b39, #101819 68%);
}

.fake-screen::before,
.fake-screen::after {
  position: absolute;
  bottom: -30px;
  width: 140px;
  height: 180px;
  border-radius: 50% 50% 0 0;
  background: #151c18;
  content: "";
}

.fake-screen::before {
  left: -34px;
  transform: rotate(-16deg);
}

.fake-screen::after {
  right: -34px;
  height: 220px;
  background: #1b211b;
  transform: rotate(16deg);
}

.moon {
  position: absolute;
  top: 22px;
  right: 38px;
  color: #f8e8ac;
  font-size: 35px;
}

.screen-caption {
  z-index: 1;
  margin-top: 58px;
  color: #dfe9d2;
  text-align: center;
  font: 500 17px/1.5 "Manrope", sans-serif;
}

.screen-caption b {
  color: white;
  font-size: 21px;
}

.screen-play {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: #1118;
  color: white;
  font-size: 13px;
  padding-left: 3px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 5px 12px;
}

.player-controls button {
  position: relative;
  border: 0;
  background: transparent;
  color: #d5dacd;
  font-size: 19px;
}

.player-controls button small {
  position: absolute;
  top: 9px;
  left: 7px;
  font-size: 7px;
}

.player-controls .play-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: #202815;
  font-size: 12px;
}

.progress {
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 9px;
  background: #3a4137;
}

.progress span {
  display: block;
  width: 43%;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.duration {
  color: #9ca397;
  font-size: 9px;
}

.preview-bottom {
  gap: 9px;
  padding: 9px 4px 1px;
  border-top: 1px solid #ffffff12;
  color: #aab0a5;
  font-size: 9px;
}

.avatar-stack {
  display: flex;
  padding-left: 3px;
}

.avatar-stack span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-left: -3px;
  border: 2px solid #1a1e19;
  border-radius: 50%;
  background: #d59075;
  color: #241914;
  font-size: 8px;
  font-weight: 700;
}

.avatar-stack span:nth-child(2) {
  background: #c2adff;
}

.avatar-stack span:nth-child(3) {
  background: #b8d68b;
}

.chat-bubble {
  margin-left: auto;
  color: var(--lime);
  font-weight: 700;
}

.floating-tag {
  position: absolute;
  right: -12px;
  bottom: 4px;
  padding: 12px 15px;
  border: 1px solid #48513d;
  border-radius: 10px;
  background: #242a20;
  box-shadow: 0 12px 30px #0006;
  color: #e4e9dc;
  font-size: 10px;
  transform: rotate(-2deg);
}

.floating-tag span {
  margin-right: 6px;
  color: var(--lime);
}

/* Fitur */

.feature-section {
  padding: 75px 0 85px;
  border-top: 1px solid #ffffff12;
}

.section-heading {
  max-width: 540px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 12px 0;
  font: 700 clamp(30px, 4vw, 43px)/1.15 "Manrope", sans-serif;
  letter-spacing: -2px;
}

.section-heading h2 span {
  color: var(--lime);
}

.section-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.feature-card {
  min-height: 225px;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, #1d211c, #151815);
}

.feature-highlight {
  border-color: #657345;
  background: linear-gradient(145deg, #29321e, #191d17);
}

.feature-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #d6fa7a1b;
  color: var(--lime);
  font-size: 19px;
}

.feature-icon.orange {
  background: #ff99751b;
  color: var(--orange);
}

.feature-icon.purple {
  background: #c2adff1b;
  color: var(--purple);
}

.feature-card h3 {
  margin: 18px 0 8px;
  font: 700 15px "Manrope", sans-serif;
}

.feature-card p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.feature-number {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: #71796e;
  font-size: 8px;
  letter-spacing: 1px;
}

/* Cara kerja */

.how-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 70px;
  padding: 70px 0 80px;
  border-top: 1px solid #ffffff12;
}

.how-section h2 {
  font-size: 43px;
  letter-spacing: -2.5px;
}

.steps {
  display: grid;
  gap: 4px;
}

.step {
  display: flex;
  gap: 17px;
  padding: 14px 0;
  border-bottom: 1px solid #ffffff12;
}

.step > b {
  color: var(--lime);
  font: 700 12px "Manrope", sans-serif;
}

.step h3 {
  margin: 0 0 5px;
  font: 700 13px "Manrope", sans-serif;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Penutup dan footer */

.about-strip {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 65px;
  padding: 24px;
  border: 1px solid #3e4834;
  border-radius: 14px;
  background: linear-gradient(100deg, #222a1d, #191d18);
}

.about-star {
  color: var(--lime);
  font-size: 30px;
}

.about-strip b {
  font: 700 13px "Manrope", sans-serif;
}

.about-strip p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.about-word {
  margin-left: auto;
  color: #7e8a6c;
  font: 800 12px/1.5 "Manrope", sans-serif;
  letter-spacing: 1px;
  text-align: right;
}

footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px max(6vw, calc((100vw - 1160px) / 2));
  border-top: 1px solid #ffffff12;
  color: #899085;
  font-size: 9px;
}

footer .brand {
  color: var(--white);
  font-size: 14px;
}

footer .brand-icon {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 14px;
}

/* Tampilan HP */

@media (max-width: 760px) {
  .topbar {
    gap: 15px;
    padding: 0 20px;
  }

  .topbar nav {
    gap: 13px;
  }

  .topbar nav a {
    font-size: 10px;
  }

  .nav-button {
    padding: 10px;
    font-size: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 600px;
  }

  .preview-wrap {
    width: min(100%, 550px);
    margin: auto;
  }

  .fake-screen {
    height: 230px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 190px;
  }

  .how-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .topbar {
    height: 65px;
  }

  .topbar nav {
    display: none;
  }

  .nav-button {
    margin-left: auto;
  }

  main {
    padding: 0 19px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    letter-spacing: -2.5px;
  }

  .hero-text {
    font-size: 13px;
  }

  .quick-note {
    line-height: 1.8;
  }

  .preview-card {
    padding: 10px;
  }

  .fake-screen {
    height: 195px;
  }

  .floating-tag {
    right: -4px;
    font-size: 9px;
  }

  .feature-section {
    padding: 55px 0;
  }

  .how-section {
    padding: 55px 0;
  }

  .about-strip {
    padding: 18px;
  }

  .about-word {
    font-size: 9px;
  }

  footer {
    flex-wrap: wrap;
    padding: 18px 20px;
  }
}

/* =================================
   PUBLIC / PRIVATE ROOM SELECTOR
================================= */

.room-choice {
  max-width: 430px;
  margin-top: 28px;
  padding: 17px;
  border: 1px solid #343d2d;
  border-radius: 14px;
  background: linear-gradient(145deg, #1c2119, #151914);
  box-shadow: 0 12px 35px #0002;
}

.choice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.choice-heading strong {
  font: 700 13px "Manrope", sans-serif;
}

.choice-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.choice-icon {
  color: var(--lime);
  font-size: 20px;
}

.room-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border: 1px solid #353d30;
  border-radius: 11px;
  background: #10130f;
}

.switch-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border: 1px solid #bde66b55;
  border-radius: 8px;
  background: linear-gradient(135deg, #39482a, #29351f);
  box-shadow: 0 3px 12px #0004;
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
}

.room-switch[data-mode="private"] .switch-indicator {
  transform: translateX(100%);
}

.switch-option {
  position: relative;
  z-index: 1;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #858d7e;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.switch-option.active {
  color: var(--lime);
}

.option-icon {
  font-size: 16px;
}

.choice-description {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  margin-top: 10px;
  color: #a5ad9c;
  font-size: 10px;
  line-height: 1.5;
}

.description-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 9px #d6fa7a77;
}

.room-choice[data-mode="private"] .description-dot {
  background: var(--orange);
  box-shadow: 0 0 9px #ff997577;
}

/* =================================
   PASSWORD MODAL
================================= */

.password-modal[hidden] {
  display: none;
}

.password-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #050704d9;
  backdrop-filter: blur(7px);
  animation: backdropFade 0.2s ease;
}

.password-dialog {
  position: relative;
  width: min(100%, 410px);
  padding: 30px;
  border: 1px solid #424c37;
  border-radius: 18px;
  background: linear-gradient(145deg, #20271c, #151914);
  box-shadow: 0 25px 90px #000b;
  animation: modalAppear 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 32px;
  height: 32px;
  border: 1px solid #3b4435;
  border-radius: 9px;
  background: #ffffff08;
  color: #b8c0af;
  font-size: 22px;
}

.modal-close:hover {
  color: white;
  border-color: #7b8a68;
}

.modal-lock {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #ff997544;
  border-radius: 13px;
  background: #ff99751a;
  color: var(--orange);
  font-size: 22px;
}

.password-dialog h2 {
  margin: 9px 0;
  font: 800 25px "Manrope", sans-serif;
  letter-spacing: -1px;
}

.modal-description {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.password-dialog label {
  display: block;
  margin-bottom: 8px;
  color: #e2e8dc;
  font-size: 11px;
  font-weight: 700;
}

.password-input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #46503d;
  border-radius: 10px;
  background: #10140f;
}

.password-input-wrap:focus-within {
  border-color: var(--lime);
}

.password-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 12px;
}

.password-input-wrap input::placeholder {
  color: #6f7868;
}

.password-input-wrap button {
  height: 35px;
  margin-right: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: #293222;
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.password-hint {
  display: block;
  margin-top: 8px;
  color: #858e7c;
  font-size: 10px;
}

.modal-create {
  width: 100%;
  margin-top: 22px;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE SELECTOR */

@media (max-width: 480px) {
  .room-choice {
    padding: 14px;
  }

  .password-dialog {
    padding: 25px 21px;
  }

  .password-dialog h2 {
    font-size: 22px;
  }
}