:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #667085;
  --line: rgba(20, 32, 51, 0.12);
  --paper: #f8f3eb;
  --surface: rgba(255, 255, 255, 0.82);
  --gold: #b88935;
  --gold-dark: #7a551d;
  --teal: #0f766e;
  --shadow: 0 28px 90px rgba(23, 31, 45, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 137, 53, 0.2), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(15, 118, 110, 0.13), transparent 25%),
    var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
}

.hero {
  min-height: 680px;
  padding: 28px clamp(20px, 5vw, 72px) 72px;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.14);
  height: 38px;
  width: 38px;
}

.topbar-actions {
  display: flex;
  gap: 18px;
}

.topbar-actions a {
  color: #475467;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  margin: 92px auto 0;
  max-width: 1180px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  letter-spacing: -0.075em;
  line-height: 0.94;
  margin: 0;
  max-width: 820px;
}

.hero-copy p {
  color: #4f5f72;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.75;
  margin: 28px 0 0;
  max-width: 680px;
}

.hero-actions,
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  box-shadow: 0 16px 30px rgba(20, 32, 51, 0.18);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.text {
  background: transparent;
  color: #667085;
  padding-inline: 8px;
}

.button.full {
  width: 100%;
}

.signal-card {
  background:
    linear-gradient(135deg, rgba(20, 32, 51, 0.96), rgba(28, 53, 67, 0.94)),
    #142033;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  box-shadow: var(--shadow);
  color: white;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.signal-card::after {
  background: radial-gradient(circle, rgba(184, 137, 53, 0.3), transparent 58%);
  content: "";
  height: 260px;
  position: absolute;
  right: -120px;
  top: -120px;
  width: 260px;
}

.signal-card-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.signal-card-header span {
  color: #f1d28e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signal-card-header strong {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #f8d98a;
  font-size: 0.78rem;
  padding: 8px 12px;
}

.signal-card-header strong.active {
  color: #8ff0c6;
}

.signal-card-header strong.pending {
  color: #f8d98a;
}

.signal-steps {
  display: grid;
  gap: 14px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.signal-steps div {
  align-items: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  gap: 14px;
  padding: 18px;
}

.signal-steps span {
  color: #f1d28e;
  font-size: 0.76rem;
  font-weight: 850;
}

.signal-steps p {
  margin: 0;
}

.account-panel {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(20, 32, 51, 0.08);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.72fr);
  margin: 0 auto 28px;
  max-width: 1180px;
  padding: clamp(24px, 4vw, 42px);
}

.panel-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0;
}

.panel-copy p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
}

.panel-copy .support-note {
  color: #344054;
  font-weight: 700;
  margin-top: 18px;
}

.support-note a {
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.auth-card,
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(20, 32, 51, 0.08);
  padding: 22px;
}

.auth-tabs {
  background: rgba(20, 32, 51, 0.06);
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 4px;
}

.tab {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #667085;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  padding: 11px 14px;
}

.tab.active {
  background: white;
  box-shadow: 0 8px 20px rgba(20, 32, 51, 0.08);
  color: var(--ink);
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  color: #344054;
  display: grid;
  font-size: 0.9rem;
  font-weight: 760;
  gap: 8px;
}

input {
  background: white;
  border: 1px solid rgba(20, 32, 51, 0.16);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

input:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  outline: none;
}

.form-message {
  color: var(--gold-dark);
  font-size: 0.9rem;
  line-height: 1.55;
  min-height: 1.4em;
}

.dashboard-card {
  display: grid;
  gap: 18px;
}

.section-label {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.dashboard-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  margin: 0;
}

#account-email {
  color: var(--muted);
  margin: 8px 0 0;
}

.access-box {
  background: #f7f3eb;
  border: 1px solid rgba(184, 137, 53, 0.26);
  border-radius: 20px;
  padding: 18px;
}

.access-box span {
  display: block;
  font-weight: 850;
}

.access-box p {
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .topbar,
  .topbar-actions,
  .hero-actions,
  .dashboard-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .account-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    margin-top: 64px;
  }

  .button {
    width: 100%;
  }
}
