:root {
  --ink: #0b0d0c;
  --paper: #f5f5ef;
  --white: #ffffff;
  --acid: #b7f34a;
  --acid-dark: #8fc72e;
  --muted: #666a64;
  --line: #d8dbd4;
  --dark-line: #292d2a;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(15, 19, 16, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}
.brand-accent { color: var(--acid-dark); }
.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  display: block;
  border-radius: 7px;
  background: var(--ink);
}
.brand-mark i { position: absolute; width: 7px; height: 7px; border: 2px solid var(--acid); }
.brand-mark i:nth-child(1) { top: 6px; left: 6px; }
.brand-mark i:nth-child(2) { top: 6px; right: 6px; }
.brand-mark i:nth-child(3) { bottom: 6px; left: 6px; }
.brand-mark i:nth-child(4) { right: 9px; bottom: 9px; width: 3px; height: 3px; border: 0; background: var(--acid); }
.brand-mark i:nth-child(5) { right: 5px; bottom: 5px; width: 3px; height: 3px; border: 0; background: var(--acid); }
nav { display: flex; gap: 34px; font-size: 0.88rem; font-weight: 600; }
nav a { transition: opacity 0.2s ease; }
nav a:hover { opacity: 0.55; }
.header-cta {
  padding: 11px 16px;
  border-radius: 9px;
  color: white;
  background: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}
