/* Purple Squirrel AI — Marketing Site Styles */

:root {
  --ps-purple:        #7B2FBE;
  --ps-purple-dark:   #5a1f8f;
  --ps-purple-light:  #9d4fd4;
  --ps-magenta:       #C026A0;
  --ps-gradient:      linear-gradient(135deg, #7B2FBE 0%, #C026A0 100%);

  /* Light site palette */
  --ps-bg:            #ffffff;
  --ps-bg-alt:        #f6f4fb;
  --ps-bg-dark:       #0f0f1a;
  --ps-bg-dark-2:     #161628;

  /* Text */
  --ps-text:          #1c1c2e;
  --ps-text-muted:    #52527a;
  --ps-text-dim:      #8888aa;
  --ps-white:         #ffffff;

  /* Borders */
  --ps-border:        #e4e0f0;
  --ps-border-dark:   rgba(255,255,255,0.1);

  /* Shadow */
  --ps-shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --ps-shadow:        0 4px 20px rgba(0,0,0,0.08);
  --ps-shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
  --ps-shadow-purple: 0 4px 24px rgba(123,47,190,0.35);

  --nav-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ps-bg);
  color: var(--ps-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--ps-text); }
h1 { font-size: 48px; }
h2 { font-size: 32px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p  { font-size: 16px; color: var(--ps-text-muted); line-height: 1.7; }

.text-lg  { font-size: 18px; }
.text-sm  { font-size: 14px; }
.text-xs  { font-size: 12px; }
.lead     { font-size: 18px; color: var(--ps-text-muted); line-height: 1.7; }
a  { color: var(--ps-purple); text-decoration: none; }
a:hover { color: var(--ps-purple-dark); }

.gradient-text {
  background: var(--ps-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ── */
.container    { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section      { padding: 96px 0; }
.section-sm   { padding: 64px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ps-purple);
  background: rgba(123,47,190,0.08);
  border: 1px solid rgba(123,47,190,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.section-label.light {
  color: #c4a3e8;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { max-width: 600px; margin: 16px auto 0; font-size: 18px; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ps-border);
  box-shadow: var(--ps-shadow-sm);
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}
.nav-logo-text { font-size: 17px; font-weight: 700; color: var(--ps-text); letter-spacing: -.02em; }
.nav-logo-text span { color: var(--ps-purple); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: var(--ps-text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ps-purple);
  background: rgba(123,47,190,0.07);
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ps-text-muted);
  font-size: 22px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ps-gradient);
  color: #fff;
  box-shadow: var(--ps-shadow-purple);
}
.btn-primary:hover { box-shadow: 0 6px 32px rgba(123,47,190,0.5); color: #fff; }

.btn-secondary {
  background: #fff;
  color: var(--ps-purple);
  border: 1.5px solid var(--ps-border);
  box-shadow: var(--ps-shadow-sm);
}
.btn-secondary:hover {
  border-color: rgba(123,47,190,0.4);
  background: rgba(123,47,190,0.04);
  color: var(--ps-purple);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn-lg    { font-size: 17px; padding: 14px 30px; border-radius: 10px; }
.btn-sm    { font-size: 13px; padding: 7px 15px; border-radius: 6px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--ps-bg);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--ps-shadow-sm);
}
.card-dark {
  background: var(--ps-bg-dark-2);
  border: 1px solid var(--ps-border-dark);
}
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--ps-shadow-lg);
  border-color: rgba(123,47,190,0.25);
}

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(123,47,190,0.08);
  border: 1px solid rgba(123,47,190,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-title { font-size: 16px; font-weight: 700; color: var(--ps-text); margin-bottom: 8px; }
.feature-desc  { font-size: 14px; color: var(--ps-text-muted); line-height: 1.65; }

/* ── Hero (dark) ── */
.hero {
  background: var(--ps-bg-dark);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 0%, rgba(123,47,190,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 5% 80%, rgba(192,38,160,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #c4a3e8;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.hero-title { color: #fff; margin-bottom: 20px; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.65); margin-bottom: 36px; max-width: 500px; }
.hero-actions  { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num   { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mascot {
  width: 320px;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(123,47,190,0.5));
  animation: float 4s ease-in-out infinite;
}
.hero-mascot-fallback {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(123,47,190,0.6), rgba(192,38,160,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 110px;
  filter: drop-shadow(0 0 60px rgba(123,47,190,0.5));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── Section alternating ── */
.section-alt    { background: var(--ps-bg-alt); }
.section-dark   { background: var(--ps-bg-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.6); }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ps-border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ps-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--ps-shadow-purple);
}
.step-title { font-size: 16px; font-weight: 700; color: var(--ps-text); margin-bottom: 5px; }
.step-desc  { font-size: 14px; color: var(--ps-text-muted); line-height: 1.65; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--ps-bg);
  border: 1.5px solid var(--ps-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ps-shadow-sm);
}
.pricing-card.featured {
  border-color: var(--ps-purple);
  box-shadow: 0 0 0 1px var(--ps-purple), var(--ps-shadow-lg);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ps-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-label    { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ps-purple); margin-bottom: 8px; }
.pricing-name     { font-size: 22px; font-weight: 800; color: var(--ps-text); margin-bottom: 6px; }
.pricing-price    { font-size: 42px; font-weight: 800; color: var(--ps-text); line-height: 1; }
.pricing-price sup { font-size: 20px; vertical-align: super; font-weight: 600; }
.pricing-price sub { font-size: 15px; color: var(--ps-text-muted); font-weight: 500; }
.pricing-desc     { font-size: 14px; color: var(--ps-text-muted); margin: 12px 0 24px; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ps-text-muted); }
.pricing-features li::before { content: "✓"; color: var(--ps-purple); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── CTA banner ── */
.cta-banner {
  background: var(--ps-gradient);
  border-radius: 20px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p  { max-width: 520px; margin: 0 auto 32px; font-size: 18px; color: rgba(255,255,255,0.8); }
.cta-banner .btn-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-banner .btn-white {
  background: #fff;
  color: var(--ps-purple);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 17px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-banner .btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(0,0,0,0.2); color: var(--ps-purple); }
.cta-banner .btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 17px;
}
.cta-banner .btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Footer ── */
.footer {
  background: var(--ps-bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); margin-top: 12px; max-width: 280px; }
.footer-col h4  { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-logo-text { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.footer-logo-text span { color: #c4a3e8; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: #fff; }

/* ── Search tool ── */
.search-box {
  background: var(--ps-bg);
  border: 1.5px solid var(--ps-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--ps-shadow);
}
.search-row { display: flex; gap: 12px; }
.search-input {
  flex: 1;
  background: var(--ps-bg-alt);
  border: 1.5px solid var(--ps-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ps-text);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.search-input::placeholder { color: var(--ps-text-dim); }
.search-input:focus { border-color: var(--ps-purple); }
.search-result {
  margin-top: 20px;
  background: var(--ps-bg-alt);
  border: 1px solid var(--ps-border);
  border-radius: 10px;
  padding: 20px;
}
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ps-border); font-size: 14px; }
.result-row:last-child { border-bottom: none; }
.result-label { color: var(--ps-text-muted); }
.result-value { color: var(--ps-text); font-weight: 600; text-align: right; }

/* ── Comparison table ── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--ps-border); }
.compare-table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ps-text-muted); background: var(--ps-bg-alt); }
.compare-table th:first-child { border-radius: 10px 0 0 0; }
.compare-table th:last-child  { border-radius: 0 10px 0 0; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child    { color: var(--ps-text-muted); }
.compare-table td:not(:first-child) { color: var(--ps-text); font-weight: 600; }
.check-yes { color: #16a34a; }
.check-no  { color: #dc2626; }

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ps-text-muted); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--ps-bg-alt);
  border: 1.5px solid var(--ps-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ps-text);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--ps-text-dim); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--ps-purple); background: #fff; }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.badge-purple { background: rgba(123,47,190,0.1); color: var(--ps-purple); border: 1px solid rgba(123,47,190,0.2); }
.badge-green  { background: rgba(22,163,74,0.1);  color: #16a34a; border: 1px solid rgba(22,163,74,0.2); }
.badge-blue   { background: rgba(37,99,235,0.1);  color: #2563eb; border: 1px solid rgba(37,99,235,0.2); }

/* ── Divider ── */
.divider { height: 1px; background: var(--ps-border); }

/* ── Investor portal overrides (dark page) ── */
.investor-page body { background: var(--ps-bg-dark); color: rgba(255,255,255,0.85); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid    { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-mascot  { width: 220px; height: 220px; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .text-lg, .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ps-border);
    box-shadow: var(--ps-shadow);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  .nav-hamburger { display: block; }
  .cta-banner    { padding: 48px 24px; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .feature-grid  { grid-template-columns: 1fr; }
  .search-row    { flex-direction: column; }
}
