:root {
  --color-ink: #0f172a;
  --color-accent: #246bfd;
  --color-accent-dark: #1e56c7;
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-muted: #5b6472;
  --color-hero: #0b1f3a;
  --font-display: "IBM Plex Sans", "Helvetica", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-quote: "IBM Plex Serif", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 90vw);
  margin: 0 auto;
}

.site-header {
  padding: 24px 0;
  position: sticky;
  top: 0;
  background: rgba(245, 247, 251, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 10;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
}

.logo-mark {
  width: 48px;
  height: 48px;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--color-hero);
  color: #f8fafc;
  font-weight: 600;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero {
  padding: 90px 0 70px;
  background: linear-gradient(
      120deg,
      rgba(11, 31, 58, 0.6) 0%,
      rgba(11, 31, 58, 0.45) 50%,
      rgba(11, 31, 58, 0.4) 100%
    ),
    url("/assets/skyline.svg"),
    url("/assets/11596.jpg");
  background-repeat: no-repeat;
  background-position: center bottom, center bottom, center bottom;
  background-size: cover, 120% auto, cover;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(11, 31, 58, 0.6) 0%,
    rgba(11, 31, 58, 0.45) 50%,
    rgba(11, 31, 58, 0.4) 100%
  );
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.7;
  font-family: var(--font-mono);
}

.lead {
  font-size: 1.2rem;
  max-width: 620px;
}

.lead em{
    font-family: var(--font-quote);
}

.context {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.7);
}

.actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--color-accent);
  color: #f8fafc;
}

.button.primary:hover {
  background: var(--color-accent-dark);
}

.button.ghost {
  border-color: rgba(248, 250, 252, 0.5);
  color: #f8fafc;
}

.latest,
.how,
.mission,
.team,
.page {
  padding: 70px 0;
}

.latest h2,
.how h2,
.mission h2,
.team h2,
.page h1 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

.card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.meme-placeholder {
  background: linear-gradient(135deg, rgba(36, 107, 253, 0.12), rgba(11, 31, 58, 0.18));
  border-radius: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  font-weight: 600;
}

.winner {
  font-size: 1.4rem;
  font-weight: 600;
}

.meta {
  color: var(--color-muted);
}

.rating {
  margin: 12px 0 16px;
  font-weight: 600;
  color: var(--color-hero);
}

.rating span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-right: 8px;
}

.review-heading {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.review-list {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  color: var(--color-muted);
  font-family: var(--font-quote);
}

.review-list li {
  margin-bottom: 8px;
}

.steps {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.step span {
  display: inline-block;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.archive-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.meme-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 22px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.meme-header {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(36, 107, 253, 0.1);
  color: var(--color-hero);
  padding: 4px 8px;
  border-radius: 999px;
}

.meme-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.chart-card {
  min-height: 320px;
}

.chart-title {
  margin: 0 0 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: var(--color-muted);
}

.chart {
  width: 100%;
}

.axis path,
.axis line {
  stroke: rgba(15, 23, 42, 0.2);
}

.axis text {
  fill: var(--color-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.axis-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--color-muted);
  font-family: var(--font-mono);
}

.tile {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.tile h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-hero);
}

.tile h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--color-hero);
}

.person {
  font-weight: 600;
  margin: 0 0 6px;
}

.role {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 40px 0 60px;
  background: #0b1f3a;
  color: #f8fafc;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--color-ink);
}

.lang-button:hover {
  background: rgba(36, 107, 253, 0.08);
  border-color: var(--color-accent);
}

.lang-wheel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100;
}

.lang-wheel.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.lang-wheel-inner {
  position: relative;
  width: 280px;
  height: 280px;
  background: #ffffff;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  padding: 20px;
}

.lang-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(36, 107, 253, 0.3);
  z-index: 2;
}

.lang-current {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  line-height: 1.3;
}

.lang-current span {
  font-size: 0.8rem;
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

.lang-option {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--color-ink);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: center;
  min-width: 70px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px) rotate(calc(-1 * var(--angle)));
  z-index: 1;
}

.lang-option.hidden {
  display: none;
}

.lang-option:hover {
  background: var(--color-accent);
  color: #f8fafc;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-115px) rotate(calc(-1 * var(--angle))) scale(1.05);
  box-shadow: 0 4px 12px rgba(36, 107, 253, 0.3);
}

/* Meme Images */
.meme-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.meme-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.card .meme-image {
  margin-bottom: 0;
  height: 100%;
  object-fit: cover;
}

.meme-card .meme-image {
  margin-bottom: 12px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 31, 58, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  animation: zoomIn 0.3s ease;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-weight: 400;
  opacity: 0.7;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }

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

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}
