:root {
  --ink: #ecf4ee;
  --muted: #9caea3;
  --panel: #151d19;
  --panel-2: #1d2721;
  --panel-border: #344238;
  --ground: #0c120f;
  --green: #75ca46;
  --green-strong: #4b9e2f;
  --green-soft: #b7ed8c;
  --gold: #ffc857;
  --sky: #dff2ff;
  --sky-deep: #87c9ef;
  --shadow: 0 28px 70px rgba(2, 12, 7, .28);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--ground); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, input { min-height: 44px; }
a { color: inherit; }
img, svg { display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #071006; background: var(--green-soft); border-radius: 8px; transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(12,18,15,.94); backdrop-filter: blur(16px); }
.header-inner { width: min(1420px, calc(100% - 40px)); min-height: 74px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.brand img { border-radius: 9px; box-shadow: 0 6px 16px rgba(0,0,0,.24); }
.brand span { font-size: 1.18rem; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav > a { min-height: 44px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 10px; color: #c6d3ca; text-decoration: none; font-size: .94rem; font-weight: 700; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: #fff; background: rgba(255,255,255,.07); outline: none; }
.primary-nav .github-button { gap: 8px; margin-left: 6px; color: #0b130d; background: #f4f8f5; }
.github-button svg { width: 19px; fill: currentColor; }
.primary-nav .github-button:hover, .primary-nav .github-button:focus-visible { color: #0b130d; background: var(--green-soft); }

.hero { position: relative; overflow: hidden; min-height: 760px; color: #152019; background: linear-gradient(180deg, var(--sky) 0%, #b6e0f7 66%, #75a56c 100%); }
.voxel-sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.voxel-sky::before { content: ""; position: absolute; inset: auto -4% 0; height: 33%; background: linear-gradient(135deg, transparent 0 13%, #4e8048 13% 25%, transparent 25% 31%, #335f38 31% 45%, transparent 45% 56%, #609858 56% 70%, transparent 70%), linear-gradient(180deg, transparent, rgba(25,76,42,.45)); clip-path: polygon(0 44%, 9% 19%, 18% 38%, 28% 8%, 40% 40%, 52% 14%, 64% 42%, 76% 10%, 87% 37%, 100% 15%, 100% 100%, 0 100%); }
.voxel-sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 88px; background: repeating-linear-gradient(90deg, #3d6f39 0 42px, #4f833f 42px 84px), linear-gradient(#5f943d, #31562d); box-shadow: inset 0 12px #7ec44b; opacity: .96; }
.cloud { position: absolute; width: 110px; height: 26px; background: rgba(255,255,255,.68); box-shadow: 32px -17px rgba(255,255,255,.68), 64px 0 rgba(255,255,255,.68); }
.cloud-one { top: 14%; left: 8%; transform: scale(.75); }
.cloud-two { top: 19%; right: 13%; transform: scale(1.1); opacity: .7; }
.block { position: absolute; width: 74px; height: 74px; bottom: 78px; background: linear-gradient(#70bd43 0 18%, #875231 18%); box-shadow: inset -12px -12px rgba(0,0,0,.13), 12px 12px 24px rgba(31,70,36,.22); }
.block::after { content: ""; position: absolute; inset: 24px 12px 12px; background: linear-gradient(90deg, transparent 0 30%, rgba(225,163,93,.42) 30% 48%, transparent 48% 70%, rgba(62,36,22,.22) 70%); }
.block-one { left: 1.5%; transform: rotate(-2deg); }
.block-two { right: 2%; width: 112px; height: 112px; bottom: 75px; }
.block-three { right: 12%; bottom: 38px; width: 58px; height: 58px; }

.hero-inner { position: relative; z-index: 2; width: min(1420px, calc(100% - 40px)); min-height: 760px; margin: 0 auto; padding: 62px 0 126px; display: grid; grid-template-columns: minmax(0, .88fr) minmax(570px, 1.12fr); align-items: center; gap: clamp(44px, 6vw, 96px); }
.hero-copy { max-width: 650px; padding-left: 8px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: #345a37; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 5px; background: var(--green-strong); box-shadow: 5px 5px #31592d; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3.5rem, 6vw, 6.6rem); line-height: .92; letter-spacing: -.065em; text-wrap: balance; text-shadow: 3px 4px rgba(255,255,255,.38); }
h1 span { color: #4f9136; }
.hero-description { max-width: 650px; margin: 27px 0 0; color: #30443a; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.62; }
.hero-actions { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 14px; }
.primary-action, .secondary-action { min-height: 54px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; text-decoration: none; font-weight: 850; box-shadow: 0 7px 0 rgba(31,61,27,.5); transition: transform .16s ease, box-shadow .16s ease; }
.primary-action { color: #fff; background: linear-gradient(#63b63e, #42872c); border: 2px solid #2f6a23; }
.primary-action svg { width: 20px; fill: currentColor; }
.secondary-action { color: #243229; background: rgba(255,255,255,.78); border: 2px solid rgba(49,71,57,.35); box-shadow: 0 7px 0 rgba(49,71,57,.24); }
.primary-action:hover, .secondary-action:hover { transform: translateY(2px); box-shadow: 0 4px 0 rgba(31,61,27,.42); }
.trust-list { margin: 27px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; color: #2e4434; list-style: none; font-weight: 750; }
.trust-list li { display: inline-flex; align-items: center; gap: 7px; }
.trust-list span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(46,68,52,.24); border-radius: 50%; background: rgba(255,255,255,.66); }

.generator-card { align-self: center; color: var(--ink); background: linear-gradient(145deg, rgba(26,36,31,.98), rgba(13,20,16,.99)); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); box-shadow: var(--shadow), 0 8px 0 #26362b; overflow: hidden; }
.card-heading { padding: 24px 26px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, rgba(255,255,255,.035), transparent); }
.card-heading h2 { margin: 3px 0 0; font-size: 1.3rem; letter-spacing: -.02em; }
.card-kicker { margin: 0; color: var(--green-soft); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.live-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; color: #b9e9a2; background: rgba(92,167,55,.15); border: 1px solid rgba(117,202,70,.3); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.live-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(117,202,70,.1); }
#generator-form { padding: 22px 26px 27px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend, label > span, .section-label-row h3, .output-topline h3 { color: #dbe7de; font-size: .82rem; font-weight: 850; }
.mode-tabs { margin-top: 9px; padding: 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; border: 1px solid #35453a; border-radius: 12px; background: #0e1511; }
.mode-tabs button { min-width: 0; padding: 8px 10px; color: #aebdb3; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: .84rem; font-weight: 800; }
.mode-tabs button[aria-selected="true"] { color: #0e170f; background: var(--green-soft); box-shadow: inset 0 -3px rgba(57,107,37,.24); }
.form-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid label { display: grid; gap: 7px; }
.full-field { grid-column: 1 / -1; }
input, select, textarea { width: 100%; color: #f4f8f5; background: #0e1512; border: 1px solid #35443a; border-radius: 10px; outline: none; }
input, select { padding: 10px 12px; }
textarea { min-height: 102px; padding: 13px 14px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(117,202,70,.13); }
.display-options { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 16px; }
.display-options label { display: inline-flex; align-items: center; gap: 8px; color: #b9c7bd; font-size: .84rem; font-weight: 700; }
.display-options input { width: 17px; height: 17px; min-height: 0; accent-color: var(--green); }
.form-status { margin: 12px 0 0; color: #90a297; font-size: .77rem; }
.form-status code, .feature-strip code, .faq-list code { color: #c8f7ac; }
.preview-section, .output-section { margin-top: 19px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.section-label-row, .output-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-label-row h3, .output-topline h3 { margin: 0; font-size: .92rem; }
.section-label-row > span { color: #819187; font-size: .72rem; font-weight: 750; }
.chat-window { position: relative; min-height: 74px; margin-top: 10px; padding: 31px 16px 14px; display: flex; align-items: center; overflow: hidden; border: 1px solid #39483e; border-radius: 10px; background: linear-gradient(rgba(255,255,255,.025), transparent), repeating-linear-gradient(45deg, #0b100d 0 8px, #0e1410 8px 16px); box-shadow: inset 0 0 28px rgba(0,0,0,.35); }
.chat-dots { position: absolute; top: 10px; left: 12px; display: flex; gap: 5px; }
.chat-dots span { width: 6px; height: 6px; border-radius: 1px; background: #4d5b52; }
#message-preview { margin: 0; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(.87rem, 1.4vw, 1.02rem); overflow-wrap: anywhere; text-shadow: 1px 2px #080b09; }
.output-topline p { margin: 3px 0 0; color: #83948a; font-size: .73rem; }
.format-select { min-width: 168px; }
.format-select select { padding-top: 8px; padding-bottom: 8px; font-size: .8rem; }
#generated-output { margin-top: 10px; }
.output-actions { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 9px; }
.output-actions button { padding: 0 15px; border-radius: 9px; cursor: pointer; font-weight: 820; }
.copy-button { display: inline-flex; align-items: center; gap: 8px; color: #0a130c; background: var(--green-soft); border: 1px solid #6db846; }
.copy-button svg { width: 18px; fill: currentColor; }
.small-button { color: #dbe7df; background: #222e27; border: 1px solid #405044; }
.small-button.subtle { margin-left: auto; color: #9cad9f; background: transparent; }
.output-actions button:hover, .output-actions button:focus-visible { filter: brightness(1.1); outline: 2px solid rgba(183,237,140,.42); outline-offset: 2px; }

.feature-strip { position: relative; z-index: 5; width: min(1220px, calc(100% - 40px)); margin: -52px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-strip article { min-height: 150px; padding: 24px; display: flex; align-items: flex-start; gap: 17px; background: linear-gradient(145deg, #1c2821, #111813); border: 1px solid #35453a; border-radius: 16px; box-shadow: 0 16px 35px rgba(0,0,0,.25), inset 0 3px rgba(255,255,255,.025); }
.feature-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; color: #172215; background: var(--green-soft); border-radius: 10px; box-shadow: 5px 5px #365330; font-size: 1.05rem; font-weight: 950; }
.placeholder-icon { color: #503119; background: #e9c895; }
.preset-icon { color: #6a4408; background: #ffd36c; }
.feature-strip h2 { margin: 1px 0 7px; font-size: 1rem; }
.feature-strip p { margin: 0; color: var(--muted); font-size: .86rem; }

.content-section { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 108px 0 20px; }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading .eyebrow { color: #87c76a; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; }
.example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.example-card { min-height: 178px; padding: 19px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--ink); background: #151e19; border: 1px solid #344238; border-radius: 15px; cursor: pointer; }
.example-card:hover, .example-card:focus-visible { border-color: var(--green); transform: translateY(-2px); outline: none; }
.example-preview { width: 100%; min-height: 62px; margin-bottom: 18px; padding: 18px 13px; display: flex; align-items: center; color: #f4e76f; background: #090e0b; border-radius: 9px; font-family: ui-monospace, monospace; font-size: .82rem; }
.example-preview b { margin-right: 5px; color: var(--gold); }
.example-preview.emerald { color: #79e78c; }
.example-preview.emerald b { color: #4cb068; }
.example-preview.royal { color: #db9cff; }
.example-preview.royal b { color: #b866e8; }
.example-card strong { font-size: 1rem; }
.example-card small { margin-top: 4px; color: var(--muted); }

.guide-section { padding-top: 120px; }
.steps-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; }
.steps-grid li { padding: 22px; display: flex; gap: 16px; background: #121a15; border: 1px solid #2d3a31; border-radius: 15px; }
.steps-grid li > span { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; color: #0b140c; background: var(--green-soft); border-radius: 9px; font-weight: 950; }
.steps-grid h3 { margin: 2px 0 7px; font-size: .98rem; }
.steps-grid p { margin: 0; color: var(--muted); font-size: .86rem; }

.faq-section { padding-bottom: 110px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #121a15; border: 1px solid #2f3c33; border-radius: 13px; }
.faq-list summary { min-height: 58px; padding: 16px 48px 16px 18px; display: flex; align-items: center; position: relative; cursor: pointer; font-weight: 820; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 18px; color: var(--green-soft); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 18px 20px; color: var(--muted); }
.site-footer { padding: 25px 20px; color: #7f9185; background: #080d0a; border-top: 1px solid #202b24; text-align: center; font-size: .85rem; }
.site-footer p { margin: 0; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: min(360px, calc(100% - 40px)); padding: 12px 16px; color: #0b130d; background: var(--green-soft); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.35); font-weight: 800; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { color: #fff; background: #b64040; }

.mc-black { color: #000; } .mc-dark_blue { color: #0000aa; } .mc-dark_green { color: #00aa00; }
.mc-dark_aqua { color: #00aaaa; } .mc-dark_red { color: #aa0000; } .mc-dark_purple { color: #aa00aa; }
.mc-gold { color: #ffaa00; } .mc-gray { color: #aaaaaa; } .mc-dark_gray { color: #555; }
.mc-blue { color: #5555ff; } .mc-green { color: #55ff55; } .mc-aqua { color: #55ffff; }
.mc-red { color: #ff5555; } .mc-light_purple { color: #ff55ff; } .mc-yellow { color: #ffff55; } .mc-white { color: #fff; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: .8fr 1.2fr; gap: 34px; }
  h1 { font-size: clamp(3.2rem, 6vw, 5.2rem); }
  .primary-nav > a:not(.github-button) { display: none; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-inner { min-height: 0; padding: 62px 0 118px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; padding-left: 0; }
  .generator-card { width: 100%; }
  .feature-strip { grid-template-columns: 1fr; margin-top: -54px; }
  .feature-strip article { min-height: 0; }
  .example-grid, .steps-grid { grid-template-columns: 1fr; }
  .content-section { padding-top: 88px; }
}

@media (max-width: 640px) {
  .header-inner, .hero-inner, .content-section, .feature-strip { width: min(100% - 24px, 1420px); }
  .header-inner { min-height: 66px; }
  .brand span { font-size: .98rem; }
  .brand img { width: 36px; height: 36px; }
  .github-button span { display: none; }
  .primary-nav .github-button { width: 44px; padding: 0; justify-content: center; }
  .hero-inner { padding-top: 44px; gap: 34px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4rem); }
  .hero-description { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .primary-action, .secondary-action { width: 100%; }
  .trust-list { display: grid; gap: 10px; }
  .card-heading, #generator-form { padding-left: 16px; padding-right: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .mode-tabs { grid-template-columns: 1fr; }
  .mode-tabs button { width: 100%; }
  .output-topline { align-items: flex-start; flex-direction: column; }
  .format-select { width: 100%; }
  .output-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .copy-button { grid-column: 1 / -1; justify-content: center; }
  .small-button.subtle { margin-left: 0; }
  .feature-strip article { padding: 20px; }
  .section-heading h2 { font-size: 2rem; }
  .toast { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}

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