:root {
  color-scheme: dark;
  --bg: #06080a;
  --bg-soft: #0b0d10;
  --surface: #111418;
  --surface-2: #171a1f;
  --border: rgba(244, 239, 222, 0.22);
  --border-strong: rgba(244, 239, 222, 0.38);
  --text: #f4efde;
  --muted: #bdb6a3;
  --lime: #d7f900;
  --lime-dark: #95b800;
  --coral: #ff5148;
  --cyan: #14cdf2;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font: "Nunito Sans", "Manrope", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 249, 0, 0.08), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(20, 205, 242, 0.06), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(244, 239, 222, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 222, 0.12) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

button,
input {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  background: var(--lime);
  color: #050607;
  border-radius: var(--radius);
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(6, 8, 10, 0.94), rgba(6, 8, 10, 0.76));
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 50%;
}

.brand span {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 1000;
  line-height: 1;
}

.brand strong {
  color: var(--text);
}

.brand span:not(strong) {
  color: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  color: var(--text);
  font-weight: 800;
}

.nav-links a {
  padding: 0.55rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  min-height: min(430px, calc(62svh - 70px));
  margin: 0 auto;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) 0 clamp(1.1rem, 3vw, 1.8rem);
  border-bottom: 1px solid rgba(244, 239, 222, 0.12);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 8, 10, 0.98), rgba(6, 8, 10, 0.72), rgba(6, 8, 10, 0.96)),
    url("assets/goodideas-banner.jpg") center / cover no-repeat;
  opacity: 0.28;
}

.hero-copy {
  max-width: 760px;
}

.hero-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem 0.5rem;
  margin: 0;
  font-size: clamp(2.65rem, 5.7vw, 4.85rem);
  font-weight: 1000;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-line span:nth-child(1) {
  color: var(--lime);
}

.hero-line span:nth-child(2) {
  color: var(--coral);
}

.hero-line span:nth-child(3) {
  color: var(--cyan);
}

.hero-text {
  max-width: 620px;
  margin: 0.8rem 0 0;
  color: var(--text);
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 950;
  line-height: 1.1;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible,
.filter-button:hover,
.filter-button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--lime);
  background: var(--lime);
  color: #050607;
}

.button-secondary {
  border-color: var(--cyan);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(20, 205, 242, 0.14);
}

.button-icon {
  margin-right: 0.62rem;
  font-weight: 1000;
}

.doodle {
  position: absolute;
  z-index: -1;
  color: rgba(244, 239, 222, 0.18);
  font-weight: 1000;
  pointer-events: none;
}

.doodle-code {
  top: 14%;
  right: 2%;
  color: rgba(20, 205, 242, 0.38);
  font-size: 2.6rem;
  transform: rotate(10deg);
}

.doodle-check {
  right: 14%;
  bottom: 19%;
  color: rgba(215, 249, 0, 0.48);
  font-size: 2.4rem;
}

.doodle-x {
  left: 5%;
  bottom: 20%;
  color: rgba(255, 81, 72, 0.58);
  font-size: 2.5rem;
  transform: rotate(-12deg);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.section-heading.compact {
  align-items: start;
}

.section-heading h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 1000;
  line-height: 1.05;
}

.section-heading p,
.site-footer p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.filter-button {
  min-height: 38px;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(244, 239, 222, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
}

.filter-button.is-active {
  border-color: var(--lime);
  background: var(--lime);
  color: #050607;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.survival {
  padding-top: clamp(1.6rem, 4vw, 2.6rem);
}

.survival-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.survival-grid article {
  min-width: 0;
  padding: 1rem;
  border: 1px dashed rgba(215, 249, 0, 0.38);
  border-radius: var(--radius);
  background: rgba(215, 249, 0, 0.035);
}

.survival-grid span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--cyan);
  font-size: 0.86rem;
  font-weight: 1000;
}

.survival-grid h3 {
  margin: 0;
  color: var(--lime);
  font-size: 1.2rem;
  line-height: 1.05;
}

.survival-grid p {
  margin: 0.55rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.build-card,
.graveyard-panel,
.video-card,
.empty-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 239, 222, 0.07), transparent 34%),
    rgba(13, 16, 19, 0.92);
  box-shadow: var(--shadow);
}

.empty-panel {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.empty-shelf {
  grid-column: 1 / -1;
  min-height: 220px;
}

.compact-empty {
  box-shadow: none;
}

.empty-panel h3 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.empty-panel p {
  max-width: 720px;
  margin: 0.65rem 0 0;
  color: var(--text);
}

.build-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1rem;
}

.featured-build {
  grid-column: 1 / -1;
  min-height: 0;
}

.card-topline,
.card-footer,
.video-meta,
.tag-row,
.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-topline,
.card-footer {
  justify-content: space-between;
}

.card-topline {
  flex-wrap: wrap;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.62rem;
  border-radius: 6px;
  color: #050607;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1;
}

.status-free {
  background: var(--lime);
}

.status-paid,
.status-failed {
  background: var(--coral);
}

.status-building {
  background: var(--cyan);
}

.mini-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.demo-label {
  min-height: 28px;
  padding: 0.28rem 0.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.build-card-main {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1rem;
  margin: 1.1rem 0;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #090b0d;
  color: var(--lime);
  font-size: 2rem;
  font-weight: 1000;
  line-height: 1;
}

.product-icon.receipt,
.product-icon.ghost {
  color: var(--coral);
}

.product-icon.tabs {
  color: var(--cyan);
}

.build-card h3,
.video-card h3,
.graveyard-panel h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.1;
}

