:root {
  --bg: #07110d;
  --bg-deep: #040806;
  --panel: rgba(12, 24, 18, .94);
  --panel-soft: rgba(255,255,255,.035);
  --text: #f1faf4;
  --muted: #a8c1b3;
  --green: #49ff88;
  --green-2: #19d866;
  --pink: #ff2ea6;
  --border: rgba(255,255,255,.075);
  --green-border: rgba(73,255,136,.17);
  --shadow: 0 24px 75px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(73,255,136,.09), transparent 28rem),
    radial-gradient(circle at 83% 25%, rgba(255,46,166,.07), transparent 24rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 48%, #050b08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, input[type="checkbox"], input[type="range"] { accent-color: var(--green); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(73,255,136,.45); outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(4,10,7,.76);
  border-bottom: 1px solid rgba(73,255,136,.08);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 0 13px rgba(73,255,136,.35)); }
.brand strong { display: block; font-size: 17px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.header-note { margin: 0; color: var(--muted); font-size: 14px; text-align: right; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 38px; padding: 58px 0 32px; }
.eyebrow, .section-kicker { display: inline-block; margin: 0; color: #c8f7d8; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { padding: 8px 12px; border: 1px solid var(--green-border); border-radius: 999px; background: rgba(73,255,136,.07); }
h1 { margin: 18px 0 16px; max-width: 760px; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.01; letter-spacing: -.045em; }
.lead { max-width: 740px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.trust-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-pills span { padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--border); color: #dcefe3; font-size: 13px; font-weight: 700; }
.hero-art { min-height: 350px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 30px; background: radial-gradient(circle, rgba(73,255,136,.1), transparent 50%), rgba(255,255,255,.02); box-shadow: var(--shadow); }
.hero-art::after { content: ""; position: absolute; width: 180px; height: 180px; right: -40px; bottom: -60px; border-radius: 50%; background: rgba(255,46,166,.12); filter: blur(35px); }
.hero-art img { width: min(86%, 430px); height: auto; object-fit: contain; filter: drop-shadow(0 0 26px rgba(73,255,136,.35)); position: relative; z-index: 1; }

.generator-wrap { padding: 10px 0 34px; }
.generator-card { padding: 30px; overflow: hidden; position: relative; border: 1px solid var(--green-border); border-radius: 30px; background: linear-gradient(180deg, rgba(8,16,12,.98), rgba(11,21,16,.98)); box-shadow: var(--shadow); }
.generator-card::before { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(73,255,136,.16), transparent 62%); pointer-events: none; }
.generator-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.generator-heading h2, .section-intro h2, .how-card h2 { margin: 5px 0 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.local-badge { flex: none; padding: 9px 13px; border: 1px solid var(--green-border); border-radius: 999px; background: rgba(73,255,136,.07); color: #cbf8da; font-size: 13px; font-weight: 800; }
.generator-mode { position: relative; z-index: 1; display: inline-flex; gap: 5px; margin: -2px 0 18px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.025); }
.mode-button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.mode-button.active { background: rgba(73,255,136,.12); color: #d9ffe6; box-shadow: inset 0 0 0 1px var(--green-border); }
.mode-button:hover { color: var(--text); }
[hidden] { display: none !important; }
.phrase-select-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 17px 0 18px; }
.phrase-select-row label { font-weight: 750; }
.phrase-select-row select { min-width: 160px; padding: 10px 12px; border: 1px solid var(--green-border); border-radius: 11px; background: #0c1912; color: var(--text); font-weight: 700; }
.phrase-list { margin-top: 2px; }

.password-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; }
.password-output { min-width: 0; width: 100%; min-height: 68px; padding: 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.035); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(17px, 2.2vw, 23px); font-weight: 800; letter-spacing: .025em; }
.button { min-height: 68px; padding: 0 19px; border: 0; border-radius: 16px; font-weight: 850; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { min-width: 175px; background: linear-gradient(135deg, var(--green), var(--green-2)); color: #041109; box-shadow: 0 12px 30px rgba(73,255,136,.16); }
.button.secondary { min-width: 115px; color: var(--text); border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.06); }
.status-message { min-height: 20px; margin: 7px 2px 0; color: #caf8d9; font-size: 13px; }

.settings-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; margin-top: 15px; }
.settings-panel, .strength-panel { padding: 22px; border: 1px solid var(--border); border-radius: 21px; background: var(--panel-soft); }
.settings-panel h3, .strength-panel h3 { margin: 0 0 18px; font-size: 18px; }
.length-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.length-topline label { font-weight: 750; }
.length-number { width: 76px; padding: 8px 10px; border: 1px solid var(--green-border); border-radius: 11px; background: rgba(73,255,136,.07); color: #d9ffe6; font-weight: 850; text-align: center; }
.length-slider { width: 100%; margin: 14px 0 3px; }
.field-hint { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.option-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; padding: 0; border: 0; }
.option-list legend { grid-column: 1 / -1; margin-bottom: 3px; color: var(--muted); font-size: 13px; font-weight: 700; }
.option-list label { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: rgba(255,255,255,.025); font-weight: 650; }
.option-list label span { margin-left: auto; color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; }
.option-list input { width: 18px; height: 18px; flex: none; }
.strength-meter { height: 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 999px; background: rgba(255,255,255,.055); }
.strength-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ff6583, #ffbc58 42%, #78ff8e); transition: width .25s ease; }
.strength-details { display: grid; gap: 10px; margin: 20px 0; }
.strength-details div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.strength-details dt { color: var(--muted); }
.strength-details dd { margin: 0; color: var(--text); font-weight: 800; }
.privacy-note { padding: 15px 16px; border: 1px solid var(--green-border); border-radius: 15px; background: rgba(73,255,136,.065); }
.privacy-note strong { display: block; margin-bottom: 4px; }
.privacy-note p { margin: 0; color: #d1edda; font-size: 14px; line-height: 1.6; }

.tips-section { padding: 24px 0 46px; }
.section-intro { max-width: 720px; margin-bottom: 19px; }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tips-grid article { min-height: 235px; padding: 23px; border: 1px solid var(--border); border-radius: 21px; background: rgba(255,255,255,.03); box-shadow: 0 12px 35px rgba(0,0,0,.18); }
.tip-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--green-border);
  border-radius: 14px;
  background: rgba(73,255,136,.07);
  color: var(--green);
}
.tip-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tips-grid h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.tips-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }

.how-section { padding-bottom: 58px; }
.how-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: center; padding: 27px 29px; border: 1px solid var(--green-border); border-radius: 22px; background: linear-gradient(110deg, rgba(73,255,136,.06), rgba(255,255,255,.025)); }
.how-card p:last-child { margin: 0; color: var(--muted); line-height: 1.75; }
code { color: #d4ffe2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.site-footer { border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }

@media (max-width: 980px) {
  .hero, .settings-grid, .how-card { grid-template-columns: 1fr; }
  .hero-art { min-height: 280px; }
  .tips-grid { grid-template-columns: 1fr; }
  .tips-grid article { min-height: auto; }
}

@media (max-width: 720px) {
  .generator-mode { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .phrase-select-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .phrase-select-row select { width: 100%; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 13px 0; }
  .header-note { text-align: left; }
  .hero { padding-top: 38px; }
  .hero-art { min-height: 230px; }
  .generator-card { padding: 20px; border-radius: 24px; }
  .generator-heading { align-items: flex-start; flex-direction: column; }
  .password-row { grid-template-columns: 1fr; }
  .button { min-height: 56px; }
  .option-list { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Keep key section headings on one line on larger screens. */
#tips-title,
#how-title {
  white-space: nowrap;
}

@media (max-width: 760px) {
  #tips-title,
  #how-title {
    white-space: normal;
  }
}
