:root {
  --ink: #e9f2ee;
  --muted: #91a39b;
  --dim: #667a72;
  --line: rgba(196, 228, 216, 0.14);
  --line-strong: rgba(196, 228, 216, 0.25);
  --mint: #7cf1bd;
  --mint-bright: #a3ffd5;
  --danger-bg: rgba(119, 43, 22, 0.22);
  --shadow: 0 38px 100px rgba(0, 0, 0, 0.38);
  --radius: 26px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: #09110f;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 9%, rgba(38, 94, 71, 0.22), transparent 34rem),
    radial-gradient(circle at 84% 72%, rgba(58, 112, 89, 0.12), transparent 30rem),
    linear-gradient(145deg, #0a1310 0%, #07100d 58%, #0a1511 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.ambient-one {
  top: 12%;
  left: -12rem;
  background: rgba(48, 145, 104, 0.18);
}

.ambient-two {
  right: -10rem;
  bottom: 3%;
  background: rgba(79, 174, 130, 0.13);
}

.site-header, .page-shell, footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(124, 241, 189, 0.42);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(124, 241, 189, 0.18), rgba(124, 241, 189, 0.03));
  box-shadow: inset 0 0 18px rgba(124, 241, 189, 0.08);
}

.brand-mark span {
  position: absolute;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform-origin: left center;
}

.brand-mark span:nth-child(1) { transform: translate(-4px, -4px) rotate(29deg); }
.brand-mark span:nth-child(2) { transform: translate(-4px, 0) rotate(-29deg); }
.brand-mark span:nth-child(3) { transform: translate(-4px, 4px) rotate(29deg); }

.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(10, 21, 17, 0.62);
  font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(124, 241, 189, 0.09), 0 0 14px var(--mint);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 0.88fr);
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
  min-height: calc(100vh - 154px);
  padding-block: 70px 82px;
}

.intro {
  align-self: center;
  max-width: 570px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--dim);
  font: 500 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 7px 9px;
  border: 1px solid rgba(124, 241, 189, 0.23);
  border-radius: 6px;
  color: var(--mint);
  background: rgba(124, 241, 189, 0.06);
  letter-spacing: 0.07em;
}

h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  font-weight: 600;
}

h1 em {
  display: block;
  color: var(--mint);
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 510px;
  margin: 25px 0 35px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.trust-list {
  display: grid;
  gap: 0;
  max-width: 500px;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--mint);
  background: rgba(124, 241, 189, 0.08);
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.trust-item div { display: grid; gap: 3px; }
.trust-item strong { font-size: 13px; font-weight: 600; }

.trust-item div span {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.api-hint {
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 12px;
}

.api-hint a {
  margin-left: 5px;
  color: var(--muted);
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.api-hint a:hover { color: var(--mint); }

.generator-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(20, 40, 33, 0.97), rgba(10, 23, 19, 0.96));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.03);
}

.generator-card::before {
  position: absolute;
  top: -8rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(124, 241, 189, 0.07);
  filter: blur(50px);
  content: "";
  pointer-events: none;
}

.card-topline, .stepper, .panel, .notice { margin-inline: 34px; }

.card-topline {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 32px;
}

.card-kicker {
  color: var(--mint);
  font: 500 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-topline h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.version-tag {
  display: grid;
  place-items: center;
  width: 36px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font: 500 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: start;
  margin-top: 28px;
  margin-bottom: 26px;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--dim);
  transition: color 200ms ease;
}

.step span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #10221c;
  font: 500 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.step small {
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step.active, .step.complete { color: var(--mint); }

.step.active span {
  border-color: var(--mint);
  color: #07110d;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(124, 241, 189, 0.16);
}

.step.complete span {
  border-color: rgba(124, 241, 189, 0.5);
  color: var(--mint);
  background: rgba(124, 241, 189, 0.1);
}

.step-line {
  height: 1px;
  margin: 13px 9px 0;
  background: var(--line);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 188, 157, 0.25);
  border-radius: 10px;
  color: #ffd7c5;
  background: var(--danger-bg);
  font-size: 12px;
  line-height: 1.5;
}

.notice[hidden] { display: none; }

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 188, 157, 0.4);
  border-radius: 50%;
  font: 600 10px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.panel {
  min-height: 310px;
  animation: panel-in 260ms ease both;
}

.panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 17px 12px;
}

.field-wide { grid-column: 1 / -1; }

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field small {
  color: var(--dim);
  font-size: 10px;
  line-height: 1.45;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: rgba(4, 13, 10, 0.62);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  height: 47px;
  padding: 0 14px;
  font-size: 13px;
}

textarea {
  resize: vertical;
  min-height: 116px;
  padding: 13px;
  font: 400 11px/1.62 ui-monospace, "SFMono-Regular", Menlo, monospace;
  overflow-wrap: anywhere;
}

