:root {
  --ink: #1f2933;
  --muted: #617182;
  --line: #d8e1e8;
  --paper: #ffffff;
  --soft: #f5f8fb;
  --deep: #22384b;
  --teal: #087f8c;
  --green: #2f7d32;
  --amber: #b86e00;
  --red: #b13c35;
  --shadow: 0 16px 42px rgba(26, 45, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eef4f6;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.page-wrapper {
  min-height: 100vh;
  background: var(--soft);
}

.site-header {
  color: #fff;
  background: var(--deep);
  border-bottom: 4px solid var(--teal);
}

.top-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  background: #172838;
}

.top-strip__badge {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7dd3c7;
  color: transparent;
}

.top-strip__muted {
  color: #bdd1dc;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
}

.logo__mark img {
  width: 28px;
  height: 28px;
}

.logo__tld {
  color: #9fe7dc;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 10px;
  color: #eef9fb;
  font-size: 14px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav__ghost {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.language-selector {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 16px;
  color: #d9e8ee;
  font-size: 13px;
}

.language-selector select {
  min-width: 180px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  background: #172838;
}

.site-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 52px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.home-hero__content,
.latest-articles,
.feature-box,
.prompt-detail,
.tool-table-wrap,
.cheat-list,
.redirect-page {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-hero__content {
  padding: 42px;
}

.home-hero__eyebrow,
.section-kicker,
.tag {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 48px;
}

h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.home-hero__lead {
  max-width: 720px;
  margin: 0 0 22px;
  color: #44586b;
  font-size: 20px;
}

.home-hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.home-hero__button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--deep);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.button--primary,
.home-hero__button--primary {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.button:hover,
.home-hero__button:hover,
.copy-button:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

.latest-articles {
  padding: 24px;
}

.latest-articles__list {
  display: grid;
  gap: 12px;
}

.latest-article {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.latest-article:hover {
  text-decoration: none;
  border-color: #9fcfd0;
}

.latest-article__date,
.latest-article__desc {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.latest-article__title {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-weight: 700;
}

.section-heading {
  margin: 40px 0 16px;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

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

.feature-box {
  padding: 20px;
}

.feature-box p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.tool-table-wrap {
  overflow-x: auto;
}

.tool-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.tool-table th,
.tool-table td {
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.tool-table th {
  color: #fff;
  background: var(--deep);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tool-table tr:last-child td {
  border-bottom: 0;
}

.tool-name {
  color: var(--ink);
  font-weight: 700;
}

.rating {
  display: inline-flex;
  min-width: 86px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.rating--amber {
  background: var(--amber);
}

.rating--red {
  background: var(--red);
}

.prompt-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr);
  gap: 18px;
}

.prompt-nav {
  display: grid;
  gap: 8px;
  align-self: start;
}

.prompt-tab {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--deep);
  background: #fff;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.prompt-tab.is-active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.prompt-detail {
  padding: 24px;
}

.prompt-panel {
  display: none;
}

.prompt-panel.is-active {
  display: block;
}

.prompt-text {
  margin: 14px 0;
  padding: 18px;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  color: #263746;
  background: #eef8f7;
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.prompt-note {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.prompt-note p,
.prompt-note ul {
  margin-bottom: 0;
  color: var(--muted);
}

.prompt-note ul {
  padding-left: 20px;
}

.cheat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.content-band,
.faq-list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 20px;
  padding: 24px;
}

.content-band p,
.content-band li,
.faq-item p {
  color: var(--muted);
}

.content-band ul {
  margin: 0;
  padding-left: 20px;
}

.faq-list {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.faq-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h3 {
  font-size: 18px;
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.generator-panel,
.generator-output {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.generator-panel {
  padding: 22px;
}

.generator-output {
  min-height: 520px;
  padding: 22px;
}

.generator-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--deep);
  font-weight: 700;
}

.generator-field input,
.generator-field select,
.generator-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.generator-field textarea {
  resize: vertical;
}

.generated-prompt {
  min-height: 360px;
  margin: 14px 0 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  color: #263746;
  background: #eef8f7;
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
}

.generator-output__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.generator-output__top p {
  margin-top: 0;
  color: var(--muted);
}

.cheat-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.cheat-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.cheat-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.cheat-item strong {
  display: block;
  margin-bottom: 4px;
}

.cheat-item p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  color: #dcebf0;
  background: #172838;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 18px 22px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.footer-tagline,
.footer__tag,
.footer__legal {
  color: #b9ced9;
}

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

.footer-col__title,
.footer-col__list {
  margin: 0;
}

.footer-col__title a,
.footer-col a {
  color: #f1fbfd;
}

.footer-col__list {
  padding: 0;
  list-style: none;
}

.footer-col__list li {
  margin: 6px 0;
}

.footer__legal {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.redirect-page {
  max-width: 620px;
  margin: 12vh auto;
  padding: 36px;
  text-align: center;
}

.logo--center {
  justify-content: center;
  color: var(--deep);
}

.share-links {
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.share-links__title {
  margin: 0 0 14px;
  font-size: 18px;
}

.share-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(12, 39, 46, 0.06);
}

.share-link:hover,
.share-link:focus-visible {
  border-color: rgba(0, 169, 181, 0.45);
  color: var(--teal);
}

@media (max-width: 920px) {
  .home-hero,
  .prompt-layout,
  .generator-shell,
  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .prompt-grid,
  .cheat-list,
  .content-band {
    grid-template-columns: 1fr;
  }

  .cheat-item:nth-child(odd) {
    border-right: 0;
  }

  .cheat-item:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .top-strip {
    flex-wrap: wrap;
  }

  .header-inner {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-top: 14px;
  }

  .site-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav__list {
    display: grid;
    gap: 4px;
  }

  .language-selector {
    justify-content: flex-start;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }

  .home-hero__content {
    padding: 28px;
  }

  .features,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
