/* ========================================
   SPAWNIO — Shared stylesheet
   ======================================== */

:root {
  --purple-50: #EEEDFE;  --purple-200: #AFA9EC;  --purple-400: #7F77DD;  --purple-600: #534AB7;  --purple-900: #26215C;
  --teal-50: #E1F5EE;    --teal-400: #1D9E75;    --teal-600: #0F6E56;   --teal-900: #04342C;
  --coral-50: #FAECE7;   --coral-400: #D85A30;   --coral-800: #712B13;
  --pink-50: #FBEAF0;    --pink-400: #D4537E;    --pink-800: #72243E;
  --amber-50: #FAEEDA;   --amber-400: #BA7517;   --amber-800: #633806;
  --green-50: #EAF3DE;   --green-400: #639922;   --green-800: #27500A;
  --blue-50: #E6F1FB;    --blue-400: #378ADD;    --blue-800: #0C447C;
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --text-tertiary: #8a8a8a;
  --border: rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ======== NAV ======== */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none; color: inherit;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--purple-400);
  display: grid; place-items: center;
  color: white; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  transform: rotate(-8deg);
  transition: transform 0.3s ease;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  top: -4px; right: -4px;
  width: 10px; height: 10px;
  background: var(--coral-400);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.05); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 15px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

/* ======== BUTTONS ======== */
.btn {
  padding: 10px 20px; border-radius: 999px;
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px;
  transition: all 0.2s ease;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--text-primary); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--text-primary); }
.btn-outline:hover { background: var(--text-primary); color: white; }
.btn-cta {
  background: var(--purple-400); color: white;
  padding: 16px 28px; font-size: 16px;
}
.btn-cta:hover { background: var(--purple-600); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(127,119,221,0.4); }

/* ======== FOOTER ======== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: var(--text-tertiary); font-size: 14px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-tertiary); text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); }

/* ======== SECTION HEADERS ======== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.section-title { font-size: 36px; }
.section-sub { color: var(--text-secondary); font-size: 16px; margin-top: 8px; }

/* ======== RIBBONS (Hot/New badges on cards) ======== */
.ribbon {
  position: absolute; top: 16px; right: 16px;
  color: white;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ribbon.new { background: var(--teal-400); }
.ribbon.hot { background: var(--coral-400); }

/* ======== RESPONSIVE ======== */
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
}
