:root {
  --primary: #003399;
  --primary-dark: #00246d;
  --accent: #f05a28;
  --ink: #14213d;
  --muted: #5f6b7a;
  --line: #dfe5ef;
  --soft: #f5f7fb;
  --white: #fff;
  --success: #087f5b;
  --shadow: 0 14px 40px rgba(20, 33, 61, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--primary); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(20px, calc((100% - 1120px) / 2));
  background: var(--primary);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-weight: 800; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: white; display: grid; place-items: center; color: var(--primary); font-size: 18px; }
.brand em { color: #ffb18f; font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-links a:hover { color: white; }
.nav-cta { padding: 8px 14px; border-radius: 8px; background: var(--accent); color: white !important; }

.hero { background: linear-gradient(145deg, #f3f7ff, white 68%); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 10px 0 18px; max-width: 760px; font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.hero p { max-width: 680px; margin: 0 0 26px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; padding: 12px 18px; background: var(--primary); color: white; text-decoration: none; font-weight: 750; }
.button:hover { background: var(--primary-dark); }
.button.secondary { background: white; color: var(--primary); border: 1px solid var(--line); }
.trust { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; font-weight: 650; }
.trust span::before { content: "✓"; color: var(--success); margin-right: 5px; }
.hero-example { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.hero-example strong { display: block; font-size: 15px; margin-bottom: 8px; }
.hero-example p { font-size: 14px; margin: 0; }
.example-code { margin-top: 16px; padding: 13px; background: var(--soft); border-radius: 8px; color: var(--primary); font: 600 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }

.generator-section { padding: 68px 0; background: var(--soft); scroll-margin-top: 20px; }
.section-intro { max-width: 720px; margin-bottom: 28px; }
.section-intro h2, .content-section h2 { margin: 5px 0 10px; font-size: clamp(27px, 3.5vw, 38px); line-height: 1.2; letter-spacing: -.025em; }
.section-intro p, .content-section > p { color: var(--muted); }
.generator-shell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.generator-form { padding: 30px; }
.generator-preview { padding: 30px; background: #fbfcff; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd4e2; border-radius: 8px; color: var(--ink); background: white; }
.field input:focus, .field select:focus { outline: 3px solid rgba(0,51,153,.12); border-color: var(--primary); }
.field-note { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.generator-submit { width: 100%; min-height: 49px; border: 0; border-radius: 9px; background: var(--accent); color: white; font-weight: 800; }
.generator-submit:hover { filter: brightness(.94); }
.privacy-note { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.qr-stage { width: 252px; height: 252px; padding: 16px; display: grid; place-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; }
.qr-stage canvas, .qr-stage img { max-width: 220px; max-height: 220px; }
.qr-placeholder { color: var(--muted); text-align: center; font-size: 13px; }
.download-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.download-row button { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--primary); font-size: 12px; font-weight: 750; }
.download-row button:disabled { opacity: .45; cursor: not-allowed; }
.generator-error { min-height: 20px; margin: 8px 0 0; color: #b42318; font-size: 12px; }

.content-section { padding: 68px 0; }
.content-section.alt { background: var(--soft); }
.three-steps, .card-grid, .mistake-grid, .related-grid { display: grid; gap: 18px; }
.three-steps { grid-template-columns: repeat(3, 1fr); counter-reset: steps; }
.step, .info-card, .mistake, .example-panel { border: 1px solid var(--line); border-radius: 13px; background: white; padding: 22px; }
.step { counter-increment: steps; }
.step::before { content: counter(steps); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 13px; background: var(--primary); color: white; font-weight: 800; }
.step h3, .info-card h3, .mistake h3 { margin: 0 0 7px; font-size: 17px; }
.step p, .info-card p, .mistake p { margin: 0; color: var(--muted); font-size: 14px; }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.info-card .label { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.example-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: center; border-left: 5px solid var(--accent); }
.example-panel h3 { margin-top: 0; }
.example-panel dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; font-size: 13px; }
.example-panel dt { font-weight: 800; }.example-panel dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.mistake-grid { grid-template-columns: repeat(2, 1fr); }
.mistake h3::before { content: "Avoid: "; color: #b42318; }
.faq-list { max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 0; }
.faq-list summary { padding: 18px 30px 18px 0; font-weight: 750; cursor: pointer; }
.faq-list details p { margin: -4px 0 20px; color: var(--muted); }
.related-grid { grid-template-columns: repeat(3, 1fr); }
.related-card { padding: 18px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; color: var(--ink); background: white; font-weight: 750; }
.related-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
.related-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.final-cta { padding: 58px 0; background: var(--primary); color: white; text-align: center; }
.final-cta h2 { margin: 0 0 10px; font-size: 32px; }.final-cta p { margin: 0 auto 22px; color: rgba(255,255,255,.78); }.final-cta .button { background: var(--accent); }
.site-footer { padding: 30px 20px; background: #071b48; color: rgba(255,255,255,.62); text-align: center; font-size: 12px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; padding: 11px 15px; border-radius: 8px; background: var(--primary); color: white; font-size: 13px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 52px 0; }
  .hero-grid, .generator-shell, .example-panel { grid-template-columns: 1fr; }
  .hero-example { max-width: 560px; }
  .generator-preview { border-left: 0; border-top: 1px solid var(--line); min-height: 360px; }
  .three-steps, .card-grid, .related-grid { grid-template-columns: 1fr; }
  .mistake-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .site-nav { min-height: 60px; }
  .brand { font-size: 14px; }.brand-mark { width: 30px; height: 30px; }
  h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .generator-form, .generator-preview { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .content-section, .generator-section { padding: 50px 0; }
}
