:root {
  --bg: #ffffff;
  --ink: #07111f;
  --muted: #5d6878;
  --line: #e6ecf1;
  --soft: #f7f9fb;
  --soft-2: #eefdfb;
  --yellow: #ffd400;
  --yellow-2: #ffe875;
  --teal: #04a99b;
  --teal-dark: #047d75;
  --navy: #061527;
  --shadow: 0 22px 70px rgba(7, 17, 31, 0.11);
}

* {
  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;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(230, 236, 241, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 74px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
}

.brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #ead15d;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff7bf, #ffd400);
  color: #122033;
  font-size: 16px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #243246;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 10px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 14px 26px rgba(255, 212, 0, 0.28);
}

.button-secondary {
  border-color: rgba(4, 169, 155, 0.58);
  background: #ffffff;
  color: var(--teal-dark);
}

.button-dark {
  background: var(--navy);
  color: #ffffff;
}

.page {
  overflow: hidden;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  min-height: clamp(720px, calc(100vh - 74px), 900px);
  padding-top: 62px;
  padding-bottom: 52px;
}

.hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.97;
  letter-spacing: 0;
}

.hero h1 span {
  background-image: linear-gradient(transparent 68%, var(--yellow) 68%);
}

.hero-copy {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  color: #546171;
  font-size: 13px;
  font-weight: 680;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  color: var(--teal);
  font-weight: 900;
}

.mockup {
  justify-self: end;
  width: min(100%, 640px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 800;
}

.credits {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6d7786;
  font-size: 12px;
  font-weight: 700;
}

.credits strong {
  border-radius: 999px;
  background: #d9fbf7;
  color: var(--teal-dark);
  padding: 5px 9px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  min-height: 430px;
}

.prompt-panel {
  border-right: 1px solid var(--line);
  padding: 18px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: #253348;
  font-size: 13px;
  font-weight: 850;
}

.prompt-box {
  width: 100%;
  min-height: 148px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: #223047;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}

.select-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 20px 0;
}

.ratio {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #516074;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ratio.active {
  border-color: var(--teal);
  background: var(--soft-2);
  color: var(--teal-dark);
}

.generate-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  padding: 15px 18px;
  font-weight: 850;
  cursor: pointer;
}

.time-note {
  margin-top: 12px;
  color: #8792a1;
  text-align: center;
  font-size: 12px;
}

.result-panel {
  padding: 18px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 850;
}

.status {
  border-radius: 999px;
  background: #d9fbf7;
  color: var(--teal-dark);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 850;
}

.result-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  aspect-ratio: 1 / 1;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

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

.thumb.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(4, 169, 155, 0.16);
}

.band {
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
  border-top: 1px solid rgba(230, 236, 241, 0.72);
  border-bottom: 1px solid rgba(230, 236, 241, 0.72);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-intro {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.prompt-lab {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfd 100%);
}

.prompt-grid,
.use-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.example-card,
.use-card,
.page-card {
  min-width: 0;
}

.example-card img,
.use-card img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.example-card h3,
.use-card h3,
.page-card h3 {
  margin: 14px 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.example-card p,
.use-card p,
.page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.compare-table table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 20px;
  text-align: left;
  font-size: 14px;
}

.compare-table th {
  background: #fafcfd;
  font-weight: 850;
}

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

.highlight-col {
  background: rgba(4, 169, 155, 0.065);
  color: var(--teal-dark);
  font-weight: 850;
}

.calculator {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 24%, rgba(4, 169, 155, 0.28), transparent 24%),
    var(--navy);
  color: #ffffff;
  padding: 42px;
}

.calculator p,
.calculator label {
  color: rgba(255, 255, 255, 0.72);
}

.calc-controls {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.calc-controls input,
.calc-controls select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 13px 14px;
  font: inherit;
}

.calc-controls select option {
  color: var(--ink);
}

.calc-result {
  margin-top: 24px;
  color: #38f0df;
  font-size: 32px;
  font-weight: 900;
}

.chart {
  position: relative;
  min-height: 260px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.chart::before,
.chart::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.chart::before {
  top: 32%;
}

.chart::after {
  top: 64%;
}

.chart-line {
  position: absolute;
  inset: 22px 16px 36px 24px;
}

.chart-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-value {
  position: absolute;
  left: 43%;
  top: 34%;
  border-radius: 8px;
  background: #bdfaf2;
  color: var(--teal-dark);
  padding: 9px 12px;
  font-weight: 900;
  font-size: 13px;
}

.code-card {
  border-radius: 8px;
  background: #06101d;
  color: #bffdf4;
  padding: 22px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 100%;
}

.page-card {
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-card:hover {
  transform: translateY(-3px);
  border-color: rgba(4, 169, 155, 0.45);
  box-shadow: 0 18px 40px rgba(7, 17, 31, 0.08);
}

.article {
  max-width: 880px;
  padding-top: 54px;
}

.article h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
}

.article .lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.article-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px 24px 76px;
}

.article-body h2 {
  margin: 44px 0 14px;
  font-size: 28px;
}

.article-body p,
.article-body li {
  color: #425067;
  font-size: 16px;
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.callout {
  border: 1px solid rgba(4, 169, 155, 0.25);
  border-radius: 8px;
  background: #f1fffd;
  padding: 22px;
  color: #234255;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, 0.7fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px;
}

.footer h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.footer a {
  display: block;
}

.copyright {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 18px 24px 28px;
  color: #7b8794;
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero,
  .mockup-body,
  .prompt-lab,
  .calculator {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .prompt-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prompt-grid,
  .use-grid,
  .page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 66px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 52px 16px;
  }

  .hero {
    padding-top: 42px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions .button,
  .prompt-lab .button,
  .section-head .button {
    width: 100%;
  }

  .nav .button {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
  }

  .section-head {
    display: block;
  }

  .prompt-lab,
  .calculator {
    padding: 24px;
  }

  .prompt-grid,
  .use-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .compare-table {
    overflow-x: auto;
  }

  .compare-table table {
    min-width: 720px;
  }

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