:root {
  --ink: #17211c;
  --muted: #5f6d65;
  --line: rgba(255, 255, 255, 0.58);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --field: rgba(255, 255, 255, 0.68);
  --green: #176c49;
  --green-dark: #0f5539;
  --coral: #e77359;
  --yellow: #f1c552;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #dce8e1;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { position: relative; min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: #dce8e1; }
body::before,
body::after { content: ""; position: fixed; z-index: -1; transform: rotate(-12deg); }
body::before { width: 52vw; height: 54vh; top: -17vh; left: -8vw; background: #7cbea0; }
body::after { width: 42vw; height: 48vh; right: -9vw; bottom: -14vh; background: #efb46c; }
button, input { font: inherit; letter-spacing: 0; }

.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 24px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 0 4px; }
.mark { width: 46px; height: 46px; display: flex; align-items: end; justify-content: center; gap: 4px; padding: 10px; background: rgba(23, 33, 28, 0.9); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; box-shadow: 0 8px 22px rgba(23, 33, 28, .16); backdrop-filter: blur(14px); }
.mark span { width: 6px; display: block; border-radius: 1px 1px 0 0; }
.mark span:nth-child(1) { height: 12px; background: var(--yellow); }
.mark span:nth-child(2) { height: 25px; background: #71d09b; }
.mark span:nth-child(3) { height: 18px; background: var(--coral); }
.eyebrow { margin: 0 0 2px; color: var(--green); font-size: 11px; font-weight: 800; }
h1 { margin: 0; font-size: 22px; line-height: 1.1; }
.status { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 8px 11px; color: #415149; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.58); border-radius: 999px; box-shadow: 0 8px 24px rgba(36, 59, 47, .08); backdrop-filter: blur(18px); font-size: 12px; }
.status i { width: 8px; height: 8px; background: #2f9e60; border-radius: 50%; box-shadow: 0 0 0 3px rgba(47,158,96,.16); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); min-height: 610px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 26px 70px rgba(31, 59, 45, .18), inset 0 1px 0 rgba(255,255,255,.7); backdrop-filter: blur(28px) saturate(135%); -webkit-backdrop-filter: blur(28px) saturate(135%); }
.intro { position: relative; overflow: hidden; display: flex; flex-direction: column; margin: 12px 0 12px 12px; padding: 58px; color: white; background: rgba(20, 35, 28, .87); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(20px); }
.intro::after { content: ""; position: absolute; right: -90px; bottom: -88px; width: 286px; height: 286px; border: 54px solid rgba(241, 197, 82, .84); border-radius: 50%; }
.intro::before { content: ""; position: absolute; right: 56px; bottom: 132px; width: 84px; height: 84px; background: rgba(231, 115, 89, .9); transform: rotate(18deg); }
.kicker { margin: 0 0 16px; color: #8ad5ac; font-size: 13px; font-weight: 800; }
.intro h2 { max-width: 430px; margin: 0; font-size: clamp(40px, 5.4vw, 66px); line-height: 1.03; font-weight: 750; }
.intro > p:not(.kicker) { max-width: 440px; margin: 24px 0 0; color: #c0cbc5; font-size: 15px; line-height: 1.75; }
.metric { position: relative; z-index: 1; margin-top: auto; padding-top: 74px; }
.metric span { display: block; font-size: clamp(46px, 6.4vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.metric small { display: block; margin-top: 10px; color: #8ad5ac; font-size: 12px; font-weight: 800; }

form { width: 100%; max-width: 480px; padding: 58px 50px; align-self: center; justify-self: center; }
label { display: block; margin: 0 0 9px; font-size: 13px; font-weight: 720; }
input[type="text"], input[type="password"], input[type="number"] { color: var(--ink); background: var(--field); border: 1px solid rgba(255,255,255,.72); border-radius: 13px; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 18px rgba(46, 75, 60, .06); transition: border-color .18s, box-shadow .18s, background .18s; backdrop-filter: blur(12px); }
input[type="text"], input[type="password"] { width: 100%; height: 50px; margin-bottom: 24px; padding: 0 14px; }
input[type="text"]::placeholder, input[type="password"]::placeholder { color: #7d8982; }
input:focus { background: rgba(255,255,255,.82); border-color: rgba(23,108,73,.55); box-shadow: 0 0 0 3px rgba(23,108,73,.12), 0 10px 24px rgba(46,75,60,.08); }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.icon-button { position: absolute; top: 8px; right: 7px; height: 34px; padding: 0 9px; color: var(--green); background: rgba(255,255,255,.35); border: 0; border-radius: 9px; font-size: 12px; font-weight: 750; cursor: pointer; }
.step-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.step-heading > label { margin: 0; }
.step-input-wrap { position: relative; width: 142px; flex: 0 0 142px; }
.step-input-wrap input { width: 100%; height: 44px; padding: 0 38px 0 12px; color: var(--green); font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }
.step-input-wrap span { position: absolute; top: 50%; right: 12px; color: var(--muted); font-size: 12px; transform: translateY(-50%); pointer-events: none; }
.step-input-wrap input::-webkit-inner-spin-button { opacity: .55; }
input[type="range"] { width: 100%; height: 6px; margin: 18px 0 0; accent-color: var(--green); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 11px; }
.cap-wrap { margin-top: 25px; }
.captcha { position: relative; width: 100%; height: 58px; overflow: hidden; color: var(--ink); background: rgba(255,255,255,.54); border: 1px solid rgba(255,255,255,.74); border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(46,75,60,.06); user-select: none; backdrop-filter: blur(14px); }
.cap-ct { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; padding: 12px 15px; cursor: pointer; }
.cap-ct:focus-visible { outline: 3px solid rgba(23,108,73,.25); outline-offset: -3px; }
.cap-cb { position: relative; display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; background: rgba(255,255,255,.58); border: 1px solid rgba(95,109,101,.48); border-radius: 8px; }
.cap-lw { position: relative; flex: 1; height: 24px; overflow: hidden; }
.cap-label { position: absolute; top: 2px; left: 0; font-size: 14px; font-weight: 650; transition: opacity .2s, transform .2s; }
.cap-ring { display: none; width: 28px; height: 28px; transform: rotate(-90deg); }
.cap-ring-bg { fill: none; stroke: rgba(23,33,28,.12); stroke-width: 3; }
.cap-ring-fg { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 87.96; stroke-dashoffset: 87.96; transition: stroke-dashoffset .2s; }
.cap-check { display: none; color: white; font-size: 18px; font-weight: 800; line-height: 1; }
.cap-ct.cap-go .cap-cb { background: transparent; border-color: transparent; border-radius: 50%; }
.cap-ct.cap-go .cap-ring { display: block; }
.cap-ct.cap-ok .cap-cb { background: var(--green); border-color: var(--green); }
.cap-ct.cap-ok .cap-check { display: block; }
.cap-ct.cap-bad .cap-cb { background: #b94135; border-color: #b94135; }
.cap-brand { position: absolute; right: 13px; bottom: 7px; color: rgba(95,109,101,.72); font-size: 9px; font-weight: 800; pointer-events: none; }
.primary { width: 100%; height: 52px; margin-top: 18px; color: white; background: rgba(20, 105, 69, .94); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; box-shadow: 0 12px 26px rgba(17, 83, 55, .22), inset 0 1px 0 rgba(255,255,255,.18); font-weight: 750; cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s; }
.primary:hover { background: var(--green-dark); box-shadow: 0 14px 30px rgba(17,83,55,.28); }
.primary:active { transform: translateY(1px); }
.primary:disabled { cursor: wait; opacity: .78; }
.spinner { display: none; width: 16px; height: 16px; margin: 0 auto; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
.primary.loading .button-label { display: none; }
.primary.loading .spinner { display: block; }
.result { min-height: 42px; margin: 17px 0 0; padding: 0 2px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.result.success { color: var(--green); }
.result.error { color: #a9392d; }
footer { padding: 17px 0 0; color: #58665e; font-size: 12px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  body::before { width: 82vw; height: 34vh; left: -20vw; }
  body::after { width: 76vw; height: 32vh; right: -24vw; }
  .shell { width: min(100% - 20px, 590px); padding-top: 20px; }
  .brand { margin-bottom: 14px; }
  .workspace { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .intro { min-height: 344px; margin: 8px 8px 0; padding: 36px 30px; }
  .intro h2 { max-width: 360px; font-size: clamp(36px, 10vw, 44px); }
  .intro > p:not(.kicker) { max-width: 340px; margin-top: 18px; font-size: 14px; line-height: 1.65; }
  .metric { padding-top: 34px; }
  .metric span { font-size: clamp(44px, 13vw, 58px); }
  .intro::after { width: 190px; height: 190px; right: -70px; bottom: -70px; border-width: 38px; }
  .intro::before { width: 60px; height: 60px; right: 25px; bottom: 80px; }
  form { max-width: none; padding: 38px 28px 30px; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 14px); padding-top: 14px; }
  .mark { width: 42px; height: 42px; }
  h1 { font-size: 19px; }
  .status { padding: 7px 9px; font-size: 11px; }
  .workspace { border-radius: 20px; }
  .intro { min-height: 320px; padding: 30px 22px; border-radius: 14px; }
  .intro h2 { font-size: 36px; }
  .intro > p:not(.kicker) { padding-right: 8px; }
  .metric { padding-top: 28px; }
  .metric span { font-size: 44px; }
  form { padding: 34px 20px 26px; }
  input[type="text"], input[type="password"] { margin-bottom: 21px; }
  .primary { margin-top: 18px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .workspace, .status { background: rgba(255,255,255,.9); }
}

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