/* ============================================
   MRodriguez Builders — Version C Premium Design
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --black: #111111;
  --red: #cc0000;
  --red-dark: #aa0000;
  --red-glow: rgba(204, 0, 0, 0.15);
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --border-gray: #e0e0e0;

  /* Fluid Typography */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --font-size-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --font-size-xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --font-size-2xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --font-size-3xl: clamp(3.5rem, 2.5rem + 5vw, 6rem);

  /* Spacing */
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  --space-md: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-lg: clamp(3rem, 2.5rem + 2.5vw, 5rem);
  --space-xl: clamp(5rem, 4rem + 5vw, 8rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-gray);
  line-height: 1.7;
  background: var(--white);
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Page Load Fade --- */
body {
  opacity: 0;
  animation: pageLoad 0.6s var(--ease-out-quad) 0.1s forwards;
}

@keyframes pageLoad {
  to { opacity: 1; }
}

/* --- Sticky Nav --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: transform 0.3s var(--ease-out-quad),
              background 0.3s var(--ease-out-quad),
              padding 0.3s var(--ease-out-quad);
}

.site-nav.nav-scrolled {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-nav.nav-hidden {
  transform: translateY(-100%);
}

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

.nav-brand {
  color: var(--white);
  font-weight: 700;
  font-size: var(--font-size-base);
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  color: var(--white) !important;
  background: var(--red);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s var(--ease-out-expo);
    padding: 2rem;
  }

  .nav-links.open { right: 0; }

  .nav-links a { font-size: var(--font-size-lg); }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: var(--space-xl) 0;
}

/* Hero background: architectural workspace photo */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.3);
}

/* Dark overlay for text readability */
.hero-bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Center vignette — keeps focus on text */
    radial-gradient(
      ellipse 80% 70% at 50% 45%,
      rgba(17, 17, 17, 0.65) 0%,
      rgba(17, 17, 17, 0.80) 50%,
      rgba(17, 17, 17, 0.92) 100%
    ),
    /* Red accent glow */
    radial-gradient(
      ellipse 50% 40% at 50% 50%,
      rgba(204, 0, 0, 0.08) 0%,
      transparent 70%
    );
}

/* Floor plan detail overlay — adds texture depth */
.hero-bg-detail {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.06;
  mix-blend-mode: screen;
  filter: contrast(1.5) brightness(1.2);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-logo {
  height: clamp(70px, 10vw, 100px);
  margin: 0 auto var(--space-md);
  /* Invert black text to white, restore red M, intense red */
  filter: invert(1) hue-rotate(180deg) saturate(3.5) brightness(1.15);
}

.hero h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.hero .subline {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}

.hero .cta-btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all 0.3s var(--ease-out-quad);
  box-shadow: 0 4px 24px rgba(204, 0, 0, 0.3);
  letter-spacing: 0.01em;
}

.hero .cta-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(204, 0, 0, 0.4);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.4;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Transitions (gradient dividers) --- */
.section-divider {
  height: 120px;
  pointer-events: none;
}

.section-divider--dark-to-light {
  background: linear-gradient(to bottom, var(--black), var(--white));
}

.section-divider--light-to-red {
  background: linear-gradient(to bottom, var(--white), var(--red));
}

.section-divider--red-to-gray {
  background: linear-gradient(to bottom, var(--red), var(--light-gray));
}

.section-divider--gray-to-light {
  background: linear-gradient(to bottom, var(--light-gray), var(--white));
}

.section-divider--light-to-gray {
  background: linear-gradient(to bottom, var(--white), var(--light-gray));
}

.section-divider--gray-to-dark {
  background: linear-gradient(to bottom, var(--light-gray), var(--black));
}

.section-divider--light-to-dark {
  background: linear-gradient(to bottom, var(--white), var(--black));
}

.section-divider--dark-to-gray {
  background: linear-gradient(to bottom, var(--black), var(--light-gray));
}

/* --- Problems Section --- */
.problems {
  padding: var(--space-xl) 0;
  background: var(--white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.problem-card {
  position: relative;
  padding: clamp(2rem, 3vw, 3rem);
  background: rgba(245, 245, 245, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  text-align: center;
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo),
              border-color 0.4s;
  /* Initial state for scroll animation */
  opacity: 0;
  transform: translateY(40px);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(204, 0, 0, 0.15);
}

.problem-card h3 {
  font-size: var(--font-size-lg);
  color: var(--black);
  margin-bottom: var(--space-xs);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.problem-card p {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* Decorative red accent line on card top */
.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
  transition: width 0.3s var(--ease-out-quad);
}

.problem-card:hover::before {
  width: 60px;
}

@media (max-width: 768px) {
  .problems-grid { grid-template-columns: 1fr; }
}

/* --- Credentials Section --- */
.credentials {
  background: var(--black);
  color: var(--white);
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

/* Blueprint texture background */
.credentials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/hero-plans.jpg') center/cover no-repeat;
  opacity: 0.04;
  filter: contrast(1.5) brightness(1.3);
  mix-blend-mode: screen;
}

/* White architectural grid overlay */
.credentials::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    );
  pointer-events: none;
}

/* Horizontal blueprint strip running behind the text */
.credentials-strip {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 60%;
  transform: translateY(-50%);
  overflow: hidden;
  pointer-events: none;
}

.credentials-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.07;
  filter: saturate(0) contrast(1.3) brightness(1.4);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  text-align: center;
}

.credential-card {
  padding: clamp(1.5rem, 2vw, 2.5rem) 1rem;
  position: relative;
}

/* Red top accent line */
.credential-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.credential-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
}

