@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;1,400&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --ink: #0f0e17;
  --ink-soft: #3a3850;
  --ink-muted: #7c7a93;
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e8e6f0;

  --violet: #6c5ce7;
  --violet-light: #8b7ff0;
  --violet-deep: #4a3abf;
  --teal: #00b4d8;
  --teal-light: #48cae4;
  --lavender: #f0eeff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 12px rgba(108, 92, 231, 0.08);
  --shadow-md: 0 8px 32px rgba(108, 92, 231, 0.13);
  --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.16);

  --content-max: 860px;
  --content-pad: 6vw;
}

body {
  font-family: "DM Sans", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--content-pad);
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--violet);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--violet);
}

.nav-cta {
  background: var(--violet);
  color: white !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--violet-deep) !important;
  color: white !important;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--content-pad) 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 70% 60% at 20% 30%,
      rgba(108, 92, 231, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 80% 70%,
      rgba(0, 180, 216, 0.1) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 40% at 60% 10%,
      rgba(139, 127, 240, 0.08) 0%,
      transparent 50%
    );
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lavender);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 780px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--violet) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 20px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--violet);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--violet-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
}

.btn-secondary {
  background: var(--surface);
  color: var(--violet);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid rgba(108, 92, 231, 0.25);
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ─── HOW IT WORKS ─── */
.how {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding: 96px var(--content-pad);
}

.how::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 60% 70% at 80% 20%,
      rgba(0, 180, 216, 0.09) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 50% at 10% 80%,
      rgba(108, 92, 231, 0.08) 0%,
      transparent 55%
    );
  pointer-events: none;
}

.how-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  max-width: 520px;
  margin: 0 auto;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -10%;
  width: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  opacity: 0.3;
}

.step-num {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--teal-light) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.25);
  transition: transform 0.25s;
}

.step-num:hover {
  transform: translateY(-4px) scale(1.04);
}

.step h3 {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.report-section {
  max-width: 950px;
  margin: 0 auto;

  padding: 20px 6vw 60px;
}

label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6860b0;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

input,
select {
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid #e2dcfa;
  background: #f6f4ff;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  color: #1e148a;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

input::placeholder {
  color: #b5aede;
}

input:focus,
select:focus {
  border-color: #7b6ef5;
  box-shadow: 0 0 0 3px rgba(123, 110, 245, 0.15);
  background: #fff;
}

/* ─── FORM CARD ─── */
.form-card {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #ddd8f8;
  margin-bottom: 25px;
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  margin-top: 25px;
}

.form-card::before {
  content: "Laporan Baru";
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7b6ef5;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  font-size: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ─── SUBMIT BUTTON ─── */
button#submitReport {
  margin-top: 25px;
  margin-bottom: 28px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 14px;
  background: var(--violet);
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.35);
  color: white;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition:
    background 0.2s,
    transform 0.1s;
}

button#submitReport:hover {
  background: var(--violet-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
}

button#submitReport:active {
  transform: scale(0.99);
}

.report-section .section-label {
  font-size: 1rem;
  font-weight: 700;
  color: #1e148a;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 10px;
}

#lapor {
  scroll-margin-top: 100px;
}

#search {
  padding: 11px 16px 11px 40px;
  border-radius: 12px;
  border: 1.5px solid #ddd8f8;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B5AEDE' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E")
    no-repeat 12px center;
  width: 100%;
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  color: #1e148a;
  outline: none;
  transition: border-color 0.2s;
}

#search::placeholder {
  color: #b5aede;
}

#search:focus {
  border-color: #7b6ef5;
  box-shadow: 0 0 0 3px rgba(123, 110, 245, 0.15);
}

.filter-row {
  display: flex;
  gap: 8px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  border: 1.5px solid #ddd8f8;
  background: #fff;
  color: #6860b0;
  transition: all 0.15s;
}

.filter-chip:hover {
  background: #f6f4ff;
}

.filter-chip.active {
  background: var(--violet-deep);
  color: #fff;
  border-color: var(--violet-deep);
}

/* ─── REPORT CARDS ─── */
#laporan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.report-card {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2dcfa;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(31, 25, 107, 0.1);
}

.report-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1e148a;
  margin-bottom: 8px;
}

.report-card p {
  font-size: 12.5px;
  color: #6860b0;
  margin: 3px 0;
  line-height: 1.5;
}

.statusBarang {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.status-ditemukan {
  background: #d1fae5;
  color: #15803d;
}

.status-hilang {
  background: #fee2e2;
  color: #dc2626;
}

.action-btn {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.action-btn button {
  flex: 1;
  padding: 7px 0;
  border-radius: 9px;
  font-size: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.action-btn button:hover {
  opacity: 0.82;
}

.edit-btn {
  background: #f6f4ff;
  color: #1e148a;
  border: 1.5px solid #ddd8f8;
}

.delete-btn {
  background: #fcebeb;
  color: #a32d2d;
  border: 1.5px solid #f7c1c1;
}

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--violet-deep);
  color: white;
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(30, 20, 138, 0.25);
  opacity: 0;
  transform: translateY(16px);
  transition: 0.3s ease;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  z-index: 999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

footer {
  background: var(--violet-deep);
  box-shadow: 0 10px 32px rgba(108, 92, 231, 0.45);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 30px;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  position: relative;
  z-index: 1;
}

footer p span {
  color: #fff;
  font-weight: 600;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 14px 5vw;
  }
  .nav-links {
    display: none;
  }

  .step:not(:last-child)::after {
    display: none;
  }
  .steps {
    gap: 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  #laporan {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 450px) {
  #laporan {
    grid-template-columns: 1fr;
  }
}