@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: rgba(19, 19, 19, .92);
  --white: #f5f5f5;
  --silver: #a9a9a9;
  --muted: #777;
  --border: #292929;
  --success: #c8c8c8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .10;
  pointer-events: none;
}

.ambient-one { background: #aaa; top: -160px; left: -100px; }
.ambient-two { background: #777; bottom: -180px; right: -100px; }

.app {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 660px);
  margin: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 0;
  border-bottom: 1px solid #202020;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font: 700 14px "Space Grotesk", sans-serif;
  letter-spacing: 1.5px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: #080808;
  background: linear-gradient(145deg, #fff, #8d8d8d);
  border-radius: 9px;
  font-size: 20px;
}

.muted { color: #858585; }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 9px;
  letter-spacing: 1px;
}

.status i {
  width: 6px;
  height: 6px;
  background: #ddd;
  border-radius: 50%;
  box-shadow: 0 0 10px #aaa;
}

.panel {
  margin: auto 0;
  padding: 34px 0 45px;
}

.eyebrow, .step-label {
  color: #999;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

h1 {
  margin: 16px 0 9px;
  font: 700 clamp(28px, 6vw, 42px) "Space Grotesk", sans-serif;
  letter-spacing: -1.8px;
  line-height: 1.15;
}

h1 span { color: #858585; }

.subtitle, .description {
  color: #929292;
  font-size: 13px;
  line-height: 1.8;
}

.progress { margin: 32px 0 38px; }

.progress-line {
  height: 2px;
  background: #292929;
  margin-bottom: 15px;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 0;
  background: #eee;
  transition: width .35s ease;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #606060;
}

.step span {
  font: 600 13px "Space Grotesk", sans-serif;
}

.step small { font-size: 10px; }

.step.active, .step.done { color: #f5f5f5; }

.step.done span {
  color: #aaa;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: enter .32s ease both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  margin: 13px 0 5px;
  font: 600 25px "Space Grotesk", sans-serif;
}

.description { margin: 0 0 25px; }

label {
  display: block;
  margin-bottom: 10px;
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

input, textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #303030;
  border-radius: 10px;
  outline: none;
  background: #101010;
  color: white;
  font: 13px Inter, sans-serif;
  transition: border .2s, box-shadow .2s;
}

textarea {
  resize: vertical;
  min-height: 110px;
  overflow-wrap: anywhere;
}

input:focus, textarea:focus {
  border-color: #a5a5a5;
  box-shadow: 0 0 0 3px #ffffff0a;
}

input::placeholder, textarea::placeholder { color: #626262; }

.info, .email-preview, .result-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-top: 17px;
  border: 1px solid #292929;
  border-radius: 10px;
  background: #ffffff04;
  color: #aaa;
  font-size: 11px;
  line-height: 1.7;
}

.info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  height: 20px;
  border: 1px solid #555;
  border-radius: 50%;
}

.email-preview { margin: 22px 0; }

.preview-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #252525;
  border-radius: 9px;
  color: white;
  font-size: 20px;
}

.email-preview div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.email-preview small {
  color: #777;
  font-size: 9px;
  letter-spacing: 1px;
}

.email-preview strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

button {
  width: 100%;
  min-height: 49px;
  padding: 13px 16px;
  border-radius: 9px;
  font: 600 12px Inter, sans-serif;
  cursor: pointer;
  transition: transform .2s, background .2s, opacity .2s;
}

button:active { transform: scale(.985); }
button:disabled { opacity: .55; cursor: wait; }

.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  border: 1px solid #fff;
  background: linear-gradient(120deg, #f4f4f4, #b7b7b7);
  color: #080808;
}

.primary:hover { background: white; }

.primary span:last-child { font-size: 17px; }

.secondary {
  margin-top: 10px;
  border: 1px solid #303030;
  background: transparent;
  color: #aaa;
}

.secondary:hover { background: #ffffff09; }

.footnote {
  margin: 13px 0;
  color: #737373;
  font-size: 10px;
  line-height: 1.7;
}

.notice {
  padding: 13px 15px;
  margin: -17px 0 24px;
  border: 1px solid #484848;
  border-radius: 9px;
  color: #e0e0e0;
  background: #ffffff08;
  font-size: 12px;
  line-height: 1.6;
}

.notice.error {
  border-color: #744848;
  color: #ffbcbc;
  background: #ff000009;
}

.notice[hidden] { display: none; }

.complete-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 24px 0 20px;
  border: 1px solid #888;
  border-radius: 18px;
  background: linear-gradient(145deg, #eee, #999);
  color: #080808;
  font-size: 28px;
}

.result-box {
  align-items: center;
  justify-content: space-between;
}

.result-box span {
  color: #888;
  font-size: 10px;
  letter-spacing: 1px;
}

.result-box strong {
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: right;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid #202020;
  color: #656565;
  font-size: 9px;
  letter-spacing: 1px;
}

@media (max-width: 430px) {
  .app { width: calc(100% - 30px); }
  .topbar { padding: 21px 0; }
  .status { font-size: 8px; }
  .panel { padding-top: 30px; }
  .progress { margin: 27px 0 32px; }
  .step small { font-size: 9px; }
  h2 { font-size: 23px; }
  footer { font-size: 8px; }
}
