/* ===========================
   SeedSafe — Global Styles
   =========================== */

/* Brand palette & Bootstrap var override (dark UI) */
:root {
  --brand-green: #39b54a;
  --brand-green-2: #a2ffaf;
  --dark-bg: #121212;
  --card-bg: #1a1a1a;
  --text-light: #f8f9fa;
  --text-muted: #adb5bd;

  /* anchor offset (beda desktop/mobile di bawah) */
  --anchor-offset: 60px;

  color-scheme: dark;
  --bs-body-bg: var(--dark-bg);
  --bs-body-color: var(--text-light);
  --bs-heading-color: var(--text-light);
  --bs-link-color: var(--text-light);
  --bs-link-hover-color: var(--brand-green);
  --bs-secondary-color: var(--text-muted);
}
@media (max-width: 991.98px) {
  :root {
    --anchor-offset: 80px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}
body {
  overflow-x: hidden;
}

html,
body {
  height: 100%;
}

/* Hilangkan horizontal scroll tanpa potong konten */

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links (non-button) */
a:not(.btn):not(.social-icon):not(.jenovatech-link) {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:not(.btn):not(.social-icon):not(.jenovatech-link):hover {
  color: var(--brand-green);
}

/* ===========================
   Particles layer
   =========================== */
#particles-js {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  z-index: 0;
}
section[id] {
  scroll-margin-top: var(--anchor-offset);
}
section,
footer,
nav {
  position: relative;
  z-index: 1;
}
.navbar .nav-cta {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--text-light);
  border-color: rgba(0, 255, 85, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.navbar .nav-cta:hover {
  color: var(--text-light);
  background-color: var(--brand-green);
  border-color: var(--dark-bg);
  transform: translateY(-2px);
}
@media (max-width: 991.98px) {
  .navbar .nav-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
  }
}

/* Biarkan klik tembus ke canvas kecuali elemen interaktif */
.hero-section,
.navbar {
  pointer-events: none;
}
.hero-section a,
.hero-section .btn,
.hero-section input,
.hero-section .form-control,
.navbar a,
.navbar button,
.navbar .navbar-toggler,
.navbar .dropdown-menu {
  pointer-events: auto;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  z-index: 3;
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  will-change: background-color, box-shadow, border-color;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--brand-green);
}

/* Active underline */
.navbar .nav-link.active {
  color: var(--brand-green) !important;
  position: relative;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--brand-green);
  border-radius: 2px;
}

.navbar.fixed-top.is-scrolled {
  background: rgba(18, 18, 18, 0.88) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 4;
}
.navbar.no-anim {
  transition: none !important;
}

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    max-width: 100%;
  }
  .navbar .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
  }
  .navbar .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}

#particles-js,
#particles-js > canvas {
  width: 100vw; /* pastikan tidak melebar dari viewport */
  max-width: 100vw;
}

.container,
.container-fluid {
  overflow-x: clip;
}

/* ===========================
   Hero
   =========================== */
.hero-section {
  position: relative;
}

/* CTA: center mobile, left desktop */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.hero-section .hero-mockup-wrap {
  pointer-events: auto;
  display: inline-block;
}

/* State dasar */
.hero-mockup {
  transform: translateZ(0) scale(1);
  will-change: transform, filter;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.35s ease;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
  backface-visibility: hidden;
}

/* Hover = scale + naik dikit + glow hijau (hanya di device yang support hover) */
@media (hover: hover) and (pointer: fine) {
  .hero-mockup-wrap:hover .hero-mockup {
    transform: scale(1.08) translateY(-8px);
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(57, 181, 74, 0.22));
  }
}

/* Hormati preferensi aksesibilitas */
@media (prefers-reduced-motion: reduce) {
  .hero-mockup {
    transition: none !important;
  }
}

