:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #5f645f;
  --border: #dfddd3;
  --green: #21c67a;
  --blue: #246bfe;
  --coral: #ff6b4a;
  --dark: #101828;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin: 24px auto 0;
  max-width: 1180px;
  padding: 18px 22px;
  position: sticky;
  top: 14px;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 22px;
  font-weight: 850;
  gap: 12px;
}

.brand-mark {
  border-radius: 8px;
  display: block;
  flex: 0 0 34px;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 22px 28px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  min-height: 680px;
}

.eyebrow {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(52px, 7vw, 92px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 26px;
  max-width: 780px;
}

h2 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 16px;
}

h3 {
  font-size: 21px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: 21px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 42px;
}

.button,
.newsletter-form button,
.search-row button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
}

.button.primary,
.newsletter-form button {
  background: var(--green);
  color: #07130d;
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
}

.proof-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
}

.proof-grid div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.proof-grid strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.proof-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 8px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
}

.search-row {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px;
}

.search-row button {
  background: var(--blue);
  color: white;
  min-height: 42px;
  padding: 10px 20px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.filters span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
}

.filters .active {
  background: var(--ink);
  color: white;
}

.mini-idea,
.idea-card,
.rules article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tags span {
  background: #e8f8f0;
  border-radius: 6px;
  color: #128755;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 11px;
}

.tags span:nth-child(even) {
  background: #edf3ff;
  color: var(--blue);
}

.mini-idea p,
.idea-card p,
.rules p,
.newsletter-section p,
.section-heading p {
  color: var(--muted);
}

.score-line {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.score-line strong {
  font-size: 14px;
}

.score-line span {
  background: #e9ece7;
  border-radius: 999px;
  display: inline-block;
  height: 12px;
  width: 170px;
}

.score-line i {
  background: var(--green);
  border-radius: inherit;
  display: block;
  height: 100%;
}

blockquote {
  background: var(--dark);
  border-radius: 8px;
  color: white;
  font-size: 24px;
  font-weight: 850;
  margin: 22px 0 0;
  padding: 24px;
}

section {
  padding: 58px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.rules,
.ideas-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules article span {
  color: var(--blue);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 18px;
}

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

.idea-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 330px;
}

.idea-card h3 {
  font-size: 22px;
}

.idea-card .meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.idea-card ul {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
}

.idea-card .card-footer {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
}

.quote-section {
  background: var(--ink);
  border-radius: 10px;
  color: white;
  margin: 46px 0;
  padding: 58px;
}

.quote-section p {
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.newsletter-section {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 32px;
  grid-template-columns: 0.9fr 1.1fr;
  padding: 34px;
}

.newsletter-form {
  display: grid;
  gap: 10px;
}

.newsletter-form label {
  font-weight: 850;
}

.newsletter-form div {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.newsletter-form input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 52px;
  padding: 0 16px;
}

.newsletter-form input:disabled,
.newsletter-form button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.newsletter-form small {
  color: var(--muted);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: 30px auto 0;
  max-width: 1180px;
  padding: 28px 22px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.footer-link {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 0;
}

.footer-link:hover {
  color: var(--ink);
}

.cookie-banner {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  bottom: 18px;
  box-shadow: 0 22px 70px rgba(16, 24, 40, 0.16);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 50%;
  max-width: 1120px;
  padding: 18px;
  position: fixed;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  z-index: 30;
}

.cookie-banner[hidden],
.privacy-modal[hidden],
.cookie-settings[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.cookie-banner p {
  color: var(--muted);
  margin: 0;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.privacy-modal {
  align-items: center;
  background: rgba(16, 24, 40, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 40;
}

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: calc(100vh - 44px);
  max-width: 760px;
  overflow: auto;
  padding: 28px;
  position: relative;
  width: 100%;
}

.modal-close {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
}

.policy-content {
  display: grid;
  gap: 10px;
}

.policy-content h3,
.cookie-settings h3 {
  font-size: 18px;
  margin: 8px 0 0;
}

.policy-content p {
  color: var(--muted);
  margin-bottom: 6px;
}

.cookie-settings {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
}

.cookie-settings label {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

.cookie-settings input {
  margin-top: 5px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

@media (max-width: 1080px) {
  .hero,
  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 720px) {
  .site-header,
  .nav,
  .hero-actions,
  .search-row,
  .score-line,
  .site-footer,
  .cookie-banner,
  .cookie-actions,
  .modal-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  main {
    padding-top: 38px;
  }

  .proof-grid,
  .rules,
  .ideas-grid {
    grid-template-columns: 1fr;
  }

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

  .quote-section {
    padding: 32px;
  }

  .cookie-banner {
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .cookie-actions,
  .cookie-actions .button,
  .modal-actions,
  .modal-actions .button {
    width: 100%;
  }

  .modal-panel {
    padding: 24px 18px;
  }
}
