/* =========================================================
   NORVEN-3 — Stylesheet
   Tema: hitam pekat, ungu neon, putih. Mobile first.
   ========================================================= */

:root {
  --bg: #07060b;
  --panel: #120e1c;
  --panel-2: #1a1429;
  --field: #0b0912;
  --line: rgba(168, 85, 255, 0.22);
  --line-strong: rgba(168, 85, 255, 0.55);
  --purple: #a855ff;
  --purple-neon: #c084fc;
  --purple-deep: #7c3aed;
  --text: #f5f3ff;
  --muted: #a9a2c6;
  --wa: #25d366;
  --danger: #ff6b8b;
  --glow: 0 0 0 1px rgba(168, 85, 255, 0.35), 0 0 30px rgba(168, 85, 255, 0.28);
  --card-shadow: 0 0 0 1px rgba(168, 85, 255, 0.12), 0 0 60px -14px rgba(168, 85, 255, 0.45);
  --radius: 18px;
  --container: 1160px;
  --nav-h: 68px;
  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-body: "Chakra Petch", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; }
p { margin: 0; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

:focus-visible {
  outline: 2px solid var(--purple-neon);
  outline-offset: 3px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  z-index: 200;
}

/* ---------- Preloader (loading animation) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s;
}

.preloader img {
  width: min(180px, 46vw);
  height: auto;
  animation: pulse 1.6s ease-in-out infinite;
}

.preloader-bar {
  width: 160px;
  height: 3px;
  border-radius: 3px;
  background: rgba(168, 85, 255, 0.18);
  overflow: hidden;
}

.preloader-bar::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
  animation: slide 1.2s ease-in-out infinite;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(7, 6, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(168, 85, 255, 0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 0 24px rgba(168, 85, 255, 0.9);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
  background: rgba(168, 85, 255, 0.14);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-install { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(168, 85, 255, 0.08);
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: grid; }
  .nav-install { display: none !important; }
  .menu-install { display: block; padding-top: 8px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(7, 6, 11, 0.97);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }

  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 12px;
    font-size: 1.02rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #b46bff, var(--purple-deep));
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.5), 0 8px 30px rgba(168, 85, 255, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.8), 0 10px 40px rgba(168, 85, 255, 0.7);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(168, 85, 255, 0.14);
  box-shadow: var(--glow);
}

.btn-wa {
  color: #03140a;
  background: linear-gradient(135deg, #3ef28a, #1aa85a);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.55);
}

.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 60px;
  padding: 0 34px;
  font-size: 1.05rem;
}

.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/brutal.jpg") center / cover no-repeat;
  animation: bgIn 2.4s ease-out both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(168, 85, 255, 0.28), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 11, 0.55) 0%, rgba(7, 6, 11, 0.86) 62%, var(--bg) 100%);
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-inner > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero-inner > :nth-child(1) { animation-delay: 0.05s; }
.hero-inner > :nth-child(2) { animation-delay: 0.2s; }
.hero-inner > :nth-child(3) { animation-delay: 0.3s; }
.hero-inner > :nth-child(4) { animation-delay: 0.4s; }
.hero-inner > :nth-child(5) { animation-delay: 0.5s; }
.hero-inner > :nth-child(6) { animation-delay: 0.6s; }

.hero-logo-wrap {
  animation: logoIn 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  margin-bottom: 4px;
}

.hero-logo {
  width: min(320px, 72vw);
  height: auto;
  animation: float 7s ease-in-out 1.6s infinite, glow 3.6s ease-in-out infinite;
}

.hero-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 7.4vw, 4.6rem);
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 0 26px rgba(168, 85, 255, 0.55);
}

.hero-sub {
  color: var(--purple-neon);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-slogan {
  max-width: 30ch;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 600;
  text-wrap: balance;
}

.hero-desc {
  max-width: 52ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

/* ---------- Section ---------- */
.section {
  padding: 88px 0;
  position: relative;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
}

.section-lead {
  max-width: 60ch;
  color: var(--muted);
}

.rule {
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), transparent);
  box-shadow: 0 0 14px var(--purple);
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.service-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(168, 85, 255, 0.14);
  color: var(--purple-neon);
}

.service-icon svg { width: 24px; height: 24px; }

/* ---------- Toolbar: search, chips, sort ---------- */
.toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.search { position: relative; }

.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search input::placeholder { color: #7d7599; }

.search input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: var(--glow);
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 600 0.92rem var(--font-body);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #9333ea, var(--purple-deep));
  box-shadow: 0 0 20px rgba(168, 85, 255, 0.45);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-count {
  color: var(--muted);
  font-size: 0.92rem;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.select,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 44px 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c084fc' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select { width: auto; min-height: 42px; }

.select option,
.field select option,
.field select optgroup {
  background: #14101f;
  color: var(--text);
}

/* ---------- Package cards ---------- */
.pkg-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.pkg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #171226, #0f0c18);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  animation: rise 0.5s ease backwards;
}

.pkg-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(168, 85, 255, 0.3), 0 18px 50px -10px rgba(168, 85, 255, 0.45);
}

.pkg-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0912;
}

.pkg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pkg-card:hover .pkg-media img { transform: scale(1.05); }

.pkg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, #0f0c18 100%);
}

.pkg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 22px;
}