/* Google Play badge */
.google-play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.google-play-badge img {
  height: 72px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.google-play-badge:hover img {
  transform: scale(1.05);
}
@media (min-width: 992px) {
  .google-play-badge img {
    height: 70px;
  }
}

/* Headline gradient */
.gradient-text {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-green-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===========================
   Buttons
   =========================== */
.btn-primary {
  background-color: var(--brand-green);
  border-color: var(--brand-green);
  font-weight: 700;
  padding: 12px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.btn-primary:hover {
  background-color: #2e8e3a;
  border-color: #2e8e3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(57, 181, 74, 0.22);
}

.btn-outline-light {
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  padding: 12px 30px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-outline-light:hover {
  color: var(--dark-bg);
  background-color: var(--text-light);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* Pro button with Google Play icon (no extra markup) */

/* ===========================
   Feature Cards
   =========================== */
.feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  border-color: rgba(57, 181, 74, 0.5);
}
.feature-card .icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: rgba(57, 181, 74, 0.12);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card p {
  color: var(--text-muted);
}

/* ===========================
   Security Points
   =========================== */
.security-points .icon-wrapper-sm {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(57, 181, 74, 0.12);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.security-points p {
  color: var(--text-muted);
}
.security-visual img {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.security-points li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}
.security-points li + li {
  margin-top: 12px;
}
.security-points .icon-wrapper-sm {
  width: 28px;
  height: 28px;
  font-size: 14px;
  margin-top: 3px;
  background-color: rgba(57, 181, 74, 0.16);
}

.security-points h6 {
  margin-bottom: 4px;
}
.security-points p {
  margin: 0;
}

/* Mobile tweaks: urutan teks dulu, gambar setelahnya; ukuran & spacing diperkecil */
@media (max-width: 991.98px) {
  #security {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }
  #security .row {
    gap: 1.75rem;
  }

  .security-copy {
    order: 1;
    text-align: center;
  }
  .security-copy .gradient-text {
    display: inline-block;
    margin-bottom: 0.25rem;
  }
  .security-copy h2 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }
  .security-copy .lead {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }

  .security-visual {
    order: 2;
  }
  .security-visual img {
    width: min(88%, 420px);
    margin: 0 auto;
  }

  /* List dibatasi lebar agar nyaman dibaca */
  .security-points {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
  }
}

/* (Opsional) Desktop: jaga jarak antar kartu list */
@media (min-width: 992px) {
  .security-points {
    gap: 12px;
  }
}

/* ===========================
   Pricing
   =========================== */
.pricing-card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 100%;
  text-align: center;
  position: relative;
  overflow: hidden; /* ribbon safe */
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  border-color: rgba(57, 181, 74, 0.25);
}
.pricing-card.pro {
  border-color: var(--brand-green);
  box-shadow: 0 12px 40px rgba(57, 181, 74, 0.12);
}
.pricing-card .pro-badge {
  position: absolute;
  top: 15px;
  right: -45px;
  background-color: var(--brand-green);
  color: var(--text-light);
  padding: 5px 40px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}
.pricing-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pricing-card ul li {
  display: flex;
  align-items: center;
}
.pricing-card ul li span {
  color: var(--brand-green);
  font-weight: 800;
  font-size: 20px;
}
.price-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: center;
}
.price-current {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
}
.price-original {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-note {
  font-size: 0.95rem;
  color: var(--text-light);
  opacity: 0.9;
}
.local-price {
  display: block;
}

/* Countdown kecil di bawah tombol */
.promo-countdown {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Kalau promo selesai, kita sembunyikan elemen yg tidak relevan */
.is-promo-over .price-original,
.is-promo-over #promoCountdown,
.is-promo-over #proPromoBadge {
  display: none !important;
}

/* Optional: bikin badge “LAUNCH PRICE” sedikit beda dari BEST VALUE */
.pricing-card.pro .pro-badge {
  background-color: var(--brand-green);
  color: var(--text-light);
}

/* Kontras teks */
.pricing-card p,
.feature-card p,
.security-points p,
footer p,
footer small,
footer strong {
  color: var(--text-light);
}
.text-muted {
  color: var(--text-muted) !important;
}

/* ===========================
   Footer (glass, glow, animation)
   =========================== */
footer {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  /* satu “sapu” cahaya yang lewat penuh */
  background: linear-gradient(90deg, transparent 0%, transparent 35%, var(--brand-green) 50%, var(--brand-green-2) 62%, transparent 75%, transparent 100%);
  background-size: 200% 100%;
  animation: scanline 10s linear infinite;
  opacity: 0.9;
}
@keyframes scanline {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

footer::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 300px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(57, 181, 74, 0.18) 0%, rgba(57, 181, 74, 0.06) 55%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
footer .navbar-brand strong {
  letter-spacing: 0.3px;
  text-shadow: 0 0 12px rgba(57, 181, 74, 0.35);
}
.jenovatech-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.25s, text-shadow 0.25s;
}
.jenovatech-link:hover {
  color: var(--brand-green);
  text-shadow: 0 0 10px rgba(57, 181, 74, 0.25);
}
.social-icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}
.social-icon:hover {
  color: var(--brand-green);
  transform: translateY(-3px) scale(1.06);
  text-shadow: 0 0 12px rgba(57, 181, 74, 0.35);
}

/* ===========================
   Utilities
   =========================== */
hr {
  border-color: rgba(255, 255, 255, 0.08);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
::selection {
  background: rgba(57, 181, 74, 0.35);
  color: #0f0f0f;
}

@media (max-width: 576px) {
  footer .navbar-brand {
    margin-bottom: 0.5rem;
  }
  .social-icon {
    margin: 0 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* =========================================================
   Recovery Page (scoped)
   ========================================================= */

/* Layout: dorong konten turun dari navbar fixed */
.page-recovery main {
  padding-top: calc(var(--anchor-offset) + 20px);
}

/* Card & form: dark theme konsisten */
.page-recovery .card-glass {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.page-recovery header {
  text-align: center; /* paksa center, override kemungkinan pewarisan */
}

.page-recovery header img {
  height: 40px; /* kecil */
  width: auto;
  display: block; /* supaya margin auto bekerja */
  margin: 0 auto; /* center beneran */
}
@media (min-width: 992px) {
  .page-recovery header img {
    height: 46px;
  }
}

.page-recovery .form-control {
  background-color: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
}
.page-recovery .form-control:focus {
  background-color: #2a2a2a;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 0.2rem rgba(57, 181, 74, 0.25);
  color: var(--text-light);
}

/* File input: tombol gelap, HOVER jadi putih */
.page-recovery input[type="file"] {
  color: var(--text-muted); /* nama file */
  background-color: #2a2a2a; /* area input */
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.page-recovery input[type="file"]::file-selector-button {
  background-color: #2a2a2a;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  margin-right: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.page-recovery input[type="file"]:hover::file-selector-button {
  background-color: #ffffff; /* ← jadi putih saat hover */
  color: #111; /* teks gelap biar kebaca */
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

/* Safari/WebKit fallback */
.page-recovery input[type="file"]::-webkit-file-upload-button {
  background-color: #2a2a2a;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  margin-right: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.page-recovery input[type="file"]:hover::-webkit-file-upload-button {
  background-color: #ffffff; /* ← jadi putih saat hover */
  color: #111;
  border-color: var(--brand-green);
  transform: translateY(-1px);
}

/* Toggle password button (ikon) agar kontras */
.page-recovery .btn-outline-secondary {
  background: #2a2a2a;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.16);
}
.page-recovery .btn-outline-secondary:hover {
  background: #333;
  color: var(--text-light);
  border-color: var(--brand-green);
}

/* Area hasil decrypt */
.page-recovery .results-area {
  background-color: #202020;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  max-height: 420px;
  overflow-y: auto;
}
.page-recovery #resultsContent pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Responsif kecil */
@media (max-width: 576px) {
  .page-recovery main {
    padding-top: calc(var(--anchor-offset) + 16px);
  }
}
