@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 80px 80px; }
}

:root {
  --page-bg: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
  --text: #1e293b;
  --text-sec: #4b5563;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-text: #4f46e5;
  --accent-btn: #4f46e5;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --dot: #6366f1;
  --dot-opacity: 0.05;
  --pill-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --amber: #b45309;
  --green: #15803d;
  --sky: #0369a1;
  --red: #dc2626;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    --text: #f1f5f9;
    --text-sec: #cbd5e1;
    --text-muted: #94a3b8;
    --accent: #818cf8;
    --accent-text: #a5b4fc;
    --accent-btn: #4f46e5;
    --card-bg: #1e293b;
    --border: #334155;
    --dot: #818cf8;
    --dot-opacity: 0.08;
    --pill-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --amber: #fbbf24;
    --green: #4ade80;
    --sky: #38bdf8;
    --red: #f87171;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #0f172a;
}

a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  opacity: 0.85;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: var(--dot-opacity);
  animation: drift 12s linear infinite;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1.25rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-text);
}

.version-pill {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.main-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem clamp(1.25rem, 5vw, 3.5rem) 4rem;
  gap: 1.75rem;
}

.hero-icon {
  font-size: clamp(4.5rem, 16vw, 8rem);
  line-height: 1;
  animation: floaty 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(99, 102, 241, 0.3));
  color: var(--accent);
}

.intro-block {
  animation: fadeUp 0.5s ease both;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.1;
  max-width: 16ch;
  text-wrap: balance;
  color: var(--text);
}

.lead {
  animation: fadeUp 0.5s 0.08s ease both;
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-sec);
  text-wrap: pretty;
}

.roadmap {
  animation: fadeUp 0.5s 0.12s ease both;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 640px;
}

.roadmap li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sec);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  box-shadow: var(--pill-shadow);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.icon-amber { color: var(--amber); }
.icon-green { color: var(--green); }
.icon-sky { color: var(--sky); }
.icon-red { color: var(--red); }
.icon-accent { color: var(--accent-text); }

.counter-block {
  animation: fadeUp 0.5s 0.16s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.search-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--accent-btn);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.35);
}

.search-button:active {
  transform: translateY(0);
}

.search-button:focus {
  outline: 2px solid var(--accent-btn);
  outline-offset: 2px;
}

.availability {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.4em;
}

.availability strong {
  color: var(--text);
  font-weight: 700;
}

.availability span {
  color: var(--accent-text);
}

.egg-status {
  animation: fadeUp 0.4s ease both;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--card-bg);
  border: 1.5px dashed var(--accent);
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
}

.egg-status i,
.site-footer i {
  color: var(--amber);
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer > span,
.site-footer > span > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

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