.header-cta span, .button span { margin-left: 4px; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 650px;
  margin: 20px auto 70px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 60px;
}
.hero-copy { padding-bottom: 25px; }
.eyebrow {
  width: max-content;
  margin-bottom: 24px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--acid-dark);
  box-shadow: 0 0 0 4px rgba(143,199,46,.14);
}
h1, h2, h3 { margin-top: 0; font-family: "Manrope", sans-serif; letter-spacing: -0.055em; }
.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6.1vw, 5.6rem);
  line-height: 0.98;
}
.hero h1 span {
  position: relative;
  z-index: 0;
}
.hero h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3px;
  right: -8px;
  bottom: 4px;
  height: 24%;
  background: var(--acid);
  transform: rotate(-1deg);
}
.hero-copy > p { max-width: 560px; margin: 0 0 30px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.button {
  min-height: 49px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-dark { color: var(--ink); background: var(--acid); box-shadow: 0 10px 25px rgba(123,170,40,.2); }
.text-link { border-bottom: 1px solid var(--ink); font-size: .88rem; font-weight: 700; }
.hero-proof { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; color: #545852; font-size: .76rem; font-weight: 600; }
.hero-proof b { color: #5f991e; }

.hero-visual {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  border-radius: 36px 36px 110px 36px;
  background: var(--acid);
  overflow: hidden;
}
.hero-visual::before, .hero-visual::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(11,13,12,.16);
  border-radius: 50%;
}
.hero-visual::before { top: -105px; right: -45px; box-shadow: 0 0 0 45px rgba(11,13,12,.04), 0 0 0 90px rgba(11,13,12,.03); }
.hero-visual::after { bottom: -160px; left: -70px; width: 300px; height: 300px; }
.visual-card {
  z-index: 1;
  width: min(330px, 72%);
  padding: 32px 32px 20px;
  border: 1px solid #e5e7e0;
  border-radius: 20px;
  background: white;
  box-shadow: 16px 18px 0 var(--ink);
  transform: rotate(-3deg);
}
.visual-card p { margin: 18px 0 0; text-align: center; font-weight: 700; letter-spacing: .04em; }
.decorative-qr {
  position: relative;
  aspect-ratio: 1;
  background-image:
    linear-gradient(90deg, var(--ink) 12%, transparent 12%, transparent 20%, var(--ink) 20%, var(--ink) 28%, transparent 28%, transparent 40%, var(--ink) 40%, var(--ink) 47%, transparent 47%, transparent 57%, var(--ink) 57%, var(--ink) 67%, transparent 67%),
    linear-gradient(var(--ink) 11%, transparent 11%, transparent 19%, var(--ink) 19%, var(--ink) 28%, transparent 28%, transparent 39%, var(--ink) 39%, var(--ink) 47%, transparent 47%, transparent 58%, var(--ink) 58%, var(--ink) 68%, transparent 68%, transparent 80%, var(--ink) 80%, var(--ink) 88%, transparent 88%);
}
.decorative-qr span { position: absolute; width: 30%; height: 30%; border: 11px solid white; outline: 10px solid var(--ink); background: var(--ink); }
.decorative-qr span:nth-child(1) { top: 10px; left: 10px; }
.decorative-qr span:nth-child(2) { top: 10px; right: 10px; }
.decorative-qr span:nth-child(3) { bottom: 10px; left: 10px; }
.visual-label { position: absolute; z-index: 2; padding: 8px 12px; border: 2px solid var(--ink); background: white; font-size: .7rem; font-weight: 800; letter-spacing: .08em; box-shadow: 4px 4px 0 var(--ink); }
.label-one { top: 70px; left: 26px; transform: rotate(-7deg); }
.label-two { right: 25px; bottom: 58px; transform: rotate(6deg); }
.scribble { position: absolute; right: 25px; top: 65px; width: 110px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }

.generator-section {
  padding: 110px max(24px, calc((100% - 1120px) / 2));
  color: white;
  background: var(--ink);
}
.section-intro { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.kicker { color: #689826; font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.generator-section .kicker, .light-intro .kicker { color: var(--acid); }
.section-intro h2 { margin: 10px 0 13px; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.08; }
.section-intro p { margin: 0; color: #a8ada7; }
.generator-shell {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  border: 1px solid var(--dark-line);
  border-radius: 22px;
  background: #111412;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  overflow: hidden;
}
.generator-panel, .preview-panel { padding: 38px; }
.preview-panel { border-left: 1px solid var(--dark-line); background: #161a17; }
.panel-heading { margin-bottom: 28px; display: flex; gap: 15px; }
.step-number { color: var(--acid); font-family: "Manrope", sans-serif; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.panel-heading h3 { margin-bottom: 2px; font-size: 1.35rem; }
.panel-heading p { margin: 0; color: #8d938d; font-size: .83rem; }
label { display: block; margin-bottom: 8px; color: #d4d7d3; font-size: .78rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #343935;
  border-radius: 9px;
  outline: none;
  color: white;
  background: #1b1f1c;
  transition: border-color .2s, box-shadow .2s;
}
input, select { height: 48px; padding: 0 14px; }
textarea { min-height: 104px; padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(183,243,74,.1); }
.select-wrap { position: relative; }
select { appearance: none; cursor: pointer; }
.select-wrap::after { content: "⌄"; position: absolute; top: 9px; right: 15px; color: #a9afa8; pointer-events: none; }
.dynamic-fields { margin-top: 18px; display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { margin: 5px 0 0; color: #737a73; font-size: .7rem; }
.form-error { min-height: 20px; margin: 9px 0 0; color: #ff8c9d; font-size: .78rem; }
.form-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.button-primary { color: var(--ink); background: var(--acid); }
.button-primary:hover { background: #c4fb61; }
.button-secondary { border: 1px solid #363b37; color: #b7bcb7; background: transparent; }
.qr-preview { min-height: 288px; padding: 28px; border: 1px dashed #3c423d; border-radius: 14px; display: grid; place-items: center; background: #101311; }
.preview-placeholder { text-align: center; }
.preview-placeholder strong { display: block; margin-top: 18px; font-size: .88rem; }
.preview-placeholder p { margin: 4px 0 0; color: #747b75; font-size: .75rem; }
.mini-qr { width: 64px; height: 64px; margin: auto; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 12px; background: #252a26; }
.mini-qr i { border: 4px solid #707870; }
.mini-qr i:last-child { width: 8px; height: 8px; border: 0; align-self: end; justify-self: end; background: #707870; }
#qr-code { display: none; padding: 13px; border-radius: 10px; background: white; }
#qr-code img, #qr-code canvas { display: block; max-width: 100%; height: auto; }
.download-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.button-download, .button-copy { min-height: 43px; padding: 0 10px; font-size: .76rem; }
.button-download { color: var(--ink); background: var(--acid); }
.button-copy { grid-column: 1 / -1; border: 1px solid #363b37; color: #d3d7d3; background: transparent; }
.button:disabled { opacity: .35; cursor: not-allowed; }
.action-status { min-height: 17px; margin: 7px 0 -3px; color: var(--acid); text-align: center; font-size: .71rem; }
.privacy-note { margin: 10px 0 0; color: #737973; text-align: center; font-size: .7rem; }

.features-section { padding: 110px max(24px, calc((100% - 1180px) / 2)); color: white; background: #161917; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--dark-line); background: var(--dark-line); }
.feature-card { position: relative; min-height: 310px; padding: 28px; background: #161917; }
.feature-card:hover { background: #1b1f1c; }
.feature-number { color: #667067; font-size: .68rem; font-weight: 700; }
.feature-icon { width: 58px; height: 58px; margin: 56px 0 25px; display: grid; place-items: center; border: 1px solid #394039; border-radius: 50%; color: var(--acid); font-family: "Manrope", sans-serif; font-size: .72rem; font-weight: 800; }
.feature-card h3 { margin-bottom: 9px; font-size: 1.12rem; }
.feature-card p { margin: 0; color: #909790; font-size: .83rem; }

.types-section, .faq-section { padding: 110px max(24px, calc((100% - 1080px) / 2)); }
.type-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.type-card { min-width: 0; padding: 22px 8px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; background: rgba(255,255,255,.55); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.type-card:hover { border-color: #a7af9f; background: white; transform: translateY(-3px); }
.type-card b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--acid); }
.type-card span { overflow: hidden; font-size: .76rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.faq-section { max-width: 850px; margin: auto; }
.faq-list { border-top: 1px solid #cdd1ca; }
details { border-bottom: 1px solid #cdd1ca; }
summary { padding: 22px 2px; display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 1.4rem; font-weight: 400; transition: transform .2s; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: -7px 2px 22px; color: var(--muted); font-size: .9rem; }

footer { padding: 65px 24px 32px; border-top: 1px solid var(--dark-line); color: white; text-align: center; background: var(--ink); }
.footer-brand { justify-content: center; }
footer > p { margin: 11px 0 25px; color: #858b85; font-size: .82rem; }
.footer-links { margin-bottom: 38px; display: flex; justify-content: center; gap: 28px; color: #a4aaa4; font-size: .78rem; }
footer small { color: #5f655f; font-size: .68rem; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { min-height: auto; padding: 70px 0 40px; grid-template-columns: 1fr; text-align: center; }
  .hero-copy > p { margin-right: auto; margin-left: auto; }
  .eyebrow { margin-right: auto; margin-left: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { width: min(560px, 100%); margin: auto; }
  .generator-shell { grid-template-columns: 1fr; }
  .preview-panel { border-top: 1px solid var(--dark-line); border-left: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .site-header { width: calc(100% - 28px); height: 72px; }
  .header-cta { display: none; }
  .hero { width: calc(100% - 28px); padding-top: 50px; margin-bottom: 45px; }
  .hero h1 { font-size: 3rem; }
  .hero-actions { flex-direction: column; gap: 18px; }
  .hero-proof { gap: 10px 16px; }
  .hero-visual { min-height: 390px; border-radius: 24px 24px 70px 24px; }
  .visual-card { width: 70%; padding: 22px 22px 14px; box-shadow: 10px 12px 0 var(--ink); }
  .visual-label, .scribble { display: none; }
  .generator-section, .features-section, .types-section, .faq-section { padding-top: 76px; padding-bottom: 76px; }
  .generator-panel, .preview-panel { padding: 26px 20px; }
  .field-row, .form-actions { grid-template-columns: 1fr; }
  .qr-preview { min-height: 250px; padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 250px; }
  .feature-icon { margin-top: 35px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-links { flex-wrap: wrap; gap: 14px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
