/* Run SaaS — Shared Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --bg: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.95);
  --bg-card: #f7f7f8;
  --bg-chat: rgba(255, 255, 255, 0.95);
  --text: #111111;
  --text-muted: #666666;
  --text-dim: #999999;
  --primary: #7c5cfc;
  --primary-hover: #6f50f5;
  --primary-glow: rgba(124, 92, 252, 0.16);
  --accent: #e84393;
  --accent-glow: rgba(232, 67, 147, 0.16);
  --accent-hover: #d73582;
  --brand-gradient: linear-gradient(135deg, #7c5cfc, #e84393);
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.14);
  --cyan: #56a7ff;
  --yellow: #c79522;
  --red: #ef4444;
  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.15);
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(124, 92, 252, 0.2);
  --shadow-glow-lg: 0 0 60px rgba(232, 67, 147, 0.24);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::before {
  display: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: border-color 0.3s, background 0.3s;
}
nav.scrolled { border-bottom-color: var(--border-light); box-shadow: var(--shadow-sm); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  letter-spacing: -0.5px; color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { background: var(--primary-hover) !important; transform: translateY(-1px); box-shadow: none; }
.nav-logo:focus-visible,
.nav-links a:focus-visible,
.btn:focus-visible,
button:focus-visible,
footer .links a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* SECTIONS */
.section { padding: 120px 0; position: relative; z-index: 1; }
.section-label {
  font-family: var(--font-mono); font-size: 13px; color: var(--primary);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; font-weight: 500;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 20px;
}
.section-desc {
  font-size: 18px; color: var(--text-muted); max-width: 560px; line-height: 1.6; margin-bottom: 64px;
}

/* CARDS */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: none; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px; border: none;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-primary {
  background: var(--brand-gradient); color: #fff;
  border-radius: 999px;
  box-shadow: none;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: none; }
.btn-secondary { background: #f5f5f5; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-light); background: #eeeeee; }
.btn-lg { padding: 16px 40px; font-size: 18px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; }

/* HERO (page-level) */
.page-hero {
  min-height: 60vh; display: flex; flex-direction: column; justify-content: center;
  padding: 140px 24px 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background:
    radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 62% 40%, rgba(232, 67, 147, 0.05) 0%, transparent 36%);
  pointer-events: none; z-index: 0;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 72px);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.page-hero h1 .accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero .subtitle {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-muted);
  max-width: 600px; line-height: 1.6; margin-bottom: 40px;
  position: relative; z-index: 1;
}

/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(124, 92, 252, 0.15); background: rgba(124, 92, 252, 0.06);
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
  box-shadow: none;
}
.badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border); padding: 40px 0; position: relative; z-index: 1;
  background: transparent;
}
footer .container { display: flex; justify-content: space-between; align-items: center; }
footer .copy { font-size: 13px; color: var(--text-dim); }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
footer .links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.15s;
}
footer .links a:hover { color: var(--text); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7c5cfc, #e84393); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6f50f5, #d73582); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  footer .container { flex-direction: column; gap: 16px; }
}
