/* Pearl Technologies — Design System v1.0 */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:          #0A1128;
  --bg-2:        #0E1736;
  --bg-3:        #131F44;
  --ink:         #F4F6FB;
  --ink-dim:     #8AA0C9;
  --ink-soft:    #5F739A;
  --line:        rgba(138, 160, 201, 0.14);
  --line-strong: rgba(138, 160, 201, 0.28);
  --blue:        #60A5FA;
  --blue-2:      #3B82F6;
  --blue-3:      #2563EB;
  --pearl:       #BFDBFE;
  --green:       #22C55E;
  --purple:      #A78BFA;
  --accent-glow: radial-gradient(ellipse at top, rgba(96,165,250,0.35), transparent 60%);
  --font-sans:   'Plus Jakarta Sans', 'Inter', -apple-system, system-ui, sans-serif;
  --font-serif:  'Instrument Serif', 'Times New Roman', serif;
  --font-mono:   'JetBrains Mono', ui-monospace, monospace;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.2s ease;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }
::selection { background: rgba(96,165,250,0.2); }

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

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 17, 40, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--blue), var(--pearl));
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0A1128;
  flex-shrink: 0;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-dim);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg-3); }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #0A1128;
  background: var(--blue);
  padding: 7px 16px;
  border-radius: 8px;
  transition: opacity var(--transition);
  text-decoration: none;
}
.nav-cta:hover { opacity: 0.85; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 16px 24px 24px;
  gap: 4px;
}
.nav-mobile a {
  font-size: 15px;
  color: var(--ink-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  text-decoration: none;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--ink); }

/* Page offset for fixed nav */
main { padding-top: 60px; }

/* ── Reading Progress Bar ─────────────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--blue);
  z-index: 99;
  transition: width 0.1s linear;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: var(--accent-glow);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: heroIn 0.7s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-dim);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}
.section-sub {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 56px;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section-header-row .section-sub { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); width: 100%; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 11px 22px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.4;
}
.btn-primary { background: var(--blue); color: #0A1128; border-color: var(--blue); }
.btn-primary:hover { background: var(--pearl); border-color: var(--pearl); color: #0A1128; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-2); border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink-dim); border-color: transparent; padding: 11px 14px; }
.btn-ghost:hover { color: var(--ink); background: var(--bg-2); }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.btn-lg { font-size: 15px; padding: 14px 28px; }
.btn-icon { padding: 10px; border-radius: 10px; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px -20px rgba(10,17,40,0.6);
}
.card-blue {
  background: rgba(96,165,250,0.05);
  border-color: rgba(96,165,250,0.2);
}
.card-blue:hover { border-color: rgba(96,165,250,0.4); }

/* ── Service Cards ────────────────────────────────────────────────────────── */
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.service-title { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 8px; }
.service-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.6; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.service-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.5;
}
.service-checklist li::before {
  content: '✓';
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 600;
}

/* ── Tags / Chips ─────────────────────────────────────────────────────────── */
.tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
}
.tag-blue { color: var(--blue); background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.2); }
.tag-green { color: var(--green); background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); }
.tag-purple { color: var(--purple); background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.2); }
.tag-orange { font-size: 11px; font-weight: 500; color: #fb923c; background: rgba(251,146,60,0.08); border: 1px solid rgba(251,146,60,0.2); padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); }

/* ── Grid Layouts ─────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Stat Mini (used on services page) ────────────────────────────────────── */
.stat-mini {
  background: rgba(96,165,250,0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.stat-mini-num { font-size: 24px; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 4px; }
.stat-mini-label { font-size: 12px; color: var(--ink-dim); }

/* ── Process Steps ────────────────────────────────────────────────────────── */
.process-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition);
}
.process-step:hover { border-color: var(--line-strong); }
.step-number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.step-title { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }

/* ── Skills / Skill Bars ──────────────────────────────────────────────────── */
.skill-category-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.skill-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.skill-track {
  flex: 1;
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  margin: 0 16px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-3), var(--blue));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill.animate { width: var(--skill-width, 80%); }
.skill-pct { font-size: 12px; font-weight: 500; color: var(--ink-dim); font-family: var(--font-mono); min-width: 32px; text-align: right; }

