:root {
  color-scheme: light;
  --ink: #1c2921;
  --muted: #788176;
  --line: #e7eae2;
  --lime: #d6f475;
  --canvas: #f4f5ef;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 18% 62%, #e9efdf 0, transparent 31%), var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }

button:focus-visible, input:focus-visible, a:focus-visible, .character-option:has(input:focus-visible), .ambiguity-option:has(input:focus-visible) {
  outline: 3px solid #8db842;
  outline-offset: 3px;
}

.site-wrap { max-width: 1440px; min-height: 100dvh; margin: 0 auto; padding: 0 clamp(24px, 5.1vw, 74px); display: flex; flex-direction: column; }
.site-header { min-height: 103px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e7dc; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 24px; font-weight: 790; letter-spacing: -.065em; text-decoration: none; }
.brand-period { color: #88b72e; }
.brand-mark { position: relative; width: 33px; height: 33px; display: inline-block; border-radius: 10px; background: var(--ink); transform: rotate(-9deg); }
.brand-mark span { position: absolute; top: 7px; left: 15px; width: 3px; height: 19px; border-radius: 4px; background: var(--lime); }
.brand-mark span:nth-child(2) { transform: rotate(45deg); }
.brand-mark span:nth-child(3) { transform: rotate(90deg); }
.brand-mark span:nth-child(4) { transform: rotate(135deg); }
.header-status { display: inline-flex; align-items: center; gap: 10px; color: #69746a; font-size: 12px; font-weight: 600; letter-spacing: .035em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8bc455; box-shadow: 0 0 0 4px #8bc45520; }

.main-layout { flex: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(38px, 5.2vw, 84px); align-items: center; padding: 50px 0 55px; }
.intro { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-top: 5px; }
.intro-copy { margin-top: 5px; }
.eyebrow, .section-kicker { margin: 0; color: #70816c; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { display: block; width: 23px; height: 1px; background: #88a381; }
h1 { margin: 30px 0 22px; font-size: clamp(56px, 5.5vw, 91px); font-weight: 760; letter-spacing: -.085em; line-height: 1.13; }
h1 span { color: #8cac6a; }
.intro-description { max-width: 400px; margin: 0; color: #707b70; font-size: 16px; line-height: 1.9; letter-spacing: .025em; }

.artwork { position: relative; isolation: isolate; width: min(100%, 510px); height: 276px; margin-top: clamp(45px, 5vw, 75px); overflow: hidden; border: 1px solid #d2e0c8; border-radius: 25px; background: linear-gradient(135deg, #e8f2d9, #cee5c5 92%); }
.artwork-grid { position: absolute; inset: 0; opacity: .48; background-image: linear-gradient(#afd0ab55 1px, transparent 1px), linear-gradient(90deg, #afd0ab55 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(to right, #000, transparent 80%); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid #7fa77875; border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 220px; height: 220px; }
.orbit-two { width: 342px; height: 342px; }
.orbit-three { width: 476px; height: 476px; }
.orbit-dot { position: absolute; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: #638d5b; box-shadow: 0 0 0 6px #dcf0cd; }
.orbit-dot-one { top: 30px; left: 40%; }
.orbit-dot-two { right: 17%; bottom: 49px; width: 7px; height: 7px; }
.artwork-core { position: absolute; z-index: 2; left: 50%; top: 50%; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 30px; background: #203b2d; box-shadow: 0 18px 45px #2c624531; transform: translate(-50%, -50%) rotate(-10deg); }
.artwork-core span { color: var(--lime); font-family: Georgia, serif; font-size: 86px; line-height: 1; transform: rotate(10deg) translateY(-4px); }
.artwork-label { position: absolute; z-index: 2; color: #3b6946; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.artwork-label span { margin-left: 7px; font-size: 14px; }
.artwork-label-top { top: 21px; left: 25px; }
.artwork-label-bottom { bottom: 20px; right: 24px; }
.intro-footnote { display: flex; align-items: center; gap: 9px; margin: 21px 0 0; color: #899287; font-size: 12px; letter-spacing: .035em; }
.footnote-icon { color: #8daf5d; font-size: 17px; }

.generator-card { min-width: 0; padding: clamp(27px, 3vw, 41px); border: 1px solid #e7ebe3; border-radius: 28px; background: #fff; box-shadow: 0 20px 72px #294b2a0d, 0 2px 12px #294b2a06; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.section-kicker { color: #8da082; font-size: 10px; letter-spacing: .14em; }
.section-kicker span { color: #bac4b4; }
h2 { margin: 10px 0 0; font-size: clamp(23px, 2vw, 29px); font-weight: 740; letter-spacing: -.055em; line-height: 1.3; }
.heading-sparkle { position: relative; top: -6px; margin-left: 7px; color: #add568; font-size: 18px; }
.card-symbol { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border: 1px solid #e9eee5; border-radius: 14px; color: #7f9c74; background: #f8faf5; }
.card-symbol svg { width: 21px; height: 21px; }

.password-panel { min-height: 147px; padding: 19px 21px 16px; border: 1px solid #e6ecdf; border-radius: 18px; background: #f7f9f3; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; color: #869184; font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.new-tag { padding: 3px 7px; border-radius: 4px; color: #6c9749; background: #eaf4dc; font-size: 9px; font-weight: 850; letter-spacing: .06em; }
.password-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 67px; }
.password-value { display: block; min-width: 0; overflow-wrap: anywhere; color: #203327; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: clamp(18px, 1.8vw, 25px); font-weight: 700; letter-spacing: .015em; line-height: 1.4; user-select: all; }
.icon-button { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border: 1px solid #e1e9d8; border-radius: 11px; color: #607e5b; background: #fff; transition: background .18s, transform .18s; }
.icon-button:hover { background: #e9f5da; transform: translateY(-2px); }
.icon-button svg { width: 18px; height: 18px; }
.copy-button .check-icon { display: none; }
.copy-button.copied { color: #356832; background: #e9f5da; }
.copy-button.copied .copy-icon { display: none; }
.copy-button.copied .check-icon { display: block; }
.strength-row { display: flex; align-items: center; gap: 9px; border-top: 1px solid #e5ebdf; padding-top: 12px; color: #73806f; font-size: 11px; }
.strength-bars { display: flex; gap: 3px; }
.strength-bars i { display: block; width: 17px; height: 5px; border-radius: 3px; background: #dfe5d8; }
.strength-bars[data-level="1"] i:nth-child(-n+1) { background: #e79a83; }
.strength-bars[data-level="2"] i:nth-child(-n+2) { background: #e5b667; }
.strength-bars[data-level="3"] i:nth-child(-n+3) { background: #99bf71; }
.strength-bars[data-level="4"] i { background: #6eaf68; }
.strength-label { color: #52774d; font-weight: 700; }
.entropy-label { margin-left: auto; color: #9ca69a; }

.setting-block { margin-top: 27px; }
.setting-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.setting-heading label, .character-block legend { color: #2f3d31; font-size: 14px; font-weight: 730; }
.length-value { color: #8b9588; font-size: 12px; }
.length-value strong { margin-right: 2px; color: #30462f; font-size: 22px; font-weight: 750; letter-spacing: -.06em; }
.length-slider { --range-progress: 21.43%; display: block; width: 100%; height: 6px; margin: 0; border: 0; border-radius: 99px; appearance: none; background: linear-gradient(to right, #a5d068 0 var(--range-progress), #e9ede6 var(--range-progress) 100%); cursor: pointer; }
.length-slider::-webkit-slider-thumb { width: 21px; height: 21px; border: 5px solid #fff; border-radius: 50%; appearance: none; background: #86b751; box-shadow: 0 1px 6px #18371d42, 0 0 0 1px #95c663; }
.length-slider::-moz-range-thumb { width: 11px; height: 11px; border: 5px solid #fff; border-radius: 50%; background: #86b751; box-shadow: 0 1px 6px #18371d42, 0 0 0 1px #95c663; }
.range-labels { display: flex; justify-content: space-between; margin-top: 10px; color: #a9b1a7; font-size: 10px; }
.presets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.presets-caption { margin-right: 4px; color: #98a297; font-size: 11px; }
.preset { padding: 6px 12px; border: 1px solid #e6eae3; border-radius: 8px; color: #758073; background: #fff; font-size: 11px; font-weight: 650; transition: background .18s, color .18s, border-color .18s; }
.preset:hover { border-color: #abc793; color: #354d37; }
.preset.active { border-color: #dfefbf; color: #395a30; background: #f0f8e3; }

.character-block { min-width: 0; padding: 0; border: 0; }
.character-block legend { margin-bottom: 13px; padding: 0; }
.character-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.character-option { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 57px; padding: 0 12px; border: 1px solid #e7ebe4; border-radius: 11px; background: #fff; cursor: pointer; transition: background .18s, border-color .18s; }
.character-option:hover { border-color: #b9cfab; }
.character-option:has(input:checked) { border-color: #d9e7c9; background: #fafdf6; }
.character-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.option-symbol { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: #4e684e; background: #eaf1e4; font-size: 12px; font-weight: 800; letter-spacing: -.025em; }
.option-name { overflow: hidden; color: #506050; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.custom-check { display: grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; margin-left: auto; border: 1px solid #cbd5c6; border-radius: 5px; background: #fff; }
.character-option input:checked ~ .custom-check { border-color: #98c365; background: #a8d26f; }
.character-option input:checked ~ .custom-check::after { width: 7px; height: 4px; border-bottom: 1.8px solid #fff; border-left: 1.8px solid #fff; content: ""; transform: rotate(-45deg) translateY(-1px); }

.ambiguity-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 0 1px; cursor: pointer; }
.ambiguity-copy { display: flex; flex-direction: column; gap: 3px; }
.ambiguity-title { color: #344234; font-size: 13px; font-weight: 700; }
.ambiguity-description { color: #a1aaa0; font-size: 11px; }
.ambiguity-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch { position: relative; flex: 0 0 auto; width: 37px; height: 22px; border-radius: 99px; background: #d7ded2; transition: background .2s; }
.switch::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0002; content: ""; transition: transform .2s; }
.ambiguity-option input:checked + .switch { background: #a8ce70; }
.ambiguity-option input:checked + .switch::after { transform: translateX(15px); }

.generate-button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 55px; margin-top: 27px; border: 1px solid var(--ink); border-radius: 12px; color: #f7fbf2; background: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .025em; transition: background .2s, transform .2s, box-shadow .2s; }
.generate-button:hover { background: #314b36; box-shadow: 0 8px 18px #243c252a; transform: translateY(-2px); }
.generate-button:active { transform: translateY(0); }
.generate-button svg { width: 18px; height: 18px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: #9ba59a; font-size: 10px; text-align: center; }
.privacy-note svg { flex: 0 0 auto; width: 15px; height: 15px; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 19px 0 23px; border-top: 1px solid #e3e7dc; color: #a0a89d; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.footer-star { margin-left: 4px; color: #8eb866; font-size: 13px; }
.toast { position: fixed; z-index: 10; right: 26px; bottom: 26px; padding: 12px 18px; border: 1px solid #3b5841; border-radius: 10px; color: #fff; background: #253e2d; box-shadow: 0 12px 32px #20372033; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .main-layout { gap: 34px; }
  .artwork { height: 240px; }
  h1 { font-size: clamp(51px, 6vw, 74px); }
  .generator-card { padding: 28px; }
}

@media (max-width: 820px) {
  .site-wrap { max-width: 680px; }
  .site-header { min-height: 82px; }
  .main-layout { display: block; padding: 43px 0 48px; }
  .intro { display: block; padding: 0; }
  h1 { margin: 19px 0 15px; font-size: clamp(51px, 9vw, 75px); }
  .intro-description { max-width: 490px; }
  .artwork { width: 100%; height: 200px; margin: 27px 0 0; }
  .artwork-core { width: 92px; height: 92px; border-radius: 23px; }
  .artwork-core span { font-size: 65px; }
  .intro-footnote { display: none; }
  .generator-card { margin-top: 30px; }
}

@media (max-width: 520px) {
  .site-wrap { padding: 0 17px; }
  .site-header { min-height: 70px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark span { top: 6px; left: 13px; height: 17px; }
  .header-status { font-size: 0; }
  .status-dot { width: 9px; height: 9px; }
  .main-layout { padding: 38px 0; }
  .eyebrow { font-size: 10px; }
  h1 { margin: 19px 0 13px; font-size: clamp(49px, 13vw, 68px); }
  .intro-description { font-size: 13px; line-height: 1.8; }
  .artwork { height: 135px; margin-top: 23px; border-radius: 18px; }
  .artwork-core { width: 72px; height: 72px; border-radius: 20px; }
  .artwork-core span { font-size: 51px; }
  .artwork-label { font-size: 7px; }
  .artwork-label-top { top: 13px; left: 15px; }
  .artwork-label-bottom { right: 15px; bottom: 12px; }
  .generator-card { margin-top: 23px; padding: 23px 18px 20px; border-radius: 21px; }
  .card-heading { margin-bottom: 19px; }
  h2 { font-size: 24px; }
  .password-panel { min-height: 131px; padding: 15px; }
  .password-value { font-size: clamp(16px, 4.6vw, 21px); }
  .password-line { min-height: 65px; }
  .setting-block { margin-top: 24px; }
  .character-option { gap: 7px; min-height: 54px; padding: 0 8px; }
  .option-symbol { width: 26px; height: 28px; font-size: 10px; }
  .option-name { font-size: 11px; }
  .custom-check { width: 14px; height: 14px; }
  .privacy-note { font-size: 9px; }
  .site-footer { font-size: 9px; }
  .site-footer > span:last-child { text-align: right; }
  .toast { right: 17px; bottom: 17px; left: 17px; text-align: center; }
}

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