input::placeholder, textarea::placeholder { color: #52645d; }

input:focus, textarea:focus {
  border-color: rgba(124, 241, 189, 0.64);
  background: rgba(5, 16, 12, 0.86);
  box-shadow: 0 0 0 3px rgba(124, 241, 189, 0.08);
}

.input-wrap, .phone-wrap {
  position: relative;
  display: block;
}

.input-wrap input { padding-right: 58px; }

.reveal-button {
  position: absolute;
  top: 50%;
  right: 11px;
  padding: 6px;
  border: 0;
  color: var(--dim);
  background: transparent;
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
}

.reveal-button:hover { color: var(--mint); }
.phone-wrap input { padding-left: 36px; }

.phone-plus {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  color: var(--mint);
  transform: translateY(-50%);
  font: 500 13px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 18px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--mint);
}

.consent input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.primary-button, .secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 49px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
}

.primary-button {
  width: 100%;
  margin-top: 22px;
  padding: 0 13px 0 18px;
  border: 1px solid #91f7c8;
  color: #07130f;
  background: linear-gradient(135deg, var(--mint-bright), #67dfa9);
  box-shadow: 0 12px 28px rgba(66, 205, 144, 0.12);
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 34px rgba(66, 205, 144, 0.18);
}

.primary-button:active:not(:disabled) { transform: translateY(0); }

.primary-button:disabled, .secondary-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.primary-button.loading span:first-child::after {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 9px;
  border: 2px solid rgba(7, 19, 15, 0.28);
  border-top-color: #07130f;
  border-radius: 50%;
  content: "";
  vertical-align: -2px;
  animation: spin 700ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.button-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 7px;
  background: rgba(7, 19, 15, 0.08);
  font-size: 15px;
}

.back-button, .text-button {
  padding: 0;
  border: 0;
  color: var(--dim);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.back-button:hover, .text-button:hover { color: var(--mint); }

.panel-heading {
  margin: 14px 0 20px;
  text-align: center;
}

.panel-symbol, .success-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 12px;
  border: 1px solid rgba(124, 241, 189, 0.3);
  border-radius: 14px;
  color: var(--mint);
  background: rgba(124, 241, 189, 0.07);
  box-shadow: 0 0 24px rgba(124, 241, 189, 0.08);
}

.lock-symbol { font: 500 22px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }

.panel-heading h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.panel-heading p {
  margin: 7px auto 0;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.55;
}

.panel-heading p strong {
  color: var(--muted);
  font-weight: 600;
}

.code-field input {
  height: 58px;
  text-align: center;
  font: 500 24px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.32em;
}

.result-panel { min-height: 0; }

.success-mark {
  border-radius: 50%;
  color: #07130f;
  background: var(--mint);
  font-size: 18px;
  font-weight: 700;
}

.result-panel .panel-heading { margin-top: 0; }

.result-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.result-actions .primary-button { margin-top: 0; }
.copy-button { gap: 12px; }

.secondary-button {
  min-width: 114px;
  padding-inline: 14px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.secondary-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.danger-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 188, 157, 0.17);
  border-radius: 10px;
  color: #cfae9f;
  background: rgba(119, 43, 22, 0.12);
}

.danger-note > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 188, 157, 0.3);
  border-radius: 50%;
  font: 600 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.danger-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.danger-note strong { color: #ffd0ba; }

.text-button {
  display: block;
  margin: 14px auto 22px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.privacy-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  margin-top: 29px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  background: rgba(3, 11, 8, 0.28);
}

.privacy-strip p {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.01em;
}

.privacy-strip strong { color: var(--muted); font-weight: 600; }
.shield { color: var(--mint); font-size: 8px; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: #50625b;
  font: 500 9px/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  padding: 12px 16px;
  border: 1px solid rgba(124, 241, 189, 0.28);
  border-radius: 10px;
  color: var(--mint-bright);
  background: #13251f;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
}

[hidden] { display: none !important; }

@media (max-width: 940px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 58px;
  }

  .intro { max-width: 680px; }
  .lede { max-width: 580px; }

  .trust-list {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    gap: 18px;
    border-top: 0;
  }

  .trust-item {
    display: block;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
  }

  .trust-icon { margin-bottom: 12px; }

  .generator-card {
    width: min(100%, 580px);
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .site-header, .page-shell, footer {
    width: min(100% - 30px, 580px);
  }

  .site-header { min-height: 72px; }

  .local-pill {
    padding: 8px 10px;
    font-size: 9px;
  }

  .page-shell {
    gap: 42px;
    padding-block: 45px 64px;
  }

  h1 { font-size: clamp(44px, 14vw, 60px); }
  .lede { font-size: 15px; }

  .trust-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .trust-item { display: grid; }

  .card-topline, .stepper, .panel, .notice { margin-inline: 20px; }
  .card-topline { padding-top: 24px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .result-actions { grid-template-columns: 1fr; }
  .secondary-button { width: 100%; }

  footer {
    gap: 10px;
    font-size: 8px;
  }
}

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