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

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

:root {
  --bg: #f1eadf;
  --bg-elevated: rgba(255, 251, 245, 0.78);
  --bg-card: rgba(255, 249, 241, 0.94);
  --bg-chat: rgba(252, 247, 239, 0.96);
  --bg-panel-strong: #f8f1e6;
  --text: #1f1b17;
  --text-muted: #62574d;
  --text-dim: #867869;
  --accent: #df5c21;
  --accent-glow: rgba(223, 92, 33, 0.12);
  --accent-hover: #c84f1c;
  --green: #1d8f57;
  --green-glow: rgba(29, 143, 87, 0.12);
  --cyan: #4e6f88;
  --yellow: #b78916;
  --red: #c94b32;
  --border: rgba(59, 42, 28, 0.12);
  --border-light: rgba(59, 42, 28, 0.24);
  --shadow-soft: 0 18px 48px rgba(74, 52, 31, 0.08);
  --shadow-strong: 0 24px 72px rgba(74, 52, 31, 0.12);
  --radius: 16px;
  --radius-lg: 28px;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at top left, rgba(223, 92, 33, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(78, 111, 136, 0.1), transparent 28%),
    linear-gradient(180deg, #f8f2e7 0%, var(--bg) 100%);
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.22;
  background-image:
    linear-gradient(rgba(82, 58, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 58, 35, 0.04) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 28px 28px, 28px 28px, auto;
}

.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: 20px 0;
  background: rgba(248, 241, 232, 0.84);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 24px rgba(223, 92, 33, 0.18);
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }

/* SECTIONS */
.section { padding: 120px 0; position: relative; z-index: 1; }
.section-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; 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;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-soft);
}
.card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow-strong); }

/* 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.2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-light); }
.btn-lg { padding: 16px 34px; font-size: 18px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; }

/* HERO (page-level) */
.page-hero {
  min-height: 60vh; display: flex; flex-direction: column; justify-content: center;
  padding: 140px 24px 80px; position: relative;
}
.page-hero::before {
  content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(223, 92, 33, 0.08) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(40px, 7vw, 72px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.05em; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.page-hero h1 .accent { color: var(--accent); }
.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 var(--border); background: var(--bg-elevated);
  font-size: 13px; color: var(--text-muted); margin-bottom: 24px;
  box-shadow: 0 10px 24px rgba(74, 52, 31, 0.05);
}
.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: rgba(255, 249, 241, 0.48);
}
footer .container { display: flex; justify-content: space-between; align-items: center; }
footer .copy { font-size: 13px; color: var(--text-dim); }
footer .links { display: flex; gap: 24px; }
footer .links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
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: rgba(74, 52, 31, 0.18); border-radius: 3px; }

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