/* ============================================================
   Fiber Print — Public page styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #080808;
  --surface: #111;
  --border:  #242424;
  --text:    #f0f0f0;
  --muted:   #777;
  --accent:  #ffffff;
  --success: #4ade80;
  --error:   #f87171;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.site-header h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  max-width: 640px;
  margin: 0 auto;
  padding: 5rem 2rem 3.5rem;
  text-align: center;
}

/* Countdown */
#countdown-area { margin-bottom: 3rem; min-height: 5rem; }

.countdown-prefix {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.countdown-digits {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3rem;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.live-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 2.2rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.btn:hover,
.btn.active {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

/* ---- Lower section ---- */
#lower-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 2rem 5rem;
}

/* ---- Verify form ---- */
.verify-wrap { text-align: center; }

.verify-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.verify-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  max-width: 380px;
  margin: 0 auto 2rem;
}

.verify-input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.verify-input:focus {
  outline: none;
  border-color: var(--accent);
}

.verify-input::placeholder { color: var(--muted); text-transform: none; }

/* ---- Serial result ---- */
.serial-result {
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.serial-result-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.badge-verified {
  display: inline-block;
  background: var(--success);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
}

.serial-code-display {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.1em;
}

.serial-details {
  width: 100%;
  margin-top: 0.25rem;
}

.serial-details dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

.serial-details dt:first-child { margin-top: 0; }

.serial-details dd {
  margin-left: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

/* ---- Product listing ---- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.product-card {
  border: 1px solid var(--border);
  padding: 2rem;
}

.product-images-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.product-images-scroll img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.6rem 0 1rem;
}

.product-desc {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  white-space: pre-line;
  font-size: 0.95rem;
}

/* ---- Messages ---- */
.msg-empty,
.msg-error,
.msg-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---- Responsive ---- */
@media (max-width: 500px) {
  .hero { padding: 3.5rem 1.25rem 2.5rem; }
  .countdown-number { font-size: 2.25rem; }
  .countdown-digits { gap: 1.25rem; }
  .countdown-prefix { font-size: 0.85rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 200px; text-align: center; }
  .verify-row {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .verify-input {
    width: 100%;
    max-width: 260px;
    flex: none;
  }
  .verify-row .btn {
    width: 160px;
  }
  #lower-section { padding: 1rem 1.25rem 4rem; }
}
