/* SuperCala shared design system.
 *
 * Source of truth for visual identity across Run, SuperCalaSite, and any
 * future marketing surface. Contains design tokens (:root variables),
 * baseline reset, navbar, buttons, containers, section primitives, and
 * footer layout. Site-specific components (Run's hero/pricing/demo cards,
 * SuperCalaSite's product grid) live in each site's own stylesheet.
 */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --card: #ffffff;
  --accent: #00a2e8;
  --accent-soft: rgba(0, 162, 232, 0.08);
  --accent-strong: #0082ba;
  --accent-warm: #c3c3c3;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 45px rgba(248, 250, 252, 0.08);
  --shadow-glow: 0 0 30px rgba(0, 162, 232, 0.2);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--text);
  color-scheme: light;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page {
  min-height: 100vh;
  background: linear-gradient(to bottom, rgba(0, 162, 232, 0.24), rgba(195, 195, 195, 0.16) 400px, #ffffff 800px);
  background-repeat: no-repeat;
  color: var(--text);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAVBAR ──────────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-text-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-text-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.16s ease, opacity 0.16s ease;
}

.nav-links a:hover {
  color: var(--accent);
  opacity: 1;
}

a.btn-primary {
  color: #ffffff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease,
    color 0.14s ease, border-color 0.14s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--accent-strong), #00a2e8);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 162, 232, 0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.75rem 0 1.1rem;
  font-size: 0.95rem;
}

.nav-mobile a {
  color: var(--muted);
}

.nav-mobile a:hover {
  color: var(--accent);
}

.nav-mobile .btn {
  width: 100%;
  justify-content: center;
}

.nav-mobile.open { display: flex; }

/* ── SECTIONS ────────────────────────────────────────────────────────────── */

section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.4rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: #f8fafc;
  padding: 2.2rem 0 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.footer-small { font-size: 0.78rem; }
.footer-tagline { font-size: 0.78rem; color: var(--muted); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 1.2rem;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 1.75rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  section { padding: 2.6rem 0; }
}
