:root {
  --bg: #101116;
  --panel: #17181f;
  --panel-2: #1e1f27;
  --line: #30313a;
  --line-soft: rgba(255,255,255,.07);
  --text: #f5f7fb;
  --muted: #9ca3b7;
  --muted-2: #7d8497;
  --accent: #ffffff;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.035), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.025), transparent 22%);
  pointer-events: none;
}

.app-shell {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(16,17,22,.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #15161d;
  background: #f4f5f8;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}

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

.pill-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.pill-link:hover,
.secondary-button:hover,
.main-button:hover {
  transform: translateY(-1px);
}

.pill-link.primary {
  background: #f6f7fb;
  color: #111218;
  border-color: #f6f7fb;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 42px 18px;
}

.dotted-panel {
  margin: 22px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: #171820;
  background-image: radial-gradient(rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.signup-card,
.content-card {
  width: min(100%, 390px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(26,27,34,.94);
  box-shadow: var(--shadow);
  padding: 20px;
}

.content-card {
  width: min(100%, 720px);
  padding: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(32px, 7vw, 56px);
  line-height: .98;
  letter-spacing: -.06em;
}

.signup-card h1 { font-size: clamp(34px, 8vw, 48px); }

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.signup-form {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: #12131a;
  color: var(--text);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.main-button,
.secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}

.main-button {
  width: 100%;
  margin-top: 8px;
  border: 0;
  background: #f6f7fb;
  color: #111218;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.link-button { width: auto; padding: 0 18px; }

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 0 16px;
}

.card-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signup-card .card-actions .secondary-button { flex: 1; }

.fine-print {
  margin: 16px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.4;
}

.page-content { align-content: center; }

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 0 16px;
}

summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 750;
}

details p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.thanks-card {
  text-align: center;
}

.thanks-card .card-actions { justify-content: center; }

.success-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: #111218;
  background: #f6f7fb;
  font-size: 28px;
  font-weight: 900;
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .nav-actions { gap: 6px; }
  .pill-link { padding: 8px 10px; font-size: 13px; }
  .dotted-panel { margin: 12px 8px 8px; border-radius: 22px; }
  .hero { padding: 28px 12px; }
  .content-card, .signup-card { padding: 20px; }
  .card-actions { flex-direction: column; }
  .link-button, .secondary-button { width: 100%; }
}

/* Final handoff tweaks */
html,
body {
  height: 100%;
  overflow: hidden;
}

.app-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.brand-icon {
  overflow: hidden;
  background: #0c0d10;
  box-shadow: none;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero {
  min-height: 0;
  height: calc(100dvh - 64px - 34px);
  padding: 18px;
}

.dotted-panel {
  margin: 22px 12px 12px;
}

.signup-card {
  max-height: calc(100dvh - 64px - 72px);
}

@media (max-height: 760px) {
  .signup-card { padding: 16px; }
  .lead { margin-top: 10px; font-size: 14px; }
  .signup-form { margin-top: 16px; gap: 8px; }
  input { padding: 11px 13px; }
  .main-button, .secondary-button { min-height: 40px; }
  .fine-print { margin-top: 10px; }
}
