/*
 * SearchTides — Brand Design System
 *
 * "Joyful, inspired, optimistic. Bold and bright yet slightly minimalistic.
 *  Luxe and trustworthy, while still approachable and full of life.
 *  NOT corporate. NOT sterile. NOT generic SaaS."
 *
 * Light-first design. Gradient heroes. White cards. Generous spacing.
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Overpass:wght@600;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
  /* ── Brand Colors ── */
  --st-turquoise:      #3FD3D1;   /* primary accent, links, interactive */
  --st-deep-blue:      #3535D0;   /* primary brand, headings on dark, strong CTAs */
  --st-violet:         #D05CE9;   /* secondary accent, gradient partner, emphasis */
  --st-light-gray:     #EFEFEF;   /* subtle backgrounds, borders, dividers */
  --st-lighter-gray:   #F9F9F9;   /* page backgrounds, content areas */
  --st-white:          #FFFFFF;   /* cards, content surfaces */
  --st-black:          #2D2D2D;   /* primary body text — warm black, NEVER pure #000 */

  /* ── Derived ── */
  --st-turquoise-dim:  rgba(63, 211, 209, 0.10);
  --st-turquoise-glow: rgba(63, 211, 209, 0.20);
  --st-violet-dim:     rgba(208, 92, 233, 0.10);
  --st-blue-dim:       rgba(53, 53, 208, 0.10);
  --st-text-secondary: rgba(45, 45, 45, 0.7);   /* secondary text */
  --st-text-muted:     rgba(45, 45, 45, 0.5);    /* muted text */
  --st-text-ghost:     rgba(45, 45, 45, 0.35);   /* timestamps, metadata */

  /* ── Brand Gradient ── */
  --st-gradient-hero:  linear-gradient(135deg, #3535D0 0%, #D05CE9 50%, #3FD3D1 100%);
  --st-gradient-subtle: linear-gradient(135deg, #3535D0 0%, #5B3FD0 50%, #3FD3D1 100%);

  /* ── Signal Colors (semantic — keep functional) ── */
  --st-positive:       #34a853;
  --st-positive-dim:   rgba(52, 168, 83, 0.10);
  --st-warning:        #f59e0b;
  --st-warning-dim:    rgba(245, 158, 11, 0.10);
  --st-negative:       #ef4444;
  --st-negative-dim:   rgba(239, 68, 68, 0.10);

  /* ── AI Model Colors ── */
  --st-model-perplexity:   #6366f1;
  --st-model-chatgpt:      #10a37f;
  --st-model-google-aio:   #4285f4;
  --st-model-google-aim:   #34a853;
  --st-model-gemini:       #8b5cf6;
  --st-model-copilot:      #3b82f6;
  --st-model-meta:         #0082fb;

  /* ── Typography ── */
  --st-font-heading:   'Playfair Display', 'Georgia', serif;
  --st-font-sub:       'Overpass', 'Arial', sans-serif;
  --st-font-body:      'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Spacing & Radius ── */
  --st-radius:         16px;
  --st-radius-sm:      8px;
  --st-radius-pill:    9999px;
}

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

body {
  background: var(--st-lighter-gray);
  color: var(--st-black);
  font-family: var(--st-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation ── */
.nav {
  padding: 16px 0;
  border-bottom: 1px solid var(--st-light-gray);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--st-white);
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand img { height: 28px; width: auto; }
.nav-sep { color: var(--st-light-gray); }
.nav-link {
  font-family: var(--st-font-sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--st-text-secondary);
  text-decoration: none;
}
.nav-link:hover { color: var(--st-turquoise); }

/* ── Hero (gradient) ── */
.hero {
  background: var(--st-gradient-hero);
  padding: 64px 0 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(63,211,209,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  font-family: var(--st-font-sub);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 4px 12px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--st-font-heading);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 12px;
}
.hero-subtitle {
  font-family: var(--st-font-sub);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.7;
}
.hero-meta {
  margin-top: 24px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Client Logo in Hero ── */
.hero-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-logos img.client-logo {
  height: 44px;
  width: auto;
}
.hero-logos .logo-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.3);
}
.hero-logos img.st-logo {
  height: 24px;
  width: auto;
  opacity: 0.8;
}

/* ── Sections ── */
.section {
  background: var(--st-white);
  border-radius: var(--st-radius);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--st-light-gray);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* ── Cards ── */
.card {
  background: var(--st-white);
  border: 1px solid var(--st-light-gray);
  border-radius: var(--st-radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card:hover {
  border-color: var(--st-turquoise);
  box-shadow: 0 4px 12px rgba(63, 211, 209, 0.12);
}
.card-title {
  font-family: var(--st-font-sub);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--st-text-muted);
  margin-bottom: 8px;
}
.card-value {
  font-family: var(--st-font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--st-black);
}

/* ── Callout Cards ── */
.callout-positive {
  background: var(--st-positive-dim);
  border: 1px solid rgba(52, 168, 83, 0.2);
  border-radius: 12px;
  padding: 24px;
}
.callout-positive .callout-value { color: var(--st-positive); }

.callout-negative {
  background: var(--st-negative-dim);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 24px;
}
.callout-negative .callout-value { color: var(--st-negative); }

.callout-info {
  background: var(--st-blue-dim);
  border: 1px solid rgba(53, 53, 208, 0.2);
  border-radius: 12px;
  padding: 24px;
}
.callout-info .callout-value { color: var(--st-deep-blue); }

.callout-turquoise {
  background: var(--st-turquoise-dim);
  border: 1px solid rgba(63, 211, 209, 0.2);
  border-radius: 12px;
  padding: 24px;
}
.callout-turquoise .callout-value { color: var(--st-turquoise); }

.callout-value {
  font-family: var(--st-font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.callout-label {
  color: var(--st-black);
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 4px;
}
.callout-desc {
  color: var(--st-text-secondary);
  font-size: 13px;
}

/* ── Grids ── */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.callouts { display: flex; gap: 16px; flex-wrap: wrap; }
.callouts > * { flex: 1; min-width: 200px; }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--st-radius);
  border: 1px solid var(--st-light-gray);
  background: var(--st-white);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: var(--st-lighter-gray); }
th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--st-font-sub);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-text-muted);
  border-bottom: 1px solid var(--st-light-gray);
  white-space: nowrap;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--st-light-gray);
  color: var(--st-black);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--st-turquoise-dim); }