/* ── Project Cards ────────────────────────────────────────────────────────── */
.project-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -15px rgba(10,17,40,0.7);
}
.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--ink-soft);
  overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-thumb img { transform: scale(1.03); }
.project-body { padding: 24px; }
.project-title { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.project-desc { font-size: 13px; color: var(--ink-dim); line-height: 1.6; margin-bottom: 16px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.project-stat { font-size: 12px; color: var(--ink-soft); font-family: var(--font-mono); }

/* ── Filter Tabs ──────────────────────────────────────────────────────────── */
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.filter-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.filter-tab.active { color: var(--blue); background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.3); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color var(--transition);
  gap: 16px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-sans);
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--bg-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 18px;
  transition: transform var(--transition), background var(--transition);
  color: var(--ink-dim);
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(96,165,250,0.1); color: var(--blue); }
.faq-answer { display: none; padding: 0 0 20px; font-size: 15px; color: var(--ink-dim); line-height: 1.7; }
.faq-answer.open { display: block; }
.faq-answer p + p { margin-top: 12px; }

/* ── Blog Cards ───────────────────────────────────────────────────────────── */
.blog-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -15px rgba(10,17,40,0.7);
}
.blog-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
  text-decoration: none;
}
.blog-cat:hover { color: var(--pearl); }
.blog-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
  flex: 1;
}
.blog-title a { color: inherit; text-decoration: none; transition: color var(--transition); }
.blog-title a:hover { color: var(--blue); }
.blog-excerpt { font-size: 13px; color: var(--ink-dim); line-height: 1.6; margin-bottom: 16px; }
.blog-meta {
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--ink-soft); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.1);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238AA0C9' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Form feedback message */
#form-message { margin-bottom: 16px; }
#form-message.success { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.3); border-left-color: var(--green); color: var(--green); }
#form-message.error { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.3); border-left-color: #ef4444; color: #f87171; }

/* ── WordPress Comment Form Styling ───────────────────────────────────────── */
.comment-form-inner { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.comment-form p { margin-bottom: 16px; }
.comment-form label { font-size: 13px; font-weight: 500; color: var(--ink-dim); display: block; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; }
.comment-form .submit { margin-top: 8px; }

/* ── Callout ──────────────────────────────────────────────────────────────── */
.callout {
  background: rgba(96,165,250,0.06);
  border: 1px solid rgba(96,165,250,0.2);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 24px 0;
}
.callout strong { color: var(--ink); }

/* ── Table ────────────────────────────────────────────────────────────────── */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.comparison-table th { text-align: left; padding: 12px 16px; background: var(--bg-3); border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--ink); }
.comparison-table td { padding: 12px 16px; border: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; line-height: 1.5; }
.comparison-table tr:hover td { background: var(--bg-2); }
.win-a { color: var(--blue); font-weight: 500; }
.win-b { color: var(--green); font-weight: 500; }
.tie { color: var(--purple); }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.testimonial-quote {
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-quote::before { content: '"'; color: var(--blue); font-size: 24px; line-height: 0; vertical-align: -8px; margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial-role { font-size: 12px; color: var(--ink-soft); }

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: var(--accent-glow);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
  position: relative;
}
.cta-section p {
  font-size: 16px;
  color: var(--ink-dim);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.6;
  position: relative;
}
.cta-section .btn { position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Stats Row ────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-cell { background: var(--bg-2); padding: 32px 24px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 60px 0 32px; }
.footer-top { display: grid; grid-template-columns: 260px 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--ink-dim); margin-bottom: 10px; transition: color var(--transition); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--ink-soft); transition: color var(--transition); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--ink-dim); }

