:root {
  --accent: 0 0 0;
  --text-primary: 26 26 26;
  --background-primary: 255 255 255;
  --button-bg: #000000;
  --button-text: #ffffff;
  --button-secondary: #763bbe;
  --button-secondary-text: #ffffff;
  --cream: #f3e5ab;
  --hero-start: #110e16;
  --hero-end: #763bbe;
  --footer-bg: #fafafa;
  --border: rgba(26, 26, 26, 0.12);
  --muted: #7b7b7b;
  --success: #00a341;
  --error: #f83a3a;
  --radius: 0.375rem;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Chakra Petch", "Archivo", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: rgb(var(--text-primary));
  background: rgb(var(--background-primary));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.announcement {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 36px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links a {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 820px);
  background: #110e16 url("/images/hero-lumicurve.png") center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 1.05vw, 1rem);
  margin: 0 0 1rem;
  animation: fade-up 0.7s ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: fade-up 0.8s ease 0.08s both;
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  animation: fade-up 0.8s ease 0.16s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.query-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  padding: 1.75rem;
  animation: fade-up 0.85s ease 0.2s both;
}

.query-panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.query-panel p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(17, 14, 22, 0.45);
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field input:focus {
  border-color: var(--cream);
  background: rgba(17, 14, 22, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--button-secondary);
  color: var(--button-secondary-text);
}

.btn-dark {
  background: var(--button-bg);
  color: var(--button-text);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.result {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius);
  display: none;
}

.result.show {
  display: block;
  animation: fade-up 0.35s ease both;
}

.result.success {
  background: rgba(0, 163, 65, 0.16);
  border: 1px solid rgba(0, 163, 65, 0.45);
}

.result.error {
  background: rgba(248, 58, 58, 0.16);
  border: 1px solid rgba(248, 58, 58, 0.4);
}

.result-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.tracking-number {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  word-break: break-all;
}

.copy-row {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.copy-row .btn {
  width: auto;
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
}

.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section > p {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.step-num {
  color: var(--hero-end);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.note-box {
  margin-top: 2.5rem;
  padding: 1.25rem 1.4rem;
  background: #fafafa;
  border-left: 3px solid var(--hero-end);
}

.note-box h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.note-box ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-brand {
  color: rgb(var(--text-primary));
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Admin */
.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(118, 59, 190, 0.12), transparent 35%),
    #fff;
}

.admin-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.admin-card {
  border: 1px solid var(--border);
  padding: 1.75rem;
  background: #fff;
}

.admin-card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.admin-card > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.admin-card .field label {
  color: rgb(var(--text-primary));
}

.admin-card .field input,
.admin-card .field input[type="file"] {
  background: #fff;
  color: rgb(var(--text-primary));
  border: 1px solid var(--border);
}

.admin-card .field input:focus {
  border-color: var(--hero-end);
  background: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stat {
  background: #fafafa;
  padding: 0.9rem;
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.stat span {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hint code {
  background: #f3f3f3;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

@media (max-width: 900px) {
  .hero {
    background-position: 70% center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3.25rem 0 3.5rem;
  }

  .nav-links {
    display: none;
  }

  .steps,
  .stats {
    grid-template-columns: 1fr;
  }
}
