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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f1ee;
  color: #3d2b1f;
  line-height: 1.58;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 18% 14%, rgba(242, 75, 46, 0.08), transparent 24rem),
    linear-gradient(rgba(61, 43, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 43, 31, 0.03) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  z-index: -1;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 238, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(61, 43, 31, 0.12);
}

.nav {
  width: min(1120px, calc(100vw - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 120px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: #6f5f53;
  padding: 8px 10px;
}

.nav-links a:hover {
  color: #f24b2e;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
}

.hero-image {
  position: relative;
  margin: 28px auto 0;
  min-height: clamp(230px, 32vw, 460px);
  overflow: hidden;
  border-radius: 8px;
  background: #efe6dc;
  border: 1px solid rgba(61, 43, 31, 0.16);
  box-shadow: 0 24px 80px rgba(61, 43, 31, 0.16);
}

.hero-image.photo > img {
  width: 100%;
  height: clamp(230px, 32vw, 460px);
  object-fit: cover;
  object-position: center 60%;
}

.hero-image.second > img {
  width: 100%;
  height: clamp(230px, 32vw, 460px);
  object-fit: cover;
}

.guardrail-art {
  min-height: clamp(230px, 26vw, 340px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: end;
  padding: clamp(22px, 4vw, 44px);
  background:
    radial-gradient(circle at 82% 24%, rgba(242, 75, 46, 0.16), transparent 18rem),
    linear-gradient(135deg, #f7f0e8, #e7dacd);
}

.guardrail-code {
  display: grid;
  gap: 12px;
  align-self: center;
}

.code-strip {
  width: min(520px, 100%);
  padding: 14px 16px;
  border: 1px solid rgba(61, 43, 31, 0.17);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.72rem, 1.8vw, 0.94rem);
  color: #3d2b1f;
  box-shadow: 0 18px 42px rgba(61, 43, 31, 0.1);
}

.code-strip strong {
  color: #f24b2e;
  font-weight: 800;
}

.nic-figure {
  position: relative;
  align-self: end;
  justify-self: end;
  width: min(300px, 34vw);
}

.nic-figure img {
  width: 100%;
  filter: drop-shadow(0 24px 36px rgba(61, 43, 31, 0.22));
}

.logo-badge,
.tool-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(61, 43, 31, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 14px 34px rgba(61, 43, 31, 0.16);
  font-size: 0.82rem;
  font-weight: 800;
}

.logo-badge {
  left: 18px;
  top: 18px;
}

.logo-badge img {
  width: 96px;
  height: auto;
}

.tool-badge {
  right: 18px;
  top: 18px;
}

.tool-badge img {
  width: 24px;
  height: 24px;
}

.hero-copy {
  padding: clamp(30px, 4.8vw, 56px) 0 clamp(30px, 4.5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b7b6e;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: #f24b2e;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: #3d2b1f;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  overflow-wrap: normal;
}

h1 em,
h2 em {
  color: #f24b2e;
  font-style: italic;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.lead {
  margin-top: 22px;
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  max-width: 720px;
  color: #5c4d42;
}

.mobile-only {
  display: none;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #3d2b1f;
  background: transparent;
  color: #3d2b1f;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button.primary {
  border-color: #f24b2e;
  background: #f24b2e;
  color: #fff;
}

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

.button.primary:hover {
  background: #d83f24;
  border-color: #d83f24;
}

.button img,
.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.side-note {
  border-left: 4px solid #f24b2e;
  padding: 18px 0 18px 20px;
  color: #5c4d42;
  background: rgba(255, 255, 255, 0.35);
}

.side-note strong {
  color: #3d2b1f;
}

.section {
  border-top: 1px solid rgba(61, 43, 31, 0.14);
  padding: clamp(42px, 6vw, 76px) 0;
}

.newsletter-section {
  width: min(840px, 100%);
  margin: clamp(20px, 3.5vw, 34px) auto clamp(42px, 6vw, 70px);
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid rgba(61, 43, 31, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(242, 75, 46, 0.045)),
    #fbf8f5;
  box-shadow: 0 18px 54px rgba(61, 43, 31, 0.08);
  overflow: hidden;
}

.newsletter-section.final-signup {
  margin-top: clamp(6px, 1.5vw, 18px);
  margin-bottom: clamp(52px, 7vw, 82px);
}

.newsletter-form {
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.newsletter-form > div[id^="fd-form-"] {
  width: 100%;
}

.newsletter-section [data-ff-el="root"],
.newsletter-section [class$="__container"],
.newsletter-section [data-ff-el="form"] {
  background: transparent !important;
}

.newsletter-section [data-ff-el="root"] {
  width: 100% !important;
  min-width: 0 !important;
}

.newsletter-section [class$="__title"] {
  margin-bottom: 8px !important;
  font-size: clamp(1.38rem, 2.55vw, 2.3rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0.12em !important;
}

.newsletter-section [class$="__subtitle"] {
  max-width: 600px !important;
  margin: 0 auto 18px !important;
  font-size: clamp(0.88rem, 1.16vw, 1rem) !important;
  line-height: 1.45 !important;
}

.newsletter-section [data-ff-el="content"] {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 10px !important;
  max-width: 680px !important;
  margin: 0 auto !important;
}

.newsletter-section [data-ff-el="fields"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.newsletter-section .fd-form-group {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.newsletter-section .fd-form-control {
  width: 100% !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  border-width: 1px !important;
  font-size: 0.8rem !important;
}

.newsletter-section [data-ff-el="footer"] {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.newsletter-section [data-ff-el="submit"] {
  min-width: 132px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(26px, 5vw, 62px);
  align-items: start;
}

.section-intro {
  max-width: 530px;
}

.section-intro p {
  margin: 14px 0 0;
  color: #67574b;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.prompt-card,
.repo-card,
.hub-card {
  border: 1px solid rgba(61, 43, 31, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.feature-card {
  padding: 18px;
}

.feature-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f24b2e;
  color: white;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.feature-card p {
  margin: 10px 0 0;
  color: #67574b;
}

.prompt-card {
  overflow: hidden;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(61, 43, 31, 0.12);
}

.prompt-head h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(61, 43, 31, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #3d2b1f;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: #f24b2e;
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  background: #1f1712;
  color: #f5f1ee;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.repo-card {
  padding: 22px;
}

.repo-card p {
  margin: 12px 0 0;
  color: #67574b;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #f24b2e;
  font-weight: 900;
  text-decoration: none;
}

.repo-link:hover {
  color: #d83f24;
}

.mini-flow {
  display: grid;
  gap: 12px;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(61, 43, 31, 0.12);
  border-radius: 8px;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #3d2b1f;
  color: #f5f1ee;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.flow-step p {
  margin: 4px 0 0;
  color: #67574b;
}

.footer {
  padding: 34px 0 44px;
  border-top: 1px solid rgba(61, 43, 31, 0.14);
  color: #75665a;
  font-size: 0.94rem;
}

.hub-hero {
  padding: clamp(56px, 9vw, 112px) 0 46px;
  max-width: 820px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: clamp(54px, 7vw, 88px);
}

.hub-card {
  padding: 24px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 75, 46, 0.5);
  background: rgba(255, 255, 255, 0.78);
}

.hub-card p {
  margin: 12px 0 0;
  color: #67574b;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

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

  .hero-copy,
  .two-col,
  .hub-grid {
    grid-template-columns: 1fr;
  }

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

  .guardrail-art {
    grid-template-columns: 1fr;
  }

  .nic-figure {
    width: min(280px, 62vw);
  }

  .tool-badge {
    left: 18px;
    right: auto;
    top: 76px;
  }

  .guardrail-art {
    padding-top: 132px;
  }
}

@media (max-width: 540px) {
  .page-shell,
  .nav {
    width: min(100vw - 24px, 1120px);
  }

  .hero-image {
    margin-top: 16px;
  }

  .action-row {
    flex-direction: column;
  }

  .button,
  .copy-btn {
    width: 100%;
  }

  .newsletter-section {
    width: 100%;
    padding: 20px 14px;
    margin-top: 20px;
  }

  .newsletter-section [class$="__title"] {
    font-size: clamp(1.25rem, 7vw, 1.7rem) !important;
    letter-spacing: 0.08em !important;
  }

  .newsletter-section [class$="__subtitle"] {
    margin-bottom: 14px !important;
    font-size: 0.86rem !important;
  }

  .newsletter-section [data-ff-el="content"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    width: 100% !important;
    max-width: 340px !important;
    gap: 10px !important;
  }

  .newsletter-section [data-ff-el="fields"] {
    grid-template-columns: 1fr !important;
    justify-self: stretch !important;
    width: 100% !important;
  }

  .newsletter-section [data-ff-el="footer"],
  .newsletter-section [data-ff-el="submit"] {
    width: 100% !important;
  }

  .prompt-head {
    align-items: stretch;
    flex-direction: column;
  }

  pre {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.05rem, 10.5vw, 2.55rem);
  }

  .mobile-only {
    display: inline;
  }
}
