@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root {
  --primary: #4f46e5;
  --secondary: #818cf8;
  --accent: #f97316;
  --cta: #f97316;
  --bg: #eef2ff;
  --text: #1e1b4b;
  --muted: #5b5fb3;
  --card-border: #d7d9f7;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(520px 420px at 12% -10%, rgba(129, 140, 248, 0.45), transparent 70%),
    radial-gradient(480px 380px at 88% 10%, rgba(249, 115, 22, 0.22), transparent 70%),
    radial-gradient(420px 320px at 20% 90%, rgba(34, 211, 238, 0.18), transparent 70%),
    linear-gradient(180deg, #f9f7ff 0%, var(--bg) 100%);
  min-height: 100vh;
}

main {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  border-radius: 10px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--primary);
  border: 2px solid #c7d2fe;
  box-shadow: 0 6px 0 rgba(129, 140, 248, 0.35);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.card {
  background: linear-gradient(160deg, #ffffff 0%, #f3f4ff 100%);
  border: 3px solid var(--card-border);
  border-radius: 22px;
  box-shadow:
    0 10px 0 rgba(129, 140, 248, 0.25),
    0 18px 40px rgba(79, 70, 229, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.card:hover {
  box-shadow:
    0 8px 0 rgba(129, 140, 248, 0.28),
    0 16px 36px rgba(79, 70, 229, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.95);
}

a.card {
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #e0e7ff;
  border: 2px solid #c7d2fe;
  color: #3730a3;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  background: var(--cta);
  color: #ffffff;
  border: 2px solid #fb923c;
  box-shadow: 0 6px 0 #ea580c;
  cursor: pointer;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(0.98);
  box-shadow: 0 4px 0 #ea580c;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--primary);
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 5px 0 #c7d2fe;
  cursor: pointer;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-secondary:hover {
  filter: brightness(0.99);
  box-shadow: 0 3px 0 #c7d2fe;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: #c7d2fe;
}

.btn-compact {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 12px;
}

.site-header .site-header-actions {
  flex-wrap: nowrap;
  min-width: 0;
  margin-left: auto;
}

.site-header .site-header-brand {
  min-width: 0;
}

.site-header .site-header-brand > div {
  min-width: 0;
}

.site-header .site-header-primary,
.site-header .site-header-secondary,
.site-header .site-header-menu {
  white-space: nowrap;
}

.site-header .site-header-primary,
.site-header .site-header-menu {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .site-header .site-header-secondary {
    display: none !important;
  }
}

@media (max-width: 430px) {
  .site-header > div {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header .site-header-bar {
    gap: 8px;
    padding: 10px;
  }

  .site-header .site-header-actions {
    gap: 6px;
  }

  .site-header .site-header-primary.btn-compact {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 10px;
    box-shadow: 0 5px 0 #ea580c;
  }

  .site-header .site-header-menu {
    padding: 6px 10px;
    border-radius: 10px;
  }

  .site-header .site-header-brand > div {
    max-width: 130px;
  }

  .site-header .site-header-brand .text-xs {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .site-header .site-header-primary.btn-compact {
    padding: 6px 9px;
    font-size: 11px;
  }

  .site-header .site-header-brand img {
    width: 42px;
    height: 42px;
  }

  .site-header .site-header-brand > div {
    max-width: 110px;
  }

  .site-header .site-header-brand .text-lg {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 340px) {
  .site-header .site-header-brand .text-xs {
    display: none;
  }
}

.section-title {
  font-family: 'Crimson Pro', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 80;
}

.cookie-banner .cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 3px solid #d7d9f7;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow:
    0 10px 0 rgba(129, 140, 248, 0.25),
    0 20px 40px rgba(79, 70, 229, 0.2);
}

.cookie-banner .cookie-title {
  font-weight: 700;
  color: var(--primary);
}

.cookie-banner .cookie-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text);
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
}

.menu-panel {
  transform-origin: top center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-panel.hidden {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.6s ease forwards;
}

.reveal-delay-1 {
  animation-delay: 0.08s;
}

.reveal-delay-2 {
  animation-delay: 0.16s;
}

.reveal-delay-3 {
  animation-delay: 0.24s;
}

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

body.overflow-hidden {
  overflow: hidden;
}

.site-header-city {
  flex-shrink: 0;
  white-space: nowrap;
}

.city-context-card {
  background:
    radial-gradient(240px 180px at 0% 0%, rgba(129, 140, 248, 0.18), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, #f8f7ff 100%);
}

.city-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.city-dialog.hidden {
  display: none;
}

.city-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.city-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
}

@media (max-width: 768px) {
  .city-dialog {
    align-items: flex-end;
    padding: 12px;
  }

  .city-dialog-panel {
    width: 100%;
    max-height: 88vh;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn-primary,
  .btn-secondary {
    transition: none;
  }
}
