:root {
  color-scheme: light;
  --bg: #edf3fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #f4f7fd;
  --border: rgba(57, 80, 129, 0.12);
  --text: #1b2844;
  --text-muted: #637494;
  --accent: #3d63dd;
  --accent-soft: rgba(61, 99, 221, 0.12);
  --accent-strong: #2f53cc;
  --shadow: 0 28px 90px rgba(48, 70, 115, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at top left, rgba(90, 118, 215, 0.18), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(126, 162, 255, 0.2), transparent 24%),
    linear-gradient(180deg, #f6f9ff 0%, #ebf1fa 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.background-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 65, 122, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 65, 122, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.84), transparent 88%);
}

.site-header,
.marketing-main,
.login-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent), #8aa2ff);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong,
.hero-copy h1,
.spotlight-card h2,
.feature-card h3,
.workflow-step h3,
.login-card h1 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
}

.brand-copy span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.site-nav a:not(.primary-button):not(.ghost-button) {
  color: var(--text-muted);
  font-weight: 700;
}

.primary-button,
.ghost-button,
.danger-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.86rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.primary-button {
  background: linear-gradient(135deg, var(--accent), #7e95f4);
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(61, 99, 221, 0.22);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  color: var(--text);
}

.danger-button {
  background: rgba(217, 71, 102, 0.1);
  border-color: rgba(217, 71, 102, 0.24);
  color: #b73755;
}

.block-button {
  width: 100%;
}

.text-link {
  padding: 0;
  border: 0;
  min-height: auto;
  color: var(--accent);
  justify-content: flex-start;
}

.marketing-main {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  display: grid;
  gap: 1.25rem;
}

.hero-panel,
.workflow-panel,
.feature-card,
.login-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 1.5rem;
  padding: 1.75rem;
}

.eyebrow,
.spotlight-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.login-card h1 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.94;
}

.hero-copy p,
.spotlight-card p,
.feature-card p,
.workflow-step p,
.hero-note,
.login-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.hero-card-stack {
  display: grid;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.65), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 240, 251, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 99, 221, 0.14), transparent 68%);
}

.spotlight-card h2 {
  margin: 0;
  font-size: 1.78rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.spotlight-grid div {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
}

.spotlight-grid strong {
  display: block;
  margin-bottom: 0.18rem;
}

.spotlight-grid span {
  color: var(--text-muted);
  line-height: 1.55;
}

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

.feature-card {
  padding: 1.35rem;
}

.feature-card h3,
.workflow-step h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.18rem;
}

.feature-icon,
.workflow-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.workflow-panel {
  padding: 1.5rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.workflow-step {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.login-card {
  width: min(540px, 100%);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.login-form,
.field {
  display: grid;
  gap: 0.75rem;
}

.field span {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.inline-feedback {
  min-height: 1.2rem;
  color: var(--text-muted);
}

.inline-feedback.error {
  color: #b73755;
}

.inline-feedback.success {
  color: #217458;
}

@media (max-width: 980px) {
  .site-header,
  .marketing-main {
    width: min(100%, calc(100% - 1rem));
  }

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

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .marketing-main {
    width: 100%;
  }

  .site-header {
    padding-inline: 0.75rem;
  }

  .marketing-main {
    padding-inline: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-panel,
  .workflow-panel,
  .feature-card,
  .login-card {
    border-radius: 22px;
  }

  .hero-panel {
    padding: 1.2rem;
  }

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

  .login-shell {
    padding: 1rem;
  }

  .login-card {
    padding: 1.35rem;
  }
}
