/* ==========================================================================
   LutzzStore — design tokens
   Palette: deep ink-navy surface, periwinkle accent, emerald for success,
   amber for "live" signals. Display type: Space Grotesk. Body: Inter.
   Utility/mono (prices, order IDs, terminal feed): JetBrains Mono.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0d14;
  --bg-soft: #0d1119;
  --surface: #131826;
  --surface-alt: #1a2033;
  --border: #232a3d;
  --text: #e8eaf0;
  --muted: #8890a4;
  --accent: #6d8bff;
  --accent-soft: rgba(109, 139, 255, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --live: #ffb020;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(109, 139, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(52, 211, 153, 0.05), transparent 35%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #9db2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0d14;
}

.logo .logo-mark svg { width: 18px; height: 18px; }

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 64px;
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 720px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #0a0d14;
}
.btn-primary:hover { background: #7f9aff; }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- why us ---------- */
.section { padding: 56px 0; }

.section-head {
  margin-bottom: 32px;
  max-width: 620px;
}

.section-head .eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.section-head p { color: var(--muted); margin: 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.why-card .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card .icon-wrap svg { width: 19px; height: 19px; }

.why-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
}

.why-card p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- live feed (terminal signature element) ---------- */
.feed-panel {
  background: #090c12;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feed-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.feed-topbar .traffic { display: flex; gap: 6px; }
.feed-topbar .traffic span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border);
}

.feed-topbar .path {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}

.feed-body {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
}

.feed-line {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  color: var(--muted);
  animation: fadein 0.4s ease;
}

@keyframes fadein { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1; transform: translateY(0);} }

.feed-line .t { color: #4b5268; flex-shrink: 0; }
.feed-line .ok { color: var(--success); }
.feed-line strong { color: var(--text); font-weight: 600; }

.feed-empty { color: var(--muted); font-size: 13px; }

/* ---------- product toolbar ---------- */
.toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 38px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-box input:focus { border-color: var(--accent); }

.type-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.type-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.type-chip:hover { border-color: var(--accent); color: var(--text); }

.type-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-icon {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
}

.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-icon svg { width: 30px; height: 30px; }

.product-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.product-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.product-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14.5px;
}

.product-orders {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}

.product-orders svg { width: 13px; height: 13px; color: var(--success); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ---------- product detail page ---------- */
.detail-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

.detail-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--muted);
}

.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-icon svg { width: 60px; height: 60px; }

.detail-type {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.detail-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.stat-pill svg { width: 15px; height: 15px; color: var(--success); }
.stat-pill strong { font-family: var(--font-mono); }

.detail-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
  white-space: pre-line;
}

.buy-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.buy-panel .price-label { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.buy-panel .price-value { font-family: var(--font-mono); font-size: 24px; font-weight: 600; }

/* ---------- modal (QRIS payment) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  padding: 26px;
  text-align: center;
}

.modal-card h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 19px;
}

.modal-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.qr-box {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}

.qr-box img { width: 100%; }

.modal-amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-orderid {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--live);
  margin-bottom: 18px;
}

.spin {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 176, 32, 0.25);
  border-top-color: var(--live);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.modal-success .modal-status { color: var(--success); }

.download-box {
  background: var(--success-soft);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: left;
  margin-bottom: 16px;
}

.download-box .link-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.download-box a {
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
  word-break: break-all;
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
