/* 5x1 Skill Store — Frutiger Aero (aligned with 5x1.com) */

:root {
  --bg: #d8ecff;
  --bg-2: #c2e0ff;
  --bg-3: #a9cbef;
  --panel: rgba(243, 250, 255, 0.76);
  --text: #102235;
  --muted: #54708c;
  --line: rgba(64, 99, 139, 0.32);
  --accent: #1f78ff;
  --accent-deep: #0b58d1;
  --accent-soft: rgba(31, 120, 255, 0.16);
  --shadow: 0 18px 38px rgba(34, 71, 112, 0.22);
  --aero-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.1));
  --radius-lg: 24px;
  --radius-md: 16px;
  --shell-width: min(1040px, calc(100% - 28px));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    url("assets/aero-bg.svg") center center / cover no-repeat fixed,
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 58%, var(--bg-3) 100%);
  overflow-x: hidden;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

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

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Atmosphere */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky__shimmer {
  position: absolute;
  inset: -20% -30%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.06) 55%,
    transparent 65%
  );
  transform: translateX(-20%) rotate(8deg);
  opacity: 0.45;
  will-change: transform;
}

.bubbles {
  position: absolute;
  inset: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(200, 230, 255, 0.35) 35%,
    rgba(79, 143, 244, 0.1) 70%,
    transparent 100%
  );
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.5),
    0 4px 16px rgba(34, 71, 112, 0.12);
  animation: float-up linear infinite;
  opacity: 0.55;
}

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  8% {
    opacity: 0.6;
  }
  92% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-110vh) translateX(var(--drift, 20px)) scale(1.05);
    opacity: 0;
  }
}

/* Shell */
.page-shell {
  position: relative;
  z-index: 1;
  width: var(--shell-width);
  margin: 0 auto;
  padding: 18px 0 32px;
}

.topbar,
.panel,
.footer,
.notice,
.skill-hero {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background-image: var(--aero-sheen);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px rgba(34, 71, 112, 0.18);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  background-color: rgba(233, 244, 255, 0.82);
}

.logo-mark {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.logo-mark:hover {
  color: var(--accent-deep);
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topbar__links a {
  color: var(--muted);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.topbar__links a:hover,
.topbar__links a[aria-current="page"] {
  color: var(--text);
}

.topbar__links a[aria-current="page"] {
  font-weight: 700;
}

/* Placeholder banner */
.notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background-color: rgba(255, 244, 210, 0.88);
  border-color: rgba(255, 220, 140, 0.85);
}

.notice .eyebrow {
  color: #8a5a00;
}

.notice p:last-child {
  margin: 0;
  color: #5c4310;
  font-size: 0.98rem;
}

/* Page hero + panels */
.page-hero {
  margin-top: 0;
}

.page-hero h1,
.skill-hero h1,
.skill-missing h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero__lede,
.skill-hero__tagline {
  margin: 12px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
}

main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border-radius: 22px;
  background-color: rgba(236, 246, 255, 0.8);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.catalog-heading {
  margin-top: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* Buttons */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid rgba(52, 102, 164, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 1px 0 rgba(255, 255, 255, 0.4);
  transition:
    transform 150ms ease,
    filter 150ms ease;
  overflow: hidden;
  cursor: pointer;
}

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

.button--primary {
  background: linear-gradient(180deg, #8dc2ff 0%, #4f8ff4 48%, #1f6fe9 49%, #1d61d6 100%);
  color: #f8fcff;
}

.button--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}

.button--primary:hover::after {
  transform: translateX(120%);
}

.button--primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Store toolbar */
.store-toolbar {
  display: grid;
  gap: 1rem;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(76, 118, 166, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(206, 226, 247, 0.86));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus-visible {
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 3px var(--accent-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(76, 118, 166, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(206, 226, 247, 0.86));
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.chip:hover,
.chip:focus-visible,
.chip[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(180deg, #fdfefe 0%, #dcecff 100%);
}

.chip[aria-pressed="true"] {
  border-color: rgba(31, 120, 255, 0.45);
  color: var(--accent-deep);
}

.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.store-status {
  margin: 1.25rem 0 0;
  color: var(--muted);
}

.empty {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border-radius: 12px;
  border: 1px solid rgba(76, 118, 166, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(206, 226, 247, 0.86));
}

/* Cards */
.featured-row,
.skill-grid {
  display: grid;
  gap: 14px;
}

.featured-row {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.skill-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.skill-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  border: 1px solid rgba(76, 118, 166, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(206, 226, 247, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.skill-card:hover,
.skill-card:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.02);
  color: inherit;
}

.skill-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skill-card--featured {
  min-height: 12rem;
}

.skill-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0.2rem 0 0.65rem;
}

.skill-card__icon img {
  width: 100%;
  height: 100%;
}

.skill-card__name {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.skill-card__dev,
.skill-card__cat {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.skill-card__cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-deep);
}

.badge-free {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #d4f4c8 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #2b6b3a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skill-meta .badge-free {
  position: static;
}

/* Skill page */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 18px 0 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.skill-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  border-radius: 22px;
  background-color: rgba(236, 246, 255, 0.8);
}

.skill-hero__icon {
  width: 5.5rem;
  height: 5.5rem;
}

.skill-hero__icon img {
  width: 100%;
  height: 100%;
}

.skill-hero__copy .eyebrow {
  margin-bottom: 0.4rem;
}

.skill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.skill-hero__action {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  min-width: 10.5rem;
}

.skill-hero__note {
  margin: 0;
  max-width: 14rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
}

.skill-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.skill-stack p {
  margin: 0;
  color: var(--muted);
}

.phrases {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phrases li {
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(76, 118, 166, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(206, 226, 247, 0.86));
  font-style: italic;
  color: var(--text);
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.screen {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: end center;
  padding: 0.85rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.85), transparent 42%),
    linear-gradient(180deg, rgba(141, 194, 255, 0.45) 0%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.screen span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* Toast */
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(206, 226, 247, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.footer {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background-color: rgba(18, 34, 55, 0.94);
  background-image: none;
  color: rgba(245, 251, 255, 0.82);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(34, 71, 112, 0.22);
}

.footer p {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.95rem;
}

.footer a {
  color: #9ec8ff;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.footer a:hover {
  color: #cfe4ff;
}

@media (max-width: 800px) {
  .skill-hero {
    grid-template-columns: auto 1fr;
  }

  .skill-hero__action {
    grid-column: 1 / -1;
    justify-items: stretch;
  }

  .skill-hero__note {
    text-align: left;
    max-width: none;
  }

  .screens {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bubble,
  .sky__shimmer,
  .button,
  .button--primary::after,
  .skill-card,
  .toast {
    animation: none !important;
    transition: none !important;
  }
}
