/* ===== Base / Reset ușor ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0ea5a4);
  min-height: 100svh; /* mobile-friendly unit */
}

/* ===== Design tokens ===== */
:root {
  --bg-overlay: rgba(255,255,255,0.06);
  --shadow: 0 8px 30px rgba(2,6,23,0.6);
  --radius: 14px;
  --text-muted: rgba(255,255,255,0.9);
  --brand: #0ea5a4;
}

/* High contrast pref */
@media (prefers-contrast: more) {
  :root { --bg-overlay: rgba(255,255,255,0.12); }
}

/* ===== Layout ===== */
.page {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
}

.card {
  width: min(680px, 92vw);
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--radius);
  background: var(--bg-overlay);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(6px);
  animation: fade-in 600ms ease-out both;
}

h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
  letter-spacing: 0.2px;
}

p { margin: 0; }

.card p + p { margin-top: 0.35rem; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.1rem;
  font-weight: 600;
  color: #0b1220;
  background: #ffffff;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* ===== Meta info ===== */
.version {
  margin-top: 1rem;
  opacity: .9;
  font-size: .9rem;
  color: var(--text-muted);
}

/* ===== NoScript ===== */
.noscript {
  position: fixed;
  inset: auto 0 0 0;
  background: #111827;
  color: #fff;
  text-align: center;
  padding: 10px 14px;
  font-size: .9rem;
}

/* ===== Animations ===== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respectă preferința de a reduce animațiile */
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .btn { transition: none; }
}
