/* ============================================
   Anderson Duran Consulting — Landing Page
   Aesthetic: Refined Editorial / Precision Engineering
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --slate-950: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue-accent: #2563eb;
  --blue-deep: #1e40af;
  --blue-light: #dbeafe;
  --blue-50: #eff6ff;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ---- Utility ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--blue-accent);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--slate-200);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--slate-950);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand span {
  color: var(--blue-accent);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--blue-accent);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:not(.nav-cta):hover {
  color: var(--slate-950);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--slate-950);
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background: var(--blue-accent) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-800);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(3.5px, 3.5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-300), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 3rem;
  height: 2px;
  background: var(--blue-accent);
  display: inline-block;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--slate-950);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--blue-accent);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
  font-weight: 300;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--slate-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  background: transparent;
  color: var(--slate-700);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1.5px solid var(--slate-300);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--slate-500);
  color: var(--slate-950);
  transform: translateY(-1px);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  animation: scaleIn 1s var(--ease-out-expo) 0.4s both;
}

.hero-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 4px 20px rgba(15, 23, 42, 0.06);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-image-accent {
  position: absolute;
  top: -1.5rem;
  right: -1.5rem;
  width: 120px;
  height: 120px;
  border: 2px solid var(--blue-accent);
  border-radius: 12px;
  opacity: 0.3;
  z-index: -1;
}

.hero-image-dot-grid {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--slate-400) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.5;
  z-index: -1;
}

/* ---- Stats Bar ---- */
.stats-bar {
  padding: 4rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--slate-200);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--slate-950);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: var(--blue-accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---- Services Section ---- */
.services {
  padding: 7rem 0;
  position: relative;
}

.services-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.services-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--slate-950);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.services-header p {
  font-size: 1.05rem;
  color: var(--slate-500);
  font-weight: 300;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--blue-accent);
  border-radius: 0 2px 2px 0;
  transition: height 0.4s var(--ease-out-expo);
}

.service-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  transform: translateY(-4px);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--blue-accent);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--slate-950);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.75;
  font-weight: 300;
}

/* ---- About Section ---- */
.about {
  padding: 7rem 0;
  background: var(--white);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-200), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  position: relative;
}

.about-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.about-image-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--slate-950);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
}

.about-image-badge span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--blue-accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--slate-950);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.about-content > p {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.about-ventures {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.about-ventures h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
}

.venture-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.venture-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate-700);
  font-weight: 500;
}

.venture-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-accent);
  flex-shrink: 0;
}

/* ---- Case Study / Proof Section ---- */
.case-study {
  padding: 5rem 0;
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
}

.case-study::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  pointer-events: none;
}

.case-study-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.case-study-content .section-label {
  color: var(--blue-accent);
}

.case-study-content .section-label::before {
  background: var(--blue-accent);
}

.case-study-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.case-study-content p {
  font-size: 1rem;
  color: var(--slate-400);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1rem;
}

.tools-replaced {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tool-tag {
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--slate-300);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.6);
}

.tool-tag.replacement {
  text-decoration: none;
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--blue-accent);
  font-weight: 600;
}

.case-study-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cs-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.cs-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cs-stat-number span {
  color: var(--blue-accent);
}

.cs-stat-label {
  font-size: 0.82rem;
  color: var(--slate-400);
  font-weight: 500;
}

/* ---- CTA Section ---- */
.cta {
  padding: 7rem 0;
  background: var(--white);
  text-align: center;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-light), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--slate-950);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-content > p {
  font-size: 1.1rem;
  color: var(--slate-500);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 2.5rem;
  background: var(--slate-950);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s var(--ease-out-expo);
  letter-spacing: 0.01em;
}

.cta-email:hover {
  background: var(--blue-accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.3);
}

.cta-email svg {
  width: 20px;
  height: 20px;
}

.cta-subtext {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--slate-400);
  font-weight: 400;
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--slate-950);
}

.footer-brand span {
  color: var(--blue-accent);
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--slate-400);
}

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

.footer-links a {
  font-size: 0.82rem;
  color: var(--slate-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--blue-accent);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about-grid {
    gap: 3rem;
  }

  .case-study-inner {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-image-wrapper {
    max-width: 380px;
    margin: 0 auto;
    order: -1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }

  .about-ventures {
    text-align: left;
  }

  .case-study-inner {
    grid-template-columns: 1fr;
  }

  .case-study-stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-item::after {
    display: none !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
  }
}
