:root {
  --bg-deep: #0a1628;
  --bg-mid: #132a45;
  --bg-glow: #1a3d5c;
  --accent: #e8a54b;
  --accent-soft: rgba(232, 165, 75, 0.18);
  --text: #f2f5f8;
  --text-muted: #9aafc2;
  --line: rgba(242, 245, 248, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 4px;
  --space: clamp(1.25rem, 3vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #f0c07a;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--bg-glow) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(232, 165, 75, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 48%, #0c1a2e 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.wrap {
  width: min(1080px, 100% - 2 * var(--space));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* ——— Hero (index) ——— */
.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0 4rem;
  animation: fade-up 0.8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #1a1208;
}

.btn-primary:hover {
  background: #f0c07a;
  color: #1a1208;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.link-quiet {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ——— Sections ——— */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  animation: fade-up 0.7s ease both;
  animation-delay: 0.1s;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 55ch;
}

.price-line {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.meta-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.meta-list strong {
  display: inline-block;
  min-width: 7rem;
  color: var(--text);
  font-weight: 600;
}

/* ——— Footer ——— */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer p {
  margin: 0 0 0.5rem;
  max-width: none;
}

.footer a {
  color: var(--text-muted);
}

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

/* ——— Offer / legal ——— */
.page-head {
  padding: 2.5rem 0 1rem;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.prose {
  padding-bottom: 3rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.status-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  animation: fade-up 0.6s ease both;
}

.status-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.status-page p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

/* ——— Kiosk pay ——— */
body.kiosk {
  overflow: hidden;
}

.kiosk-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.kiosk-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  animation: fade-up 0.6s ease both;
  background: linear-gradient(120deg, #fff 30%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kiosk-service {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  animation: fade-up 0.6s ease 0.08s both;
}

.kiosk-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0.5rem 0 1.5rem;
  animation: fade-up 0.6s ease 0.12s both;
}

.qr-frame {
  position: relative;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--accent-soft), 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: fade-up 0.7s ease 0.18s both;
}

.qr-frame.is-pulse {
  animation: fade-up 0.4s ease both, pulse-ring 1.2s ease;
}

#qr {
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr img {
  display: block;
  margin: 0 auto;
}

.qr-fallback {
  margin: 0;
  padding: 1.5rem;
  max-width: 16rem;
  color: #334;
  font-size: 0.95rem;
  text-align: left;
}

.kiosk-hint {
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  animation: fade-up 0.6s ease 0.25s both;
}

.kiosk-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.kiosk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  animation: fade-up 0.6s ease 0.3s both;
}

.kiosk-offer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 165, 75, 0.45), 0 20px 50px rgba(0, 0, 0, 0.35);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(232, 165, 75, 0), 0 20px 50px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 520px) {
  #qr {
    width: 240px;
    height: 240px;
  }

  .nav-links {
    font-size: 0.85rem;
    gap: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
