/*
  EXORA - REDESIGNED STYLESHEET
  Design philosophy: Flat, spacious, and typography-focused.
*/

:root {
  /* Color Palette */
  --bg: #f8f7f4;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5e5c56;
  --accent: #0057ff;
  --accent-soft: #e5eeff;
  --border-color: #e5e3dd;

  /* Typography */
  --font-display: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  
  /* Sizing & Spacing */
  --radius: 16px;
  --radius-lg: 24px;
  --content-width: 1100px;
  --nav-height: 80px;
}

/* ------------------ Global Styles & Resets ------------------ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.75;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

/* ------------------ Reusable Components ------------------ */
.container {
  width: min(var(--content-width), 90%);
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-header {
  text-align: center;
  max-width: 65ch;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}

.section-header .section-lead {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  background-color: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.cta-button:hover {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.cta-button--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

section {
  padding-block: clamp(4rem, 10vw, 7rem);
}


/* ------------------ Navigation ------------------ */
.site-header {
  background-color: rgba(248, 247, 244, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.logo:hover {
  color: var(--ink);
  opacity: 1;
}

.logo-icon {
  display: grid;
  place-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease-out;
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--ink);
}

/* ------------------ Hero Section ------------------ */
.hero {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-copy .lead {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.link-button {
  font-weight: 600;
}

.mini-stats {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}
.mini-stats span {
  position: relative;
  padding-left: 14px;
}
.mini-stats span::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hero-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ------------------ Social Proof Section ------------------ */
.social-proof {
  padding-block: 4rem;
}

.proof-eyebrow {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  opacity: 0.5;
}

.logo-item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ------------------ Process Section ------------------ */
.process {
  background-color: var(--surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: process-step;
}

.process-step {
  padding: 2rem;
  background-color: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.process-step h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  max-width: 35ch;
}

/* ------------------ Features Section ------------------ */
.feature-list {
  display: grid;
  gap: 2rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent);
}
.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.feature-copy p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ------------------ Impact Section ------------------ */
.impact {
  background-color: var(--ink);
  color: var(--bg);
}

.impact-content {
  text-align: center;
}

.impact-header h2 {
  color: var(--surface);
  margin-bottom: 3rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat .label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ------------------ Testimonials Section ------------------ */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.quote-card {
  padding: 2.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.quote-mark {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 0.5;
}

.quote-card blockquote {
  margin: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  flex-grow: 1;
}

.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-content: center;
  font-weight: 600;
}

.name { font-weight: 600; }
.title { 
  font-size: 0.9rem;
  color: var(--muted);
}

/* ------------------ Final CTA Section ------------------ */
.final-cta {
  background-color: var(--accent);
  color: #fff;
}

.cta-header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}

.cta-header p {
  margin-block: 1.5rem 2.5rem;
  font-size: 1.125rem;
  opacity: 0.85;
}

.final-cta .cta-button {
  background-color: #fff;
  color: var(--accent);
}
.final-cta .cta-button:hover {
  background-color: transparent;
  border-color: #fff;
  color: #fff;
}

/* ------------------ Footer ------------------ */
.site-footer {
  padding: 3rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.footer-brand .logo { font-size: 1.1rem; }
.copyright {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 500;
}

/* ------------------ Responsive Adjustments ------------------ */
@media (max-width: 1024px) {
  .nav-links { display: none; } /* Simplified for example, could be a hamburger menu */
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16/9; }
  .hero-copy { text-align: center; }
  .hero-copy .lead, .mini-stats, .hero-actions { justify-content: center; margin-inline: auto; }
  
  .process-grid, .testi-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 600px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .feature-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .feature-icon { margin-inline: auto; }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------ Styles for Content Pages ------------------ */
.content-page {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.content-page .container {
  max-width: 800px; /* Optimal width for reading text */
}
.content-page h1, .content-page h2, .content-page h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}
.content-page h1:first-child {
  margin-top: 0;
}
.content-page p, .content-page li {
  color: var(--muted);
  line-height: 1.7;
}
.content-page .lead {
  font-size: 1.125rem;
  color: var(--ink);
}
.content-page ul {
  padding-left: 20px;
}
.content-page li {
  margin-bottom: 0.5rem;
}

.markdown-content {
  display: grid;
  gap: 1.5rem;
}
