/* styles.css - Sensory Shield landing page.
   Self-contained: system font stack, no external stylesheets or fonts. */

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #102033;
  --muted: #5a6b82;
  --line: rgba(16, 32, 51, 0.12);
  --brand: #2563eb;
  --accent: #7c3aed;
  --calm: #2b7a78;
  --danger: #ef4444;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
  line-height: 1.6;
}

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

code {
  background: rgba(16, 32, 51, 0.07);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.92em;
}

.nav,
.page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.brand h1,
.section h3,
.hero h2,
.card h3,
.demo-preview h4 {
  margin: 0;
}

.eyebrow,
.demo-label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.hero,
.split,
.grid-3 {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 36px 0 24px;
}

.hero-copy h2 {
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1;
  margin: 14px 0 16px;
  letter-spacing: -0.035em;
}

.hero-copy p,
.card p,
.demo-preview p,
.steps,
.hero-stats span,
.scope-list {
  color: var(--muted);
  line-height: 1.7;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
}

.hero-actions,
.download-grid,
.tag-row,
.hero-stats,
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.mode-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.mode-btn:hover {
  transform: translateY(-1px);
}

.button.primary,
.mode-btn.active,
.mode-btn.danger.active {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.button.secondary,
.mode-btn {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--line);
}

.button.download {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.hero-stats li {
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--text);
}

.hero-visual img {
  width: 100%;
  display: block;
  filter: drop-shadow(var(--shadow));
}

.notice {
  margin: 8px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--calm);
  border-radius: 12px;
  background: rgba(43, 122, 120, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  margin: 28px 0;
  scroll-margin-top: 24px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h3 {
  font-size: 1.8rem;
  margin-top: 10px;
}

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

.split {
  grid-template-columns: 1.05fr 0.95fr;
}

.card,
.demo-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand);
  font-weight: 800;
}

.demo-shell[data-mode='overload'] {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(251, 191, 36, 0.1));
}

.demo-preview {
  margin-top: 18px;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, filter 0.25s ease, letter-spacing 0.25s ease;
}

.demo-preview.preview-overload {
  transform: rotate(-0.6deg) scale(1.01);
  filter: saturate(1.2) contrast(1.08);
  letter-spacing: 0.01em;
}

.tag-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-size: 0.88rem;
}

.steps {
  margin: 16px 0 20px;
  padding-left: 20px;
}

.steps li + li {
  margin-top: 10px;
}

.scope-list {
  margin: 16px 0 0;
  padding-left: 20px;
}

.scope-list li + li {
  margin-top: 10px;
}

.scope-list strong {
  color: var(--text);
}

.hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer {
  margin: 48px 0 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--brand);
}

@media (max-width: 900px) {
  .hero,
  .split,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav,
  .page {
    width: min(100% - 20px, 1160px);
  }

  .card,
  .demo-shell {
    border-radius: 20px;
    padding: 18px;
  }
}
