:root {
  --sbb-bg: #f4f7fc;
  --sbb-surface: #ffffff;
  --sbb-surface-soft: #f8fbff;
  --sbb-line: #dbe5f4;
  --sbb-text: #16233f;
  --sbb-muted: #657491;
  --sbb-primary: #3167eb;
  --sbb-primary-dark: #214dbd;
  --sbb-primary-soft: #eaf0ff;
  --sbb-success: #16925a;
  --sbb-shadow: 0 18px 40px rgba(23, 35, 63, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--sbb-bg);
  color: var(--sbb-text);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  line-height: 1.5;
}

.page-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(244, 247, 252, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 229, 244, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 50px;
  width: auto;
}

.topbar-links,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--sbb-muted);
  font-weight: 600;
}

.nav-link:hover {
  color: var(--sbb-primary);
}

.button,
.button-ghost,
.button-outline {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

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

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--sbb-primary) 0%, #4b7bff 100%);
  box-shadow: 0 16px 30px rgba(49, 103, 235, 0.22);
}

.button-outline {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--sbb-line);
  color: var(--sbb-text);
}

.button-ghost {
  min-height: 42px;
  padding: 0 16px;
  background: transparent;
  color: var(--sbb-muted);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 30px 0 18px;
}

.hero-card,
.surface-card,
.auth-card {
  background: var(--sbb-surface);
  border: 1px solid var(--sbb-line);
  border-radius: 30px;
  box-shadow: var(--sbb-shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background:
    radial-gradient(circle at top right, rgba(49, 103, 235, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -48px -92px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(49, 103, 235, 0.08);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--sbb-primary-soft);
  color: var(--sbb-primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: .96;
  letter-spacing: -0.04em;
  color: #11203f;
}

.hero p {
  margin: 0;
  color: var(--sbb-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sbb-line);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sbb-muted);
}

.stat-value {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 900;
  color: var(--sbb-text);
}

.stat-note {
  display: block;
  margin-top: 10px;
  color: var(--sbb-muted);
  font-size: 14px;
}

.mock-shell {
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #13213f 0%, #1b315f 100%);
  box-shadow: 0 26px 50px rgba(13, 23, 46, 0.24);
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.mock-board {
  display: grid;
  gap: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf3ff 100%);
  padding: 16px;
}

.mock-card {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #dbe5f4;
}

.mock-card h3,
.mock-card p {
  margin: 0;
}

.mock-card h3 {
  font-size: 14px;
  color: #7a88a7;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mock-card p {
  margin-top: 12px;
  font-size: 1.8rem;
  font-weight: 900;
  color: #11203f;
}

.surface-card {
  margin-top: 18px;
  padding: 28px;
}

.surface-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.surface-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 900;
  color: #11203f;
}

.surface-copy {
  margin: 10px 0 0;
  color: var(--sbb-muted);
}

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

.feature-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--sbb-line);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--sbb-primary-soft);
  color: var(--sbb-primary-dark);
  font-size: 26px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--sbb-muted);
}

.steps-grid {
  margin-top: 10px;
}

.step-card {
  position: relative;
  padding: 22px 22px 22px 66px;
  border-radius: 24px;
  border: 1px solid var(--sbb-line);
  background: #fff;
}

.step-index {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sbb-primary);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-card h3,
.step-card p {
  margin: 0;
}

.step-card p {
  margin-top: 10px;
  color: var(--sbb-muted);
}

.footer-note {
  margin: 28px auto 48px;
  text-align: center;
  color: var(--sbb-muted);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.auth-aside {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(49, 103, 235, 0.18), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  border-right: 1px solid var(--sbb-line);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-brand img {
  height: 54px;
  width: auto;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.auth-panel-inner {
  width: min(100%, 460px);
}

.auth-card {
  padding: 30px;
}

.auth-title {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
  color: #11203f;
}

.auth-copy {
  margin: 12px 0 0;
  color: var(--sbb-muted);
}

.auth-form {
  margin-top: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sbb-muted);
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--sbb-line);
  background: #fff;
  color: var(--sbb-text);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: rgba(49, 103, 235, 0.54);
  box-shadow: 0 0 0 4px rgba(49, 103, 235, 0.09);
}

.helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--sbb-muted);
  font-size: 14px;
}

.helper-row a {
  color: var(--sbb-primary);
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--sbb-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sbb-line);
}

.legal-copy {
  margin-top: 14px;
  color: var(--sbb-muted);
  font-size: 13px;
}

.auth-links {
  margin-top: 22px;
  text-align: center;
  color: var(--sbb-muted);
}

.auth-links a {
  color: var(--sbb-primary);
  font-weight: 700;
}

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

  .auth-aside {
    padding: 24px 20px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--sbb-line);
  }

  .auth-panel {
    padding: 20px;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .topbar-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .section {
    width: min(100%, calc(100% - 24px));
  }

  .hero-card,
  .surface-card,
  .auth-card {
    border-radius: 24px;
  }

  .hero-card,
  .surface-card,
  .auth-card,
  .feature-card,
  .step-card {
    padding: 22px;
  }

  .hero-actions,
  .topbar-actions {
    width: 100%;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .hero-actions .button,
  .hero-actions .button-outline,
  .stack .button,
  .stack .button-outline {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: 1.9rem;
  }
}