.build-card p,
.video-card p,
.graveyard-panel p {
  margin: 0.55rem 0 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.38;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.card-footer a,
.text-link {
  color: var(--cyan);
  font-weight: 950;
}

.price {
  color: var(--lime);
  font-size: 1.25rem;
  font-weight: 1000;
}

.eta {
  color: var(--cyan);
  font-weight: 950;
}

.idea-strip {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
  padding: 1.1rem;
  border: 1px dashed rgba(215, 249, 0, 0.5);
  border-radius: var(--radius);
  background: rgba(215, 249, 0, 0.035);
}

.idea-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.idea-bulb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px dashed var(--lime);
  border-radius: 50%;
  color: var(--lime);
  font-size: 1.8rem;
}

.idea-strip h2 {
  margin: 0;
  color: var(--lime);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.idea-strip p {
  margin: 0.35rem 0 0;
  color: var(--text);
}

.prototype-note {
  color: var(--muted) !important;
  font-size: 0.86rem;
  font-weight: 850;
}

.idea-form,
.email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.idea-form label,
.email-form label {
  display: grid;
  gap: 0.35rem;
}

.idea-form span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(6, 8, 10, 0.72);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(20, 205, 242, 0.18);
}

.form-note {
  grid-column: 1 / -1;
  min-height: 1.2rem;
  margin: 0;
  color: var(--cyan);
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
}

.video-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.video-thumb {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #050607;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.play-button,
.duration {
  position: absolute;
  border-radius: 6px;
  background: rgba(6, 8, 10, 0.82);
  font-weight: 1000;
}

.play-button {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--text);
  transform: translate(-50%, -50%);
}

.duration {
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.22rem 0.42rem;
}

.video-meta {
  flex-wrap: wrap;
  padding: 0;
  margin: 0.8rem 0 0;
  color: var(--muted);
  list-style: none;
  font-size: 0.9rem;
}

.video-meta li:not(:last-child)::after {
  margin-left: 0.5rem;
  content: "•";
  color: rgba(244, 239, 222, 0.32);
}

.text-link.danger {
  color: var(--coral);
}

.graveyard-panel {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  padding: 1.2rem;
}

.skull {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 2px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 1000;
}

.tag-row {
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag-row span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--coral);
  border-radius: 6px;
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 900;
}

.site-footer {
  display: block;
  align-items: center;
  gap: 1.5rem;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(244, 239, 222, 0.14);
}

.app-page {
  padding-bottom: 2rem;
}

.app-hero {
  position: relative;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: var(--cyan);
  font-weight: 950;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: stretch;
  gap: 1.5rem;
}

.app-copy,
.app-preview,
.detail-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(244, 239, 222, 0.07), transparent 36%),
    rgba(13, 16, 19, 0.92);
  box-shadow: var(--shadow);
}

.app-copy {
  padding: clamp(1.2rem, 4vw, 2rem);
}

.app-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.app-status-row .status {
  background: var(--lime);
}

.app-copy h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 1000;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.app-summary {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.app-preview {
  display: grid;
  grid-template-rows: minmax(210px, 1fr) auto;
  overflow: hidden;
}

.app-preview img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: 0.86;
}

.app-preview div {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.app-preview span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.app-preview strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--lime);
  font-size: 1.35rem;
  line-height: 1.1;
}

.app-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.detail-panel {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.detail-panel h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
}

.detail-panel p {
  margin: 0.7rem 0 0;
  color: var(--text);
}

.detail-steps {
  margin: 0.9rem 0 0;
  padding-left: 1.35rem;
  color: var(--text);
  display: grid;
  gap: 0.7rem;
}

.detail-steps li {
  padding-left: 0.2rem;
}

.detail-steps li::marker {
  color: var(--lime);
  font-weight: 1000;
}

.price-large {
  color: var(--lime) !important;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 1000;
  line-height: 1;
}

.grandfather-note {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  color: var(--cyan) !important;
  font-weight: 900;
}

.detail-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0.9rem 0 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text);
}

.detail-list li::before {
  position: absolute;
  left: 0;
  color: var(--lime);
  content: "✓";
  font-weight: 1000;
}

.danger-list li::before {
  color: var(--coral);
  content: "!";
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer h2 {
  color: var(--lime);
}

.email-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.social-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.social-links a {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 0.52rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 1000;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

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

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-line {
    justify-content: center;
  }

  .build-grid,
  .split-section,
  .idea-strip,
  .site-footer,
  .app-hero-grid,
  .app-detail-grid {
    grid-template-columns: 1fr;
  }

  .build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survival-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idea-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: stretch;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section-shell,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .brand {
    justify-content: center;
  }

  .brand span {
    font-size: 1.28rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
    font-size: 0.92rem;
    gap: 1.15rem;
  }

  .hero {
    gap: 1.1rem;
    padding: 1.2rem 0 1.1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-line {
    font-size: clamp(2.4rem, 12vw, 3.35rem);
  }

  .button,
  .email-form {
    width: 100%;
  }

  .button {
    min-height: 50px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .section-shell {
    padding: 1.25rem 0;
  }

  .app-copy h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 0.98;
  }

  .app-preview {
    grid-template-rows: auto auto;
  }

  .app-preview img {
    min-height: 0;
    max-height: 260px;
  }

  .filter-group {
    justify-content: flex-start;
    width: 100%;
  }

  .filter-button {
    flex: 1 1 auto;
  }

  .build-grid,
  .survival-grid,
  .video-card,
  .graveyard-panel {
    grid-template-columns: 1fr;
  }

  .build-card {
    min-height: 0;
  }

  .idea-copy {
    align-items: flex-start;
  }

  .idea-bulb {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .video-thumb {
    min-height: 190px;
  }

  .email-form {
    grid-template-columns: 1fr;
  }

  .doodle {
    display: none;
  }
}
