:root {
  --bg: #0a1a10;
  --bg-elevated: #16161a;
  --bg-card: #1c1c22;
  --text: #e8e6e3;
  --text-muted: #8a8a8e;
  --text-dim: #5a5a5e;
  --accent: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --border: rgba(255, 255, 255, 0.08);
  --radius-card: 16px;
  --radius-utility: 8px;
  --radius-badge: 7px;
  --shadow-card: 0 20px 44px rgba(0, 0, 0, 0.34);
  --ease-premium: cubic-bezier(0.2, 0.75, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 82% 52% at 20% 0%, rgba(74, 222, 128, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(74, 222, 128, 0.035) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='12' cy='18' r='1'/%3E%3Ccircle cx='62' cy='36' r='1'/%3E%3Ccircle cx='122' cy='14' r='1'/%3E%3Ccircle cx='156' cy='52' r='1'/%3E%3Ccircle cx='26' cy='84' r='1'/%3E%3Ccircle cx='82' cy='98' r='1'/%3E%3Ccircle cx='144' cy='92' r='1'/%3E%3Ccircle cx='46' cy='146' r='1'/%3E%3Ccircle cx='110' cy='154' r='1'/%3E%3Ccircle cx='168' cy='138' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.024;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #78ef9f;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 30;
  width: min(1160px, calc(100% - 2.5rem));
  margin: 1rem auto 0;
  padding: 0.75rem 0.95rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-utility);
  background: rgba(15, 15, 20, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.brand {
  color: var(--accent);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand span {
  display: inline-block;
  color: var(--text);
  transform-origin: center;
}

.brand:hover span {
  animation: logoDotPulse 1.2s ease-in-out infinite;
}

@keyframes logoDotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.72;
  }
}

.back-link {
  color: #0f1112;
  background: rgba(247, 247, 248, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-utility);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.62rem 1rem;
  transition: transform 200ms var(--ease-premium), box-shadow 200ms var(--ease-premium), filter 200ms ease;
}

.back-link:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.4);
  filter: brightness(1.03);
  color: #0f1112;
}

.back-link:active {
  transform: scale(0.98);
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: grid;
  gap: 14px;
}

.hero,
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hero {
  padding: clamp(20px, 3.2vw, 30px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 10px;
  color: rgba(232, 230, 227, 0.9);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(74, 222, 128, 0.22);
  border-radius: var(--radius-badge);
  padding: 0.42rem 0.72rem;
}

.badge::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: rgba(232, 230, 227, 0.7);
}

.meta {
  margin-top: 12px;
  color: var(--text-dim);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
}

.card {
  padding: clamp(16px, 2.4vw, 22px);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.25;
}

p {
  margin: 0 0 10px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

code {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.94em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 6px;
}

.notice {
  border-left: 3px solid var(--accent);
  background: rgba(74, 222, 128, 0.08);
  padding: 12px;
  border-radius: 10px;
}

.warning {
  border-left-color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
}

.table {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 12px;
}

.label {
  font-family: "DM Mono", ui-monospace, monospace;
  color: var(--text-muted);
}

.value {
  color: var(--text);
}

.footer {
  margin-top: 4px;
  padding-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
}

.cta-grid {
  display: grid;
  gap: 10px;
}

.cta {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 200ms var(--ease-premium), border-color 200ms ease, box-shadow 200ms ease;
}

.cta a {
  display: block;
  padding: 12px;
  color: rgba(232, 230, 227, 0.94);
  font-weight: 600;
}

.cta:hover {
  transform: translate3d(0, -1px, 0);
  border-color: rgba(74, 222, 128, 0.34);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.form-shell {
  display: grid;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.field-label {
  font-family: "DM Mono", ui-monospace, monospace;
  color: var(--text-muted);
  font-size: 13px;
}

.field-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 15, 0.82);
  color: var(--text);
  border-radius: var(--radius-utility);
  min-height: 46px;
  padding: 0 14px;
  font: inherit;
}

.field-input::placeholder {
  color: var(--text-dim);
}

.field-input:focus-visible,
.consent-checkbox:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.76);
  outline-offset: 2px;
}

.field-help {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.consent-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.submit-btn {
  min-height: 42px;
  width: fit-content;
  border-radius: var(--radius-utility);
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(247, 247, 248, 0.98);
  color: #101113;
  font-size: 14px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
  transition: transform 200ms var(--ease-premium), box-shadow 200ms var(--ease-premium), filter 200ms ease;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.4);
  filter: brightness(1.03);
}

.submit-btn:active {
  transform: scale(0.98);
}

.screenshot-preview {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

@media (max-width: 760px) {
  .topbar {
    top: 0.65rem;
    width: calc(100% - 1.4rem);
    padding: 0.66rem 0.74rem 0.66rem 0.8rem;
  }

  .brand {
    font-size: 1.35rem;
  }

  .back-link {
    padding: 0.58rem 0.85rem;
    font-size: 0.84rem;
  }

  .wrap {
    width: calc(100% - 1.4rem);
    padding: 20px 0 58px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    width: 100%;
  }
}