/* ── Tags / Badges ── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--st-radius-pill);
  font-family: var(--st-font-sub);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.tag-turquoise { background: var(--st-turquoise-dim); color: #2ba8a6; }
.tag-violet { background: var(--st-violet-dim); color: #b040c8; }
.tag-indigo { background: var(--st-blue-dim); color: var(--st-deep-blue); }
.tag-positive { background: var(--st-positive-dim); color: var(--st-positive); }
.tag-warning { background: var(--st-warning-dim); color: #d48806; }
.tag-negative { background: var(--st-negative-dim); color: var(--st-negative); }
.tag-neutral { background: rgba(45,45,45,0.06); color: var(--st-text-muted); }

/* ── Score Pills ── */
.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 28px;
  border-radius: var(--st-radius-pill);
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}
.score-high { background: var(--st-positive-dim); color: var(--st-positive); }
.score-mid { background: var(--st-warning-dim); color: #d48806; }
.score-low { background: var(--st-negative-dim); color: var(--st-negative); }

/* ── Progress Bars ── */
.progress-bar {
  height: 6px;
  background: var(--st-light-gray);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.progress-fill.turquoise { background: var(--st-turquoise); }
.progress-fill.violet { background: var(--st-violet); }
.progress-fill.positive { background: var(--st-positive); }
.progress-fill.warning { background: var(--st-warning); }
.progress-fill.negative { background: var(--st-negative); }

/* ── Headings ── */
h2 {
  font-family: var(--st-font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--st-black);
  margin-bottom: 20px;
  line-height: 1.1;
}
h3 {
  font-family: var(--st-font-sub);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--st-text-secondary);
  margin: 24px 0 12px;
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--st-gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Links ── */
a { color: var(--st-turquoise); text-decoration: none; }
a:hover { color: var(--st-deep-blue); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--st-violet);
  color: #fff;
  font-family: var(--st-font-sub);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--st-radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 0 #b040c8;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: #c050d8;
  box-shadow: 0 3px 8px rgba(208, 92, 233, 0.3);
  transform: translateY(-1px);
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--st-light-gray);
  margin-top: 32px;
}
.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-logos img { height: 20px; width: auto; opacity: 0.4; }
.footer p {
  color: var(--st-text-ghost);
  font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .callouts { flex-direction: column; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-logos { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Print ── */
@media print {
  .hero { background: var(--st-deep-blue) !important; }
  .section, .card { box-shadow: none; border-color: #ddd; }
  .nav { display: none; }
}
