/* ===========================================================
   RazaAnalytics Inc. — Design System
   =========================================================== */

:root {
  --bg: #0a0b0f;
  --bg-alt: #101219;
  --bg-elevated: #14161f;
  --bg-elevated-hover: #191c27;
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --ink: #f4f4f6;
  --ink-muted: #a6a8b3;
  --ink-faint: #6b6d78;
  --accent: #6d6aff;
  --accent-bright: #857fff;
  --accent-ink: #ffffff;
  --gold: #d4a657;
  --teal: #3fd1b0;
  --danger: #ff6b6b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-md: 0 8px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --container: 1180px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent-bright);
}

.section {
  padding: 108px 0;
  border-bottom: 1px solid var(--border);
}
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-top: 14px;
}
.section-head p {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 1.08rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,11,15,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--accent), #3a37c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0;
}
.brand-name b { font-weight: 600; color: var(--ink); }
.brand-name span { display: block; font-family: var(--font-body); font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px; height: 40px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn-primary { display: none; }
  body.nav-open .mobile-nav { display: flex; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 26px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero {
  padding: 128px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(109,106,255,0.28), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  margin-top: 18px;
}
.hero h1 em { color: var(--accent-bright); font-style: normal; }
.hero p.lead {
  margin-top: 24px;
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 620px;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 76px;
}
.stat-strip div { background: var(--bg-alt); padding: 26px 22px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 6px;
  display: block;
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-elevated-hover);
}
.card-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-bright);
  letter-spacing: 0.06em;
}
.card h3 {
  font-size: 1.28rem;
  margin-top: 14px;
  font-weight: 500;
}
.card p { margin-top: 12px; color: var(--ink-muted); font-size: 0.96rem; }
.card .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.76rem;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink-muted);
}
.card ul.deliverables {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card ul.deliverables li {
  font-size: 0.86rem;
  color: var(--ink-muted);
  padding-left: 18px;
  position: relative;
}
.card ul.deliverables li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent-bright);
}

/* ---------- Quote ---------- */
.pull-quote {
  padding: 56px 0;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
  max-width: 900px;
}
.pull-quote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #1b1a3a, #0a0b0f 70%);
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  text-align: center;
  margin: 0 28px;
  border: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { margin-top: 16px; color: var(--ink-muted); }
.cta-band .hero-actions { justify-content: center; margin-top: 32px; }
@media (max-width: 640px) {
  .cta-band { padding: 48px 26px; }
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
  background: var(--bg-elevated-hover);
}
.price-badge {
  position: absolute; top: -13px; left: 30px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card .tier { font-size: 0.85rem; color: var(--accent-bright); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.price-card h3 { margin-top: 10px; font-size: 1.5rem; }
.price-card .price-type { color: var(--ink-faint); font-size: 0.85rem; margin-top: 6px; }
.price-card p.desc { margin-top: 16px; color: var(--ink-muted); font-size: 0.94rem; }
.price-card ul {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex: 1;
}
.price-card ul li {
  font-size: 0.88rem;
  color: var(--ink-muted);
  padding-left: 20px;
  position: relative;
}
.price-card ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--teal);
  font-size: 0.8rem;
}

/* ---------- Deliverable list rows ---------- */
.deliverable-row {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.deliverable-row:last-child { border-bottom: 1px solid var(--border); }
.deliverable-row h4 { font-size: 1.1rem; font-weight: 500; }
.deliverable-row .kicker { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; display: block; }
.deliverable-row p { color: var(--ink-muted); font-size: 0.92rem; }
.deliverable-row ul { margin: 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 8px; }
.deliverable-row ul li::after { content: "·"; margin-left: 8px; color: var(--ink-faint); }
.deliverable-row ul li:last-child::after { content: ""; }
.deliverable-row a.scope-link { font-size: 0.85rem; font-weight: 600; color: var(--accent-bright); white-space: nowrap; }
@media (max-width: 820px) {
  .deliverable-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Tools/tags cloud ---------- */
.tool-category { margin-bottom: 30px; }
.tool-category h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-tags .tag { background: var(--bg-elevated); }

/* ---------- Process steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: 1fr 1fr; } }
.process-step { padding: 26px 6px; border-top: 2px solid var(--accent); }
.process-step .num { font-family: var(--font-display); color: var(--ink-faint); font-size: 0.85rem; }
.process-step h4 { margin-top: 10px; font-size: 1.02rem; font-weight: 500; }

/* ---------- Industry list ---------- */
.industry-card { display: flex; gap: 18px; }
.industry-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}

/* ---------- About / bio ---------- */
.bio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .bio-layout { grid-template-columns: 1fr; gap: 40px; } }
.bio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: sticky;
  top: 100px;
}
.bio-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--accent), #3a37c9);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 20px;
}
.bio-card h3 { font-size: 1.35rem; }
.bio-card .role { color: var(--accent-bright); font-size: 0.88rem; margin-top: 6px; }
.bio-card .tagline { margin-top: 16px; color: var(--ink-muted); font-size: 0.92rem; font-style: italic; }
.bio-card .badges { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.bio-card .badge { font-size: 0.82rem; color: var(--ink-muted); padding-left: 20px; position: relative; }
.bio-card .badge::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 0.6rem; top: 4px; }

.timeline { display: grid; gap: 26px; }
.timeline-item {
  border-left: 2px solid var(--border-strong);
  padding-left: 26px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute; left: -6px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
}
.timeline-item h4 { font-size: 1.05rem; font-weight: 500; }
.timeline-item p { color: var(--ink-muted); margin-top: 8px; font-size: 0.93rem; }

/* ---------- Forms ---------- */
.form-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) { .form-layout { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  cursor: pointer;
  position: relative;
}
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill:has(input:checked) { border-color: var(--accent); color: var(--ink); background: rgba(109,106,255,0.12); }

.form-note { margin-top: 18px; font-size: 0.8rem; color: var(--ink-faint); }

.contact-side-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-side-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-faint); margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.contact-line { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.contact-line:first-of-type { border-top: none; }
.contact-line span:first-child { color: var(--ink-faint); }

.form-success {
  border: 1px solid var(--teal);
  background: rgba(63,209,176,0.08);
  border-radius: var(--radius-md);
  padding: 26px;
  font-size: 0.98rem;
  color: var(--ink);
}
.form-error {
  border: 1px solid var(--danger);
  background: rgba(255,107,107,0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { color: var(--ink-muted); font-size: 0.92rem; margin-top: 14px; max-width: 340px; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* ---------- misc ---------- */
.divider-note { text-align: center; color: var(--ink-faint); font-size: 0.9rem; margin-top: 40px; }
::selection { background: var(--accent); color: #fff; }
