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

:root,
html.light {
  --background: #ffffff;
  --foreground: #111827;
  --card: #ffffff;
  --muted: #f4f6f8;
  --muted-foreground: #667085;
  --border: #e5e7eb;
  --primary: #3b98eb;
  --ring: #5b8cff;
  --info: #55b4f3;
  --success: #20b486;
  --radius: 0.75rem;
  color-scheme: light;
}

html.dark {
  --background: #1f1f1f;
  --foreground: #f5f7fa;
  --card: #282828;
  --muted: #303030;
  --muted-foreground: #b7bbc4;
  --border: #3f3f3f;
  --primary: #3180cc;
  --ring: #3f8de0;
  --info: #4aa9e9;
  --success: #32c48d;
  color-scheme: dark;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background: var(--background);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

.boda-landing-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: blur(18px);
}

.boda-landing-nav-shell {
  display: flex;
  width: min(calc(100% - 4rem), 1328px);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.boda-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
}

.boda-landing-brand strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.boda-landing-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.boda-landing-nav a,
.boda-theme-toggle {
  border: 0;
  color: var(--muted-foreground);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.boda-landing-nav a:hover,
.boda-landing-nav a:focus-visible,
.boda-theme-toggle:hover,
.boda-theme-toggle:focus-visible,
.boda-landing-nav a[aria-current='page'] {
  color: var(--foreground);
}

.boda-theme-toggle {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  font-size: 1.1rem;
}

.boda-theme-toggle:hover {
  background: var(--muted);
  transform: rotate(18deg);
}

.boda-sign-in {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  color: #ffffff !important;
  background: var(--primary) !important;
}

.boda-sign-in:hover,
.boda-sign-in:focus-visible {
  filter: brightness(1.06);
}

.boda-hero-seed {
  min-height: 760px;
}

.boda-seed-content,
.boda-seed-stats {
  visibility: hidden;
}

.boda-supplier-seed {
  min-height: 360px;
}

.boda-landing-workflow {
  padding: clamp(4rem, 8vw, 7rem) 2rem clamp(5rem, 9vw, 8rem);
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.boda-landing-workflow-inner {
  width: min(100%, 1328px);
  margin: 0 auto;
}

.boda-workflow-heading {
  text-align: center;
}

.boda-workflow-heading > span {
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.boda-workflow-heading h2 {
  margin: 0.55rem 0 0;
  color: var(--foreground);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.boda-workflow-heading p {
  margin: 0.85rem 0 0;
  color: var(--muted-foreground);
  font-size: 1rem;
}

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

.boda-workflow-card {
  position: relative;
  min-height: 210px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.5rem);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 16px 44px color-mix(in srgb, var(--foreground) 6%, transparent);
}

.boda-workflow-number {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  font-size: 0.75rem;
  font-weight: 800;
}

.boda-workflow-card h3 {
  margin: 1.4rem 0 0;
  color: var(--foreground);
  font-size: 1.15rem;
}

.boda-workflow-card p {
  margin: 0.65rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.75;
}

.boda-workflow-action {
  display: flex;
  width: fit-content;
  margin: 2.5rem auto 0;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(100deg, var(--ring), var(--primary));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 24%, transparent);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 860px) {
  .boda-landing-nav-shell {
    width: calc(100% - 2rem);
  }

  .boda-landing-nav {
    gap: 0.75rem;
  }

  .boda-landing-nav > a:not([href='/dashboard']):not(.boda-sign-in),
  .boda-theme-toggle {
    display: none;
  }

  .boda-hero-seed {
    min-height: 690px;
  }

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

  .boda-workflow-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .boda-landing-nav a,
  .boda-theme-toggle {
    transition: none;
  }
}