.pkg-cat {
  color: var(--purple-neon);
  font-size: 0.85rem;
  font-weight: 600;
}

.pkg-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
}

.pkg-price {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-shadow: 0 0 18px rgba(168, 85, 255, 0.7);
}

.pkg-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.pkg-features {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.pkg-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
}

.pkg-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  transform: rotate(45deg);
}

.pkg-actions {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty-state p + p { margin-top: 6px; font-size: 0.92rem; }

/* ---------- Order Now ---------- */
.order-card {
  display: grid;
  gap: 28px;
  padding: clamp(18px, 4vw, 36px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 20, 41, 0.92), rgba(13, 10, 20, 0.96));
  box-shadow: var(--card-shadow);
}

.order-card.flash {
  animation: flash 1.2s ease-out;
}

@keyframes flash {
  0%, 100% { box-shadow: var(--card-shadow); }
  30% { box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.6), 0 0 90px rgba(168, 85, 255, 0.7); }
}

.order-form {
  display: grid;
  gap: 20px;
  align-content: start;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.95rem;
  font-weight: 600;
}

.req { color: var(--purple-neon); }
.optional { color: var(--muted); font-weight: 400; font-size: 0.88rem; }

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 255, 0.25);
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: #6f6890; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: var(--glow);
}

.field [aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.18) !important;
}

.field-error {
  color: var(--danger);
  font-size: 0.86rem;
}

.field-error:empty { display: none; }

.price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: rgba(168, 85, 255, 0.08);
  color: var(--muted);
}

.price-box strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: #fff;
  text-shadow: 0 0 16px rgba(168, 85, 255, 0.6);
}

.order-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.summary {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 6, 11, 0.6);
}

.summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
}

.summary dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.summary .row {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(168, 85, 255, 0.14);
}

.summary dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.summary dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.fine {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 900px) {
  .order-card {
    grid-template-columns: 1.25fr 0.85fr;
    align-items: start;
  }

  .order-side {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
  }
}

/* ---------- About ---------- */
.about {
  display: grid;
  gap: 18px;
  max-width: 880px;
}

.about p {
  color: var(--muted);
  font-size: 1.05rem;
}

.focus-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.focus-list li {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 600;
}

.focus-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
  transform: rotate(45deg);
}

/* ---------- Portfolio ---------- */
.port-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.port-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.port-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.port-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.port-card figcaption {
  display: grid;
  gap: 2px;
  padding: 14px 16px 16px;
}

.port-card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
}

.port-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Testimoni ---------- */
.testi-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testi-card {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.testi-card blockquote {
  margin: 0 0 14px;
}

.testi-card figcaption {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.testi-card figcaption strong { color: var(--text); }

.testi-empty {
  grid-column: 1 / -1;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(168, 85, 255, 0.05);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}

.faq summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--purple-neon);
  transition: transform 0.25s;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-card {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(168, 85, 255, 0.22), transparent 55%),
    var(--panel);
  box-shadow: var(--glow);
}

.contact-card .section-lead { margin-top: 10px; }
.contact-card .fine { margin-top: 10px; }

@media (min-width: 820px) {
  .contact-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 40px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(168, 85, 255, 0.06));
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: 12px;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-quote {
  margin-top: 8px;
  color: var(--purple-neon);
  font-weight: 600;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover { color: var(--purple-neon); }

.footer .btn { margin-top: 10px; }

.copy {
  margin-top: 40px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(168, 85, 255, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- Floating: back to top & toast ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 14, 28, 0.9);
  color: var(--purple-neon);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { box-shadow: var(--glow); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: max-content;
  max-width: min(92vw, 460px);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #1b1430;
  box-shadow: var(--glow);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Detail dialog ---------- */
dialog {
  width: min(560px, calc(100% - 28px));
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #100d19;
  color: var(--text);
  box-shadow: 0 0 60px rgba(168, 85, 255, 0.35);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(3, 2, 6, 0.78);
  backdrop-filter: blur(4px);
}

dialog[open] {
  animation: rise 0.35s ease backwards;
}

.dlg-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 6, 11, 0.75);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.dlg-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dlg-body {
  display: grid;
  gap: 10px;
  padding: 20px 22px 24px;
}

.dlg-cat {
  color: var(--purple-neon);
  font-size: 0.85rem;
  font-weight: 600;
}

.dlg-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}

.dlg-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-shadow: 0 0 18px rgba(168, 85, 255, 0.7);
}

.dlg-desc { color: var(--muted); }

.dlg-features {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dlg-features li {
  position: relative;
  padding-left: 22px;
}

.dlg-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
  transform: rotate(45deg);
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 600px) {
  .section { padding: 64px 0; }

  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }

  .pkg-actions { grid-template-columns: 1fr 1fr; }

  .nav-actions .btn-primary { padding: 0 12px; letter-spacing: 0.02em; }
}

@media (max-width: 380px) {
  .brand-name { display: none; }
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.82) rotate(-4deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes bgIn {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(168, 85, 255, 0.45)); }
  50% { filter: drop-shadow(0 0 36px rgba(168, 85, 255, 0.9)); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 14px rgba(168, 85, 255, 0.4)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 30px rgba(168, 85, 255, 0.85)); }
}

@keyframes slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-logo { animation: none; }
}