.credential-number-text {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.credential-label {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  margin-top: 0.75rem;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .credentials-grid { grid-template-columns: 1fr; gap: 0; }
  .credential-card { padding: 1.5rem 1rem; }
}

/* --- How It Works --- */
.how-it-works {
  padding: var(--space-xl) 0;
  background: var(--light-gray);
}

.section-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-heading h2 {
  font-size: var(--font-size-2xl);
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
}

.section-heading p {
  color: var(--medium-gray);
  font-size: var(--font-size-base);
  max-width: 600px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step-counter;
}

.step {
  text-align: center;
  padding: clamp(2rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  /* Initial state for stagger animation */
  opacity: 0;
  transform: translateY(40px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  position: relative;
  transition: background 0.3s, transform 0.3s;
}

.step:hover .step-number {
  background: var(--red);
  transform: scale(1.1);
}

.step h3 {
  color: var(--black);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* --- Articles --- */
.articles {
  padding: var(--space-xl) 0;
  background: var(--light-gray);
}

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

.article-card {
  display: block;
  background: var(--white);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-out-expo),
              box-shadow 0.4s var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.04);
  /* Initial state for scroll animation */
  opacity: 0;
  transform: translateX(-40px);
}

.article-card:nth-child(even) {
  transform: translateX(40px);
}

.article-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
  color: var(--black);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.article-card:hover h3 { color: var(--red); }

.article-card p {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.article-card .read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--red);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: transform 0.2s;
}

.article-card:hover .read-more {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
}

/* --- Chat Section --- */
.chat-section {
  padding: var(--space-xl) 0;
  background: var(--white);
  position: relative;
}

.chat-section .section-heading {
  margin-bottom: var(--space-md);
}

#chat-container {
  max-width: 560px;
  margin: 0 auto;
  border: 2px solid var(--border-gray);
  border-radius: 16px;
  overflow: hidden;
  height: 560px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  animation: chatGlow 3s ease-in-out infinite alternate;
}

@keyframes chatGlow {
  0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 0 0 rgba(204, 0, 0, 0); }
  100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 0 20px 2px rgba(204, 0, 0, 0.08); }
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm);
  background: var(--light-gray);
}

.chat-msg {
  margin-bottom: 12px;
  max-width: 85%;
}

.chat-msg.user {
  margin-left: auto;
  text-align: right;
}

.chat-msg .bubble {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.chat-msg.user .bubble {
  background: var(--red);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-msg.assistant .bubble {
  background: var(--white);
  color: var(--dark-gray);
  border: 1px solid var(--border-gray);
  border-bottom-left-radius: 4px;
}

#chat-input-area {
  display: flex;
  border-top: 2px solid var(--border-gray);
  background: var(--white);
}

#chat-input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: var(--font-size-sm);
  background: transparent;
}

#chat-input::placeholder { color: var(--medium-gray); }

#chat-send {
  padding: 16px 24px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-family: inherit;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: background 0.2s;
}

#chat-send:hover { background: var(--red-dark); }

.typing-indicator {
  display: none;
  padding: 10px 14px;
  color: var(--medium-gray);
  font-size: var(--font-size-xs);
  font-style: italic;
}

/* Conversation starter cards */
.chat-starters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 12px;
  background: var(--light-gray);
}

.starter-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--dark-gray);
  line-height: 1.3;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.starter-card:hover {
  border-color: var(--red);
  box-shadow: 0 2px 8px rgba(204, 0, 0, 0.1);
  transform: translateY(-1px);
}

.starter-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.starter-text {
  font-weight: 500;
}

/* Hide starters once conversation starts */
.chat-starters.hidden {
  display: none;
}

@media (max-width: 480px) {
  .chat-starters { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
  font-size: var(--font-size-sm);
  position: relative;
  overflow: hidden;
}

/* Red accent line at top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  z-index: 2;
}

/* Grid lines overlay (matches credentials) */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    );
  pointer-events: none;
}

/* Background architectural image strip */
.footer-bg-strip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.footer-bg-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.06;
  filter: saturate(0) contrast(1.3) brightness(1.4);
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-company {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--red);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ff3333;
  text-decoration: underline;
}

.footer-links {
  margin-top: var(--space-sm);
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

/* --- Article Pages --- */
.article-nav {
  background: var(--black);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.article-nav .nav-brand {
  font-size: var(--font-size-sm);
}

.article-nav .nav-back {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color 0.2s;
}

.article-nav .nav-back:hover { color: var(--white); }

.article-page {
  padding: var(--space-lg) 0;
  max-width: 720px;
  margin: 0 auto;
}

.article-page h1 {
  font-size: var(--font-size-xl);
  color: var(--black);
  margin-bottom: var(--space-xs);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.article-page .article-meta {
  color: var(--medium-gray);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-gray);
}

.article-page p {
  margin-bottom: var(--space-sm);
  color: var(--dark-gray);
  line-height: 1.8;
}

.article-page h2 {
  font-size: var(--font-size-lg);
  color: var(--black);
  margin: var(--space-md) 0 var(--space-xs);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.article-page ul, .article-page ol {
  margin: 0 0 var(--space-sm) 1.5rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

.article-page li {
  margin-bottom: var(--space-xs);
}

.article-page a {
  color: var(--red);
  font-weight: 500;
  transition: color 0.2s;
}

.article-page a:hover { color: var(--red-dark); text-decoration: underline; }

.article-cta {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--light-gray);
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.article-cta a {
  color: var(--red);
  font-weight: 600;
}

.article-cta a:hover { text-decoration: underline; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  body {
    opacity: 1;
    animation: none;
  }

  .problem-card,
  .step,
  .pricing-card,
  .article-card {
    opacity: 1;
    transform: none;
  }

  #chat-container {
    animation: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  }

  .scroll-indicator { animation: none; }
}
