/* ==========================================================================
   MOSTEC AI — Premium Landing Page Stylesheet
   Dark-themed, single-accent, high-whitespace consultancy design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --accent: #0CC481;
  --bg-deep: #050808;
  --bg-card: #111413;
  --bg-green: #0F1C16;
  --text-primary: #FFFFFF;
  --text-muted: rgba(237, 236, 228, 0.52);
  --border: rgba(237, 236, 228, 0.06);
  --glow: rgba(12, 196, 129, 0.15);
  --nav-bg: rgba(8, 8, 8, 0.35);
  --focus-ring: #4d65ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: white;
}

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

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

button {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   3. Grain Texture Overlay
   -------------------------------------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   4. Utility Classes
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-muted {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Section Headings (Global)
   -------------------------------------------------------------------------- */
/* Handles both <div class="section-heading"><h2>...</h2></div> and <h2 class="section-heading"> */
.section-heading {
  text-align: center;
  margin-bottom: 64px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-heading p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
}

.section-subheading {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: -40px auto 64px;
}

/* --------------------------------------------------------------------------
   7. Buttons (Global)
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #050808;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--glow);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 16px 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   8. Scroll Reveal Animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ==========================================================================
   SECTION STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   9. Navigation (.nav)
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 126px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-logo-icon {
  height: 112px;
  width: auto;
}

.accent {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  background: var(--accent);
  color: #050808;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 8px 0;
}

.nav-mobile .nav-link:hover {
  color: var(--text-primary);
}

.nav-mobile .btn-primary {
  text-align: center;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   10. Hero (.hero)
   -------------------------------------------------------------------------- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 24px auto 0;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   11. Marquee (.marquee)
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-size: 15px;
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.marquee-divider {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  user-select: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

/* --------------------------------------------------------------------------
   12. Pain Narrative (.narrative)
   -------------------------------------------------------------------------- */
.narrative {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-green) 50%, var(--bg-deep) 100%);
}

.narrative::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      rgba(237, 236, 228, 0.03) 49px,
      rgba(237, 236, 228, 0.03) 50px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49px,
      rgba(237, 236, 228, 0.03) 49px,
      rgba(237, 236, 228, 0.03) 50px
    );
  opacity: 0.05;
  pointer-events: none;
}

.narrative-block {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.narrative-block:last-of-type {
  margin-bottom: 0;
}

.narrative-block p {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-primary);
}

.narrative-cta {
  text-align: center;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.narrative-cta p,
.narrative-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   13. Process Cards (.process)
   -------------------------------------------------------------------------- */
.process {
  padding: 120px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--bg-green) 0%, transparent 50%) border-box;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.process-card:hover {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--bg-green) 0%, var(--accent) 100%) border-box;
  box-shadow: 0 0 40px var(--glow);
  transform: translateY(-4px);
}

.process-step {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
}

.process-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.process-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
}

/* --------------------------------------------------------------------------
   14. Testimonials (.testimonials)
   -------------------------------------------------------------------------- */
.testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  border-left: 3px solid var(--accent);
  position: relative;
}

.testimonial-card blockquote {
  font-size: 18px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  color: var(--text-muted);
}

.testimonial-name::after {
  content: ',';
}

/* --------------------------------------------------------------------------
   15. Stats Row (.stats)
   -------------------------------------------------------------------------- */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-text {
  font-size: clamp(28px, 4vw, 44px);
}

/* --------------------------------------------------------------------------
   16. Frameworks (.frameworks)
   -------------------------------------------------------------------------- */
.frameworks {
  padding: 120px 0;
}

.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.framework-card {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--bg-green) 0%, transparent 50%) border-box;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.framework-card:hover {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--bg-green) 0%, var(--accent) 100%) border-box;
  box-shadow: 0 0 40px var(--glow);
  transform: translateY(-4px);
}

.framework-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.framework-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Framework card — summary text */
.framework-summary {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
}

/* Framework card — hidden detail panel (accordion) */
.framework-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.framework-card.expanded .framework-detail {
  opacity: 1;
  /* max-height is set dynamically via JS */
}

.framework-detail p {
  padding-top: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* Framework toggle button */
.framework-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.framework-toggle:hover {
  color: var(--accent);
}

.framework-card.expanded .framework-toggle {
  color: var(--accent);
}

.framework-toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.framework-card.expanded .framework-toggle-icon {
  transform: rotate(180deg);
}

.framework-card.expanded .framework-toggle-text::after {
  content: '';
}

/* "View all systems" collapsible section */
.frameworks-more {
  text-align: center;
  margin-top: 48px;
}

.frameworks-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 28px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.frameworks-more-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.frameworks-more-toggle.active {
  color: var(--accent);
  border-color: var(--accent);
}

.frameworks-more-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.frameworks-more-toggle.active .frameworks-more-icon {
  transform: rotate(180deg);
}

.frameworks-more-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.frameworks-more-list.open {
  opacity: 1;
}

.frameworks-more-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 32px;
}

.framework-name {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.framework-name:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--glow);
}

/* --------------------------------------------------------------------------
   17. FAQ (.faq)
   -------------------------------------------------------------------------- */
.faq {
  padding: 120px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s ease;
  gap: 16px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-chevron {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.faq-item.active .faq-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 0 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   18. Final CTA (.cta-section)
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-green) 100%);
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cta-section .cta-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 20px auto 40px;
  line-height: 1.6;
}

.cta-emails {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-muted);
}

.cta-emails a {
  color: var(--accent);
  transition: text-decoration 0.2s ease;
}

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

.cta-email-divider {
  margin: 0 8px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. Footer (.footer)
   -------------------------------------------------------------------------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.footer-logo-icon {
  height: 77px;
  width: auto;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 300px;
}

.footer-column-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-link {
  color: var(--text-muted);
  font-size: 14px;
  display: block;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Coming soon tooltip for social links */
.social-link-wrapper {
  position: relative;
  display: inline-flex;
}

.coming-soon-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
}

.coming-soon-tooltip.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.coming-soon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--accent);
}

.footer-legal {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablet (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .stats-row {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Navigation — hide desktop links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 120px 0 80px;
  }

  /* Grids — single column */
  .process-grid,
  .frameworks-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-row {
    flex-direction: column;
    gap: 32px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    order: -1;
  }

  /* Section padding reductions */
  .narrative,
  .process,
  .frameworks,
  .faq,
  .cta-section {
    padding: 80px 0;
  }

  .testimonials {
    padding: 80px 0;
  }

  .stats {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  /* Narrative blocks */
  .narrative-block {
    margin-bottom: 40px;
  }

  .narrative-block p {
    font-size: clamp(20px, 3vw, 28px);
  }
}

/* --------------------------------------------------------------------------
   Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Hero buttons stack */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    text-align: center;
  }

  /* Always show gradient borders on cards (touch devices) */
  .process-card {
    background:
      linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
      linear-gradient(135deg, var(--bg-green) 0%, var(--accent) 100%) border-box;
  }

  .framework-card {
    background:
      linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
      linear-gradient(135deg, var(--bg-green) 0%, var(--accent) 100%) border-box;
  }

  /* General padding reductions */
  .container {
    padding: 0 16px;
  }

  .process-card,
  .framework-card {
    padding: 32px 24px;
  }

  .testimonial-card {
    padding: 32px 24px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .narrative,
  .process,
  .frameworks,
  .faq,
  .cta-section,
  .testimonials {
    padding: 64px 0;
  }

  .stats {
    padding: 48px 0;
  }

  .faq-question {
    font-size: 16px;
  }
}
