:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #071631;
  --muted: #66728a;
  --line: #dfe5ef;
  --gold: #d49435;
  --gold-dark: #b7771f;
  --blue: #1d5fd1;
  --blue-soft: #e9f1ff;
  --green: #138a62;
  --red: #be3d36;
  --shadow: 0 22px 70px rgba(7, 22, 49, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(212, 148, 53, 0.12), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
}

.auth-copy h1 {
  max-width: 640px;
  margin: 36px 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
  color: var(--ink);
}

.auth-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.auth-point span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0;
  font-size: 28px;
}

.auth-card > p {
  margin: 8px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 14px;
  font-weight: 800;
}

.form-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.form-field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 148, 53, 0.16);
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  background: var(--gold);
  color: #fff;
  font-weight: 900;
}

.primary-button:hover {
  background: var(--gold-dark);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-message {
  min-height: 22px;
  margin: 8px 0 14px;
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
}

.form-message.ok {
  color: var(--green);
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.home-shell {
  min-height: 100vh;
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-weight: 800;
}

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

.user-pill {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.ghost-button,
.small-cta {
  min-height: 38px;
  border-radius: 9px;
  padding: 0 14px;
  font-weight: 900;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.small-cta {
  background: var(--gold);
  color: #fff;
}

.home-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-copy {
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-cta,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 10px;
  padding: 0 22px;
  font-weight: 900;
  text-decoration: none;
}

.hero-cta {
  background: var(--gold);
  color: #fff;
}

.hero-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.summary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid #bfd3f7;
  border-radius: 10px;
  background: #eef5ff;
  color: #1554a9;
  font-weight: 900;
}

.hero-search {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(7, 22, 49, 0.08);
}

.hero-search label {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 900;
}

.market-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: #f7f8fb;
}

.market-toggle button {
  min-width: 88px;
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.market-toggle button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(7, 22, 49, 0.08);
}

.home-options {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.home-options label {
  margin: 0;
}

.home-options select {
  width: 180px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  outline: none;
}

.home-search-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-search-row input {
  grid-column: 1 / -1;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.home-search-row input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 148, 53, 0.14);
}

.home-search-message {
  min-height: 22px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.home-search-message.error {
  color: var(--red);
}

.quick-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-companies button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.trust-row a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.dashboard-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: #f7f9fc;
  box-shadow: var(--shadow);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.dot:nth-child(2) {
  background: #ffbd2e;
}

.dot:nth-child(3) {
  background: #28c840;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.preview-card.wide {
  grid-column: span 2;
}

.preview-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.preview-card small {
  color: var(--green);
  font-weight: 900;
}

.bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 120px;
  margin-top: 18px;
}

.bars i {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #4f8df7, #1d5fd1);
}

.score-ring {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 18px auto 0;
  border: 14px solid #dff3ed;
  border-top-color: var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.section {
  margin-top: 52px;
}

.section h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: #fff;
}

.info-card b {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
}

.step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff7eb;
  color: var(--gold-dark);
  font-size: 20px;
  font-weight: 900;
}

.step b,
.step p {
  margin: 0;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 52px 0 34px;
  border: 1px solid rgba(212, 148, 53, 0.5);
  border-radius: 16px;
  padding: 28px;
  background: linear-gradient(135deg, #fff9ef, #fff);
}

.bottom-cta h2,
.bottom-cta p {
  margin: 0;
  text-align: left;
}

.bottom-cta p {
  margin-top: 8px;
  color: var(--muted);
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .auth-shell,
  .hero,
  .card-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    gap: 28px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    gap: 32px;
  }

  .bottom-cta,
  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .auth-shell,
  .home-main {
    width: min(100% - 32px, 1180px);
  }

  .auth-card {
    padding: 22px;
  }

  .home-nav {
    padding: 0 16px;
  }

  .user-pill {
    display: none;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card.wide {
    grid-column: auto;
  }

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