:root {
  --background: #06101b;
  --surface: #0d1827;
  --border: #31495e;
  --foreground: #f3f7fa;
  --muted: #95a7b7;
  --cyan: #2ad9ea;
  --cyan-bright: #43eadb;
  --success: #50d6a1;
  --danger: #ff8a8a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }

::selection {
  background: rgba(42, 217, 234, 0.28);
  color: #fff;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(25, 88, 114, 0.2), transparent 34rem),
    radial-gradient(circle at -2% 71%, rgba(42, 217, 234, 0.11), transparent 22rem),
    linear-gradient(135deg, #06101b 0%, #071421 46%, #050d16 100%);
}

.site-shell::before {
  position: absolute;
  inset: 66px 0 auto;
  height: 790px;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(70, 167, 193, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 167, 193, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.site-shell::after {
  position: absolute;
  z-index: 0;
  top: 335px;
  left: -142px;
  width: 330px;
  height: 330px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(42, 217, 234, 0.13);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 35px, rgba(42, 217, 234, 0.08) 36px 37px),
    conic-gradient(from 30deg, transparent 0 12%, rgba(42, 217, 234, 0.12) 12% 12.4%, transparent 12.4% 25%);
  box-shadow: 0 0 80px rgba(42, 217, 234, 0.08);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid rgba(49, 73, 94, 0.72);
  background: rgba(4, 11, 18, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img { border-radius: 4px; }
.brand strong { color: var(--cyan); }

.brand-divider {
  display: block;
  width: 1px;
  height: 31px;
  margin: 0 8px;
  background: #526171;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c7d2db;
  font-size: 0.95rem;
}

.local-badge svg,
.assurance-panel svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--cyan-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.background-matrix {
  position: absolute;
  z-index: 0;
  top: 695px;
  left: 15.2%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: rgba(71, 152, 174, 0.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.workspace {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1440px);
  min-height: 794px;
  margin: 0 auto;
  padding: 22px 44px 42px;
  grid-template-columns: minmax(360px, 0.82fr) minmax(650px, 1.18fr);
  gap: clamp(42px, 6vw, 94px);
  align-items: center;
}

.hero-copy {
  max-width: 540px;
  padding-bottom: 10px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: #f4f7f9;
  font-size: clamp(2.7rem, 4.3vw, 4.2rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.accent-rule {
  display: block;
  width: 52px;
  height: 4px;
  margin: 31px 0 27px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  box-shadow: 0 0 18px rgba(42, 217, 234, 0.34);
}

.hero-description {
  max-width: 500px;
  margin: 0;
  color: #bac7d1;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.algorithm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 31px;
}

.algorithm-row span {
  padding: 7px 10px;
  border: 1px solid rgba(58, 100, 126, 0.64);
  border-radius: 999px;
  background: rgba(12, 32, 47, 0.72);
  color: #83b9c8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.generator-card {
  position: relative;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20px;
  padding: 34px 38px 30px;
  border: 1px solid rgba(67, 102, 129, 0.9);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 28, 42, 0.98), rgba(9, 21, 33, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.generator-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(42, 217, 234, 0.035), transparent 32%);
}

.field-group {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 9px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.label-line {
  display: flex;
  min-height: 22px;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

label {
  color: #edf3f7;
  font-size: 0.94rem;
  font-weight: 620;
}

.field-note {
  color: #6f8799;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.045em;
}

.master-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.key-generator-button {
  position: relative;
  z-index: 2;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(42, 217, 234, 0.44);
  border-radius: 999px;
  background: rgba(19, 65, 78, 0.38);
  color: #80e9ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.035em;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.key-generator-button:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
  background: rgba(27, 93, 105, 0.5);
  color: #c6ffff;
}

input, select {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background-color: rgba(5, 17, 28, 0.92);
  color: var(--foreground);
  font-size: 0.98rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input { padding: 0 17px; }

select {
  padding: 0 42px 0 17px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #b8c7d2 50%),
    linear-gradient(135deg, #b8c7d2 50%, transparent 50%);
  background-position: calc(100% - 20px) 24px, calc(100% - 15px) 24px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

input::placeholder { color: #607486; opacity: 1; }
input:hover, select:hover { border-color: #466780; background-color: rgba(6, 20, 32, 0.98); }

input:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 217, 234, 0.18);
}

input:focus-visible, select:focus-visible { border-color: var(--cyan); }
.input-wrap { position: relative; }
.input-wrap input { padding-right: 58px; }

.input-wrap.has-error input,
input.has-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 138, 138, 0.08);
}

.icon-button {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 7px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cad5dd;
}

.icon-button:hover { background: rgba(65, 106, 133, 0.18); color: #fff; }

.icon-button svg,
.copy-button svg,
.generate-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.icon-button svg { width: 23px; height: 23px; }
.field-error { margin: -2px 0 0; color: #ffaaaa; font-size: 0.76rem; line-height: 1.4; }

.generate-button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(110deg, #28d5e9, #43e1d3);
  color: #041119;
  font-size: 1.05rem;
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(42, 217, 234, 0.15);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.generate-button::after {
  position: absolute;
  top: 0;
  left: -45%;
  width: 35%;
  height: 100%;
  content: "";
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transition: left 420ms ease;
}

.generate-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(42, 217, 234, 0.23);
}

.generate-button:hover:not(:disabled)::after { left: 115%; }
.generate-button:active:not(:disabled) { transform: translateY(1px); }
.generate-button:disabled { opacity: 0.72; }
.generate-button svg { width: 24px; height: 24px; }

.result-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 3px;
  padding-top: 20px;
  border-top: 1px solid rgba(49, 73, 94, 0.72);
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 14px;
}

.password-output {
  height: 62px;
  color: #9bf4f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 1.7vw, 1.34rem);
  font-weight: 520;
  letter-spacing: 0.055em;
}

.password-output::placeholder { color: #385266; letter-spacing: 0.18em; }

.copy-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  height: 62px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #42627b;
  border-radius: 10px;
  background: rgba(18, 37, 53, 0.72);
  color: #e1e9ef;
  font-weight: 600;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.copy-button:hover:not(:disabled) { border-color: var(--cyan); background: rgba(32, 69, 85, 0.72); }
.copy-button:disabled { opacity: 0.43; }
.copy-button.is-copied { border-color: var(--success); color: var(--success); }
.copy-button svg { width: 22px; height: 22px; }

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(49, 73, 94, 0.28);
}

.policy-check {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px 0;
  color: #778b9b;
  font-size: 0.78rem;
}

.policy-check + .policy-check { border-left: 1px solid rgba(49, 73, 94, 0.44); }

.checkmark {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #496173;
  border-radius: 50%;
  color: #597283;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.policy-check.passes { color: #a9b8c4; }
.policy-check.passes .checkmark { transform: scale(1.04); border-color: var(--success); color: var(--success); }

.assurance-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 2px;
  padding-top: 20px;
  border-top: 1px solid rgba(49, 73, 94, 0.72);
}

.assurance-panel svg { width: 38px; height: 38px; flex: 0 0 auto; }
.assurance-panel strong { display: block; color: #eaf1f5; font-size: 0.87rem; }
.assurance-panel p { margin: 5px 0 0; color: #768c9d; font-size: 0.78rem; }

.status-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -7px 0 0;
  color: #708899;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  line-height: 1.45;
}

.status-line > span:first-child {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(42, 217, 234, 0.55);
}

.how-it-works {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 88px), 1352px);
  margin: 0 auto 70px;
  padding: 42px;
  border: 1px solid rgba(49, 73, 94, 0.65);
  border-radius: 18px;
  background: rgba(10, 24, 38, 0.78);
  grid-template-columns: 0.75fr 1.25fr;
  gap: 54px;
  backdrop-filter: blur(16px);
}

.how-it-works h2 {
  max-width: 440px;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.how-it-works ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
}

.how-it-works li { display: flex; gap: 13px; padding: 0 20px; }
.how-it-works li:first-child { padding-left: 0; }
.how-it-works li + li { border-left: 1px solid rgba(49, 73, 94, 0.64); }
.how-it-works li > span { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.74rem; }
.how-it-works strong { color: #e8eff4; font-size: 0.87rem; }
.how-it-works li p { margin: 9px 0 0; color: #8296a5; font-size: 0.78rem; line-height: 1.55; }

footer {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-top: 1px solid rgba(49, 73, 94, 0.56);
  background: rgba(4, 11, 18, 0.72);
  color: #657b8b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
}

[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .workspace { min-height: auto; padding-top: 70px; padding-bottom: 70px; grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 760px; }
  .hero-copy h1 br { display: none; }
  .hero-description { max-width: 700px; }
  .generator-card { max-width: 820px; }
  .how-it-works { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 760px) {
  .site-header { padding: 0 20px; }
  .brand { gap: 9px; font-size: 1rem; }
  .brand-divider { height: 24px; margin: 0 3px; }
  .local-badge span { display: none; }
  .workspace { padding: 48px 20px 54px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.2rem); }
  .generator-card { padding: 25px 20px 23px; }
  .master-actions .field-note { display: none; }
  .field-row, .result-row { grid-template-columns: 1fr; gap: 20px; }
  .copy-button { height: 52px; }
  .policy-grid { grid-template-columns: 1fr 1fr; }
  .policy-check { justify-content: flex-start; padding: 12px 8px 4px; }
  .policy-check + .policy-check { border-left: 0; }
  .how-it-works { width: calc(100% - 40px); margin-bottom: 40px; padding: 28px 22px; }
  .how-it-works ol { grid-template-columns: 1fr; }
  .how-it-works li { padding: 20px 0; }
  .how-it-works li + li { border-top: 1px solid rgba(49, 73, 94, 0.64); border-left: 0; }
  footer { flex-direction: column; gap: 8px; justify-content: center; padding: 20px; text-align: center; }
}

@media (max-width: 460px) {
  .master-actions { gap: 0; }
  .key-generator-button { padding: 4px 8px; font-size: 0.61rem; }
  .brand img { display: none; }
}

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


/* Shared Adcox.ai navigation */
.navbar {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 0.5rem 0;
  background: rgba(0, 0, 0, 0.25);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.navbar .container {
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-brand img { display: inline-block; vertical-align: text-top; }

.navbar-collapse {
  display: flex;
  flex-basis: auto;
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-link:hover,
.nav-link:focus { color: rgba(255,255,255,.75); }

.nav-link.active { color: #fff; }

.navbar-toggler {
  display: none;
  margin-left: auto;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 0.375rem;
  background: transparent;
  color: rgba(255,255,255,.55);
  cursor: pointer;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background: center / 100% 100% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255,255,255,.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

@media (max-width: 767.98px) {
  .navbar-toggler { display: inline-flex; }
  .navbar-collapse {
    display: none;
    flex-basis: 100%;
  }
  .navbar-collapse.show { display: block; }
  .navbar-nav {
    flex-direction: column;
    margin: 0;
    padding-top: 0.5rem;
  }
  .nav-link { padding: 0.5rem 0; }
}

@media (max-width: 560px) {
  .keyforge-context { align-items: flex-start; }
}


/* Main-site footer treatment */
footer.main-footer {
  display: block;
  min-height: 0;
  padding: 1.5rem 0;
  border-top: 0;
  background: transparent;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  text-align: center;
}

footer.main-footer .container {
  display: block;
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
}

footer.main-footer strong {
  color: var(--foreground);
}
