/* ==========================================================
   Palm Valley AI — Shared Design System (Prism)
   ==========================================================
   This file is loaded by every page. Component-level styles
   that are unique to a page can be added inline in that page.
   ========================================================== */

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --ink: #0b0b14;
  --ink-2: #2a2a3a;
  --muted: rgba(11, 11, 20, 0.6);
  --muted-strong: rgba(11, 11, 20, 0.75);
  --line: rgba(11, 11, 20, 0.08);
  --line-2: rgba(11, 11, 20, 0.06);
  --bg: #ffffff;
  --bg-2: #f7f7fb;
  --bg-3: #f0f0f7;
  --grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f59e0b 100%);
  --grad-2: linear-gradient(135deg, #7c3aed, #ec4899);
  --grad-3: linear-gradient(135deg, #06b6d4, #7c3aed);
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --pink: #ec4899;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --success: #10b981;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 11, 20, 0.04);
  --shadow: 0 12px 30px rgba(11, 11, 20, 0.06);
  --shadow-lg: 0 24px 60px rgba(124, 58, 237, 0.12);
  --shadow-glow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

em { padding-right: 0.08em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 5; }
.container-tight { max-width: 880px; margin: 0 auto; position: relative; z-index: 5; }
section { position: relative; padding: 96px 24px; }
.section-tight { padding: 64px 24px; }

/* ---------- Navigation (shared across all pages) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0; right: 0;
  height: 2px;
  background: var(--grad-2);
  border-radius: 2px;
}
.nav-actions { display: flex; gap: 6px; align-items: center; }
.nav-actions .ghost {
  color: var(--ink);
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
}
.nav-actions .cta {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--bg-2); }
.btn-gradient {
  background: var(--grad-2);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s;
  text-decoration: none;
}
.btn-gradient:hover { transform: translateY(-1px); }

/* ---------- Badges & Eyebrows ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 18px; height: 18px;
  background: var(--grad-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  color: #fff;
}
.badge .new {
  background: var(--grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-right: 4px;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  font-weight: 600;
}

/* ---------- Typography Utilities ---------- */
.section-title {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--ink);
}
.section-title em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-sub { margin: 0 auto; }

/* ---------- Page Hero (smaller hero for subpages) ---------- */
.page-hero {
  position: relative;
  padding: 80px 24px 56px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background:
    radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.12), transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner {
  position: relative;
  z-index: 5;
  max-width: 880px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 20px 0 18px;
  color: var(--ink);
}
.page-hero h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- Cards (generic) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  position: relative;
}
.card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ---------- Tags / Pills ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.06));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 100px;
  font-size: 11px;
  color: var(--violet);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ---------- Forms ---------- */
input, textarea, select {
  font-family: inherit;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
input::placeholder, textarea::placeholder { color: rgba(11,11,20,0.4); }
textarea { min-height: 110px; resize: vertical; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- Footer (shared) ---------- */
footer.site-footer {
  background: var(--bg-2);
  padding: 56px 24px 32px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--muted);
  max-width: 280px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  background: var(--grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Final CTA Section (reusable) ---------- */
.cta-section {
  position: relative;
  padding: 96px 24px;
  overflow: hidden;
}
.cta-card {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0b0b14 0%, #1a1a2e 100%);
  border-radius: 28px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background:
    radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.4), transparent 55%),
    radial-gradient(circle at 70% 50%, rgba(236, 72, 153, 0.3), transparent 55%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 2; }
.cta-card h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.cta-card h2 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #c4b5fd, #f9a8d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-card p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.cta-card .btn-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.cta-card .btn-primary-light {
  background: #fff;
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-card .btn-ghost-light {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(20px);
  text-decoration: none;
}

/* ---------- Mobile nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.nav-toggle:hover { background: rgba(11, 11, 20, 0.05); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
  .nav-inner { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px 24px;
    box-shadow: 0 12px 30px rgba(11, 11, 20, 0.06);
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
  }
  .nav-links a:hover { background: rgba(11, 11, 20, 0.04); }
  .nav-links a.active { color: var(--violet); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .ghost { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 20px; }
  .cta-card { padding: 48px 28px; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
}