/* ── Article (Blog Post) ──────────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.article-body h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin: 40px 0 16px; line-height: 1.2; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--ink); margin: 32px 0 12px; }
.article-body h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.article-body p { font-size: 16px; color: var(--ink-dim); line-height: 1.8; margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 16px; color: var(--ink-dim); line-height: 1.7; margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--pearl); }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
  margin: 28px 0;
  background: rgba(96,165,250,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
}
.article-body pre {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
  margin: 24px 0;
  line-height: 1.6;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blue);
}
.article-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-body img { border-radius: var(--radius); margin: 28px 0; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article-body th { background: var(--bg-3); border: 1px solid var(--line); padding: 10px 14px; font-weight: 600; color: var(--ink); text-align: left; }
.article-body td { border: 1px solid var(--line); padding: 10px 14px; color: var(--ink-dim); }
.article-body tr:hover td { background: var(--bg-2); }

/* Sidebar */
.article-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.toc-list { list-style: none; }
.toc-list a {
  font-size: 13px;
  color: var(--ink-dim);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  transition: color var(--transition);
  text-decoration: none;
}
.toc-list a:hover, .toc-list a.active { color: var(--blue); }
.toc-list li:last-child a { border-bottom: none; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--line-strong); }

/* ── Page Hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
}
.page-hero-inner { max-width: 680px; }
.page-hero h1 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero h1 em { font-family: var(--font-serif); font-style: italic; color: var(--blue); font-weight: 400; }
.page-hero p { font-size: 17px; color: var(--ink-dim); line-height: 1.6; }

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.contact-info-value { font-size: 14px; color: var(--ink-dim); }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 2px;
}
a.page-numbers, span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all var(--transition);
}
a.page-numbers:hover { color: var(--blue); border-color: var(--line-strong); }
span.current { color: var(--blue); background: rgba(96,165,250,0.08); border-color: rgba(96,165,250,0.3); }
a.prev.page-numbers, a.next.page-numbers { width: auto; padding: 0 14px; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.text-blue { color: var(--blue) !important; }
.text-green { color: var(--green) !important; }
.text-muted { color: var(--ink-dim); }
.text-soft { color: var(--ink-soft); }
.text-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.w-full { width: 100%; }

/* ── Scroll Animations ────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
[data-stagger] .fade-up:nth-child(1) { transition-delay: 0ms; }
[data-stagger] .fade-up:nth-child(2) { transition-delay: 80ms; }
[data-stagger] .fade-up:nth-child(3) { transition-delay: 160ms; }
[data-stagger] .fade-up:nth-child(4) { transition-delay: 240ms; }
[data-stagger] .fade-up:nth-child(5) { transition-delay: 320ms; }
[data-stagger] .fade-up:nth-child(6) { transition-delay: 400ms; }

/* ── Status / Badges ──────────────────────────────────────────────────────── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  display: inline-block;
}
.social-icon {
  width: 32px; height: 32px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--ink-dim);
  transition: all var(--transition);
  text-decoration: none;
}
.social-icon:hover { border-color: var(--blue); color: var(--blue); }

/* ── Backwards-compatibility aliases ─────────────────────────────────────── */
.glass-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color var(--transition); }
.glass-card:hover { border-color: var(--line-strong); }
.gradient-text { background: linear-gradient(135deg, var(--blue), var(--pearl)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-green { background: linear-gradient(135deg, var(--green), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, var(--blue), var(--pearl)); border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #0A1128; }
.section-subtitle { font-size: 17px; color: var(--ink-dim); max-width: 560px; line-height: 1.6; }
.stat-number { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-dim); margin-bottom: 6px; }
.form-input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 14px; font-family: var(--font-sans); font-size: 14px; color: var(--ink); transition: border-color var(--transition); outline: none; }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(96,165,250,0.1); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .cta-section { padding: 60px 28px; }
  .hero-stats { gap: 24px; }
  .page-hero { padding: 60px 0 40px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .cta-section { padding: 48px 20px; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}
