/* ===================================================================
   Psychome — SEO Landing Pages
   "Sapphire Scholar" design system v2
=================================================================== */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-soft: #f5f5f4;
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --primary-light: #eef2ff;
  --primary-50: #f8faff;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --accent-hover: #d97706;
  --text: #1c1917;
  --text-soft: #292524;
  --text-muted: #57534e;
  --border: #e7e5e4;
  --border-soft: #f0eeec;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 20px 48px rgba(28, 25, 23, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-soft); }

/* Header */
.seo-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.seo-header .row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.seo-header a.logo {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.seo-header nav a {
  color: var(--text-muted);
  margin-inline-start: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms var(--ease);
}
.seo-header nav a:hover { color: var(--primary); }

/* Main */
.seo-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* Hero */
.seo-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: #fff;
  padding: 64px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.seo-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.seo-hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.seo-hero h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  position: relative;
}
.seo-hero p {
  margin: 0 0 28px;
  font-size: 17px;
  opacity: 0.93;
  font-weight: 500;
  position: relative;
}

.seo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 16px;
  transition: all 220ms var(--ease);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  position: relative;
}
.seo-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
}

/* Content */
.seo-content h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 48px 0 16px;
  color: var(--primary);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
}
.seo-content h2::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.seo-content h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}
.seo-content p { margin: 14px 0; color: var(--text-soft); }
.seo-content ul, .seo-content ol {
  padding-inline-start: 28px;
  margin: 14px 0;
}
.seo-content li { margin: 8px 0; color: var(--text-soft); }
.seo-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: border-color 200ms var(--ease);
}
.seo-content a:hover { border-bottom-color: var(--primary); }
.seo-content strong { color: var(--text); font-weight: 700; }

/* Stats grid */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}
.seo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.seo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.seo-card .num {
  font-family: 'Rubik', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.seo-card .label {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

/* Footer */
.seo-footer {
  background: var(--text);
  color: #d6d3d1;
  padding: 40px 24px;
  text-align: center;
  margin-top: 60px;
}
.seo-footer > div { max-width: 900px; margin: 0 auto; }
.seo-footer a {
  color: #fff;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 200ms var(--ease);
}
.seo-footer a:hover { color: var(--accent); }
.seo-footer .small {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 12px;
}

/* Mobile */
@media (max-width: 640px) {
  .seo-hero { padding: 40px 24px; }
  .seo-hero h1 { font-size: 24px; }
  .seo-hero p { font-size: 15px; }
  .seo-cta { padding: 13px 24px; font-size: 14px; }
  .seo-main { padding: 24px 18px 40px; }
  .seo-header nav a { margin-inline-start: 12px; font-size: 13px; }
  .seo-header .row { padding: 12px 18px; }
  .seo-header a.logo { font-size: 18px; }
  .seo-content h2 { font-size: 22px; }
  .seo-content h3 { font-size: 17px; }
  .seo-card { padding: 18px 12px; }
  .seo-card .num { font-size: 28px; }
}

/* Focus accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
