/* SPED Agent — static introduction site.
   Palette mirrors the product AppShell tokens in app/globals.css. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --surface: #ffffff;
  --text: #25262b;
  --muted: #6b7280;
  --border: #e5e5e7;
  --primary: #5b5bd6;
  --primary-hover: #4c4cbd;
  --primary-fg: #ffffff;
  --accent-bg: #eeeeff;
  --success: #227448;
  --focus: #7375d8;
  --shadow: 0 1px 2px rgb(37 38 43 / 6%), 0 12px 32px -20px rgb(37 38 43 / 28%);
  --radius: 14px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #212121;
    --bg-soft: #191919;
    --surface: #292929;
    --text: #ececec;
    --muted: #a4a4aa;
    --border: #3b3b3e;
    --primary: #b4b4ff;
    --primary-hover: #c7c7ff;
    --primary-fg: #202123;
    --accent-bg: #35334f;
    --success: #8fd2ac;
    --focus: #a5a7ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -24px rgb(0 0 0 / 70%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
    sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 20;
}

.skip-link:focus {
  left: 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.wordmark-glyph {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.nav-link-cta {
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
}

.nav-link-cta:hover {
  background: var(--accent-bg);
  color: var(--primary-hover);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 520px;
  background: radial-gradient(
    60% 60% at 50% 40%,
    color-mix(in srgb, var(--primary) 18%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: 88px 76px;
  max-width: 820px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.1rem, 5.4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-lede {
  margin-top: 22px;
  margin-inline: auto;
  max-width: 660px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button-primary,
.button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 560;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border: 1px solid var(--primary);
}

.button-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-fg);
}

.button-quiet {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.button-quiet:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  text-align: start;
}

.hero-fact {
  padding-top: 16px;
  border-top: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
}

.hero-fact dt {
  font-weight: 640;
  font-size: 0.98rem;
}

.hero-fact dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Sections */

.band {
  padding-block: 84px;
  border-bottom: 1px solid var(--border);
}

.band-soft {
  background: var(--bg-soft);
}

.eyebrow {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 10px;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 680;
}

.section-lede {
  margin-top: 14px;
  max-width: 640px;
  color: var(--muted);
}

/* Capability cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.feature-card h3 {
  margin-top: 16px;
  font-size: 1.1rem;
  font-weight: 640;
}

.feature-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 11px;
  background: var(--accent-bg);
  color: var(--primary);
}

.icon-badge-quiet {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Workflow steps */

.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step-item {
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.92rem;
  font-weight: 640;
}

.step-item h3 {
  margin-top: 16px;
  font-size: 1.06rem;
  font-weight: 640;
}

.step-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Boundaries */

.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px 40px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-item h3 {
  font-size: 1.04rem;
  font-weight: 640;
}

.trust-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Status */

.status-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.status-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.status-list li {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.status-list strong {
  color: var(--text);
  font-weight: 640;
}

/* Contact */

.contact-band {
  max-width: 660px;
  text-align: center;
}

.contact-band .section-lede {
  margin-inline: auto;
}

.contact-actions {
  margin-top: 30px;
}

.muted-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-band .muted-note {
  margin-top: 16px;
}

/* Footer */

.site-footer {
  padding-block: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Not found */

.notfound {
  display: grid;
  place-items: center;
  min-height: 62vh;
  text-align: center;
}

.notfound-inner {
  max-width: 520px;
}

.notfound .section-lede {
  margin-inline: auto;
}

/* Responsive */

@media (max-width: 860px) {
  .status-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  /* A wrapped two-row bar would eat too much of a phone screen while scrolling. */
  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-block: 12px;
  }

  .site-nav {
    justify-content: flex-start;
    margin-inline-start: -10px;
    gap: 2px;
  }

  .nav-link {
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  html {
    scroll-padding-top: 16px;
  }

  .hero-inner {
    padding-block: 60px 56px;
  }

  .band {
    padding-block: 60px;
  }

  .trust-item {
    gap: 14px;
  }
}

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

  .feature-card,
  .button-primary,
  .button-quiet {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }
}
