/* Flowgear Experts meme contest — .fg26 dual surface */
:root {
  --teal: #29baab;
  --teal-deep: #0e7468;
  --teal-btn: #0e8073;
  --navy: #16243f;
  --pitch: #0b0e1d;
  --blue: #6a8bc7;
  --purple: #ab8ab6;
  --yellow: #f2c23e;
  --ink: #101728;
  --soft: #5b6577;
  --faint: #6b7280;
  --line: #e7eaf0;
  --bg: #fff;
  --bg2: #f7f9fc;
  --r: 14px;
  --r-btn: 9px;
  --max: 1180px;
  --font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.accent {
  color: var(--teal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}

.hero-eyebrow {
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 14.5px;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--teal-btn);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.nav {
  background: var(--pitch);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.nav-logo {
  height: 28px;
  width: auto;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  color: #fff;
}

.hero {
  position: relative;
  background: var(--pitch);
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(41, 186, 171, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(106, 139, 199, 0.18), transparent 50%),
    linear-gradient(180deg, #0b0e1d 0%, #12182c 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--soft);
  max-width: 40rem;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.how {
  background: var(--bg);
}

.steps {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  padding: 0;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(41, 186, 171, 0.14);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  color: var(--soft);
  font-size: 0.95rem;
}

.rules {
  margin: 0;
  padding: 20px 24px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--soft);
  font-size: 0.95rem;
}

.rules li + li {
  margin-top: 8px;
}

.templates {
  background: var(--bg2);
  border-top: 1px solid var(--line);
}

.template-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.template-nav a {
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.template-nav a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.meme {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  margin-bottom: 28px;
  scroll-margin-top: 24px;
}

.meme-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.meme-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 6px;
}

.meme h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.meme-blurb {
  color: var(--soft);
  font-size: 0.98rem;
  max-width: 36rem;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.meme-fig {
  margin: 0;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.meme-fig img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #eceff5;
  padding: 8px;
}

.meme-fig figcaption {
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--soft);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.footer p {
  color: var(--faint);
  font-size: 0.9rem;
  max-width: 36rem;
}

.footer code {
  font-size: 0.85em;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .meme-fig img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .nav-actions .nav-link {
    display: none;
  }

  .hero {
    padding: 48px 0 64px;
  }

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

  .section {
    padding: 56px 0;
  }

  .meme {
    padding: 20px;
  }
}

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

  .btn:hover {
    transform: none;
  }
}
