/* ============================================
   STRATEGYPROJECT.AI - Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Colors - Emerald & Limed Spruce Palette */
  --color-bg-primary: #2a3738;
  /* Darker Limed Spruce */
  --color-bg-secondary: #3D5253;
  /* Base Limed Spruce */
  --color-bg-card: #4a5d5e;
  /* Lighter Limed Spruce */
  --color-accent: #52B85C;
  /* Softer Emerald (less saturated) */
  --color-accent-hover: #429647;
  /* Darker Emerald on hover */
  --color-accent-light: rgba(94, 204, 103, 0.15);
  /* Emerald with transparency */
  --color-text-primary: #E8F4EA;
  /* Soft white with green tint */
  --color-text-secondary: #B8D6BB;
  /* Muted green-gray */
  --color-text-muted: #8BA18D;
  /* Darker muted green */
  --color-border: rgba(94, 204, 103, 0.15);
  /* Subtle Emerald border */
  --color-border-accent: rgba(82, 184, 92, 0.5);
  /* Stronger Emerald border */

  /* RGB Values for Gradients */
  --rgb-bg-primary: 42, 55, 56;
  --rgb-bg-secondary: 61, 82, 83;
  --rgb-accent: 82, 184, 92;

  /* Complementary Colors - Warmth/Humanity */
  --color-complementary: #C89F70;
  /* Dusty Gold / Sand */
  --color-complementary-hover: #B38C5D;
  /* Darker Sand */
  --color-complementary-light: rgba(200, 159, 112, 0.15);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
  /* New monospace font for header */

  /* Font Sizes - Optimized for Space Grotesque */
  --text-xs: 0.875rem;
  /* 14px */
  --text-sm: 1rem;
  /* 16px - Base size increased for readability */
  --text-base: 1.125rem;
  /* 18px - Larger base text for authority/trust */
  --text-lg: 1.25rem;
  /* 20px */
  --text-xl: 1.5rem;
  /* 24px */
  --text-2xl: 2rem;
  /* 32px */
  --text-3xl: 2.5rem;
  /* 40px */
  --text-4xl: 3rem;
  /* 48px */
  --text-5xl: 3.75rem;
  /* 60px */
  --text-6xl: 4.5rem;
  /* 72px */
  --text-7xl: 5.5rem;
  /* 88px - Massive headings for impact */

  @media (max-width: 768px) {
    --text-4xl: 2.25rem;
    --text-5xl: 2.75rem;
    --text-6xl: 3.25rem;
    --text-7xl: 3.75rem;
  }

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(94, 204, 103, 0.3);
  /* Emerald glow */

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--space-6);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  /* Ensure regular weight */
  line-height: 1.6;
  letter-spacing: -0.01em;
  /* Better reading rhythm for Space Grotesque */
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* 5. Smooth Page Entry */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- V4 Hyper-Premium Aesthetics --- */

/* 1. Blueprint Grid Background */
.blueprint-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* 2. Mesh Aura Animation */
.mesh-aura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.mesh-blob.emerald {
  background: var(--color-accent);
  width: 40vw;
  height: 40vw;
  top: -10vw;
  left: -10vw;
  animation: orbit1 20s infinite linear;
}

.mesh-blob.cobalt {
  background: rgba(45, 134, 89, 0.8);
  width: 50vw;
  height: 50vw;
  bottom: -15vw;
  right: -5vw;
  animation: orbit2 25s infinite linear reverse;
  mask-image: linear-gradient(to bottom, white 50%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, white 50%, transparent 90%);
}

@keyframes orbit1 {
  0% {
    transform: rotate(0deg) translateX(5vw) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(5vw) rotate(-360deg);
  }
}

@keyframes orbit2 {
  0% {
    transform: rotate(0deg) translateX(10vw) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(10vw) rotate(-360deg);
  }
}

/* 3. Data-Tech Typography */
.tech-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.status-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 0 rgba(82, 184, 92, 0.7);
  animation: pulsing 2s infinite cubic-bezier(0.66, 0, 0, 1);
  vertical-align: middle;
  flex-shrink: 0;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Ensure buttons with pulse dots have relative positioning */
.btn:has(.status-pulse) {
  position: relative;
}

@keyframes pulsing {
  to {
    box-shadow: 0 0 0 10px rgba(82, 184, 92, 0);
  }
}

/* --- Micro-Interactions & Browser Styles --- */

/* 1. Custom Text Selection - Premium Feel */
::selection {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* 2. Custom Scrollbar - Sleek & Dark */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #4a5d5e;
  /* Lighter Limed Spruce */
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-primary);
  /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
  /* Green on hover */
}

/* 3. Smooth Focus States */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* 4. Subtle Image Hover - Breathing Effect */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.split-image:hover img {
  transform: scale(1.03);
  /* Very subtle zoom on hover */
}

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

ul {
  list-style: none;
}

/* 8. Modern Custom List Markers */
ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Arrow decoration removed - using custom markers in HTML instead */

ol {
  list-style: none;
  counter-reset: item;
}

ol li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

ol li::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-weight: bold;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  /* Tighter tracking for modern look */
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  /* Impactful display text */
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

@media (min-width: 768px) {
  h2 {
    font-size: var(--text-5xl);
  }

  h3 {
    font-size: var(--text-4xl);
  }
}

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

/* 6. Text Gradient - Modern & Premium */
.text-gradient {
  background: linear-gradient(135deg, #E8F4EA 0%, #5ECC67 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.label {
  font-size: var(--text-sm);
  font-weight: 600;
  /* Slightly bolder for labels */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* Reduced tracking for wide font */
  color: var(--color-accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-20) 0;
}

.section-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0;
}

.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

.due-modi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  max-width: 900px;
  margin: var(--space-12) auto 0;
}

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

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-8);
    /* Increased lateral padding for readability */
  }

  .section {
    padding: var(--space-16) 0;
  }

  .due-modi-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-accent);
  padding: var(--space-2) 0;
}

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

.btn-ghost::after {
  content: ' →';
  transition: transform var(--transition-fast);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* --- Cards --- */
.card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card>* {
  position: relative;
  z-index: 1;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(94, 204, 103, 0.08),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:active {
  transform: scale(0.98);
}

.card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(94, 204, 103, 0.15),
    0 0 40px rgba(94, 204, 103, 0.05);
  /* Multi-layer Emerald glow */
}

/* Badge for Reading Time */
.read-time-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: var(--space-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.read-time-badge::before {
  content: '⏱';
  margin-right: 6px;
  font-size: 0.9em;
  opacity: 0.8;
}

.card-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  background: rgba(42, 55, 56, 0.5);
  /* Transparent Limed Spruce for liquid effect */
  backdrop-filter: blur(20px) saturate(180%);
  /* Apple Liquid Glass */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(94, 204, 103, 0.05);
  transition: all var(--transition-base);
}

.header.scrolled {
  padding: var(--space-3) 0;
  /* Shrink on scroll */
  background: rgba(42, 55, 56, 0.7);
  /* Slightly more opaque on scroll */
  border-bottom: 1px solid rgba(94, 204, 103, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(25px) saturate(200%);
  /* Stronger effect on scroll */
  -webkit-backdrop-filter: blur(25px) saturate(200%);
}

/* Reading Progress Bar */
.reading-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1001;
  /* Above header */
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px var(--color-accent);
}

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

@media (max-width: 768px) {
  .header-inner .btn {
    display: none;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand .logo-icon {
  height: 40px;
  margin-bottom: var(--space-4);
}

.nav {
  display: none;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-mono);
  /* Monospace per richiesta */
  font-size: var(--text-xs);
  /* Mono tends to look larger */
  font-weight: 500;
  text-transform: uppercase;
  /* Spesso sta meglio col mono */
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation - Full Screen Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  /* Dynamic viewport height for mobile browsers */
  z-index: 9999;
  /* Above everything */
  background-color: #2a3738;
  /* Base Limed Spruce */
  padding: 80px var(--space-6) var(--space-8);
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* Mobile nav links styling */
.mobile-nav .nav-link {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  display: block;
  text-decoration: none;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.active {
  color: #5ECC67;
}

/* Remove arrow on mobile nav links */
.mobile-nav .nav-link::before {
  display: none;
}

/* Close button for mobile nav */
.mobile-close-btn {
  position: fixed;
  top: 16px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0f1a;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10000;
}

.mobile-close-btn:hover {
  border-color: #5ECC67;
  color: #5ECC67;
}

/* Body scroll lock when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Sticky Share Buttons */
.sticky-share {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
  background: rgba(26, 35, 50, 0.4);
  /* Thinner opacity */
  padding: 10px;
  /* Reduced padding */
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle border */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  /* Apple liquid glass */
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: none;
  /* JS will enable */
}

.sticky-share.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 1024px) {
  .sticky-share {
    left: 50%;
    transform: translateX(-50%);
    /* Dynamic center fix on mobile */
    bottom: 24px;
    /* Float above bottom */
    top: auto;
    width: auto;
    /* Shrink to fit */
    flex-direction: row;
    justify-content: center;
    border-radius: var(--radius-full);
    /* Keep rounded on mobile */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    /* Reduced height */
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
}

/* Footer Newsletter Widget */
.footer-newsletter-widget {
  margin-top: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.footer-newsletter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.footer-newsletter-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(94, 204, 103, 0.2);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-secondary);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    justify-content: center;
    align-items: start;
    gap: var(--space-12);
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand p {
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
  max-width: 280px;
  text-align: center;
}

.footer-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-card);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-24) var(--space-6);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(var(--rgb-bg-primary), 0.6),
      rgba(var(--rgb-bg-primary), 0.95));
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-2xl);
  }
}

/* --- Section Indicators - Liquid Glass Effect --- */
.section-indicators {
  position: fixed;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: none;

  /* Liquid Glass Effect */
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Smooth transitions */
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade out when scrolling - controlled by JS */
.section-indicators.faded {
  opacity: 0.15;
  transform: translateY(-50%) translateX(-10px);
}

.section-indicators:hover {
  opacity: 1 !important;
  transform: translateY(-50%) translateX(0) !important;
}

@media (min-width: 1024px) {
  .section-indicators {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Removed asymmetrical padding for symmetry */
  main .section-full>.container,
  main .section>.container {
    padding-left: var(--container-padding);
  }

  /* Keep hero centered */
  main .hero .hero-content {
    margin: 0 auto;
  }
}

@media (min-width: 1280px) {
  .section-indicators {
    left: var(--space-8);
  }

  main .section-full>.container,
  main .section>.container {
    padding-left: var(--container-padding);
  }
}

.section-indicator {
  font-family: var(--font-mono);
  /* Consistent with header */
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.section-indicator:hover {
  color: var(--color-text-secondary);
}

.section-indicator.active {
  color: var(--color-accent);
}

.section-indicator::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.section-indicator.active::before {
  width: 24px;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

/* --- Split Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

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

.split-reverse {
  direction: rtl;
}

.split-reverse>* {
  direction: ltr;
}

.split-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split-image img {
  width: 100%;
  height: auto;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.05);
  /* Premium Glassmorphism */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(94, 204, 103, 0.2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Newsletter Embed --- */
.newsletter-box {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e5a3a 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
}

.newsletter-box h3 {
  margin-bottom: var(--space-4);
}

.newsletter-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.newsletter-form input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(94, 204, 103, 0.2);
}

.newsletter-form .btn {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
}

.newsletter-form .btn:hover {
  background-color: var(--color-bg-secondary);
}

/* --- Article Preview Cards --- */
.article-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.article-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(45, 134, 89, 0.2);
}

.article-card h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.article-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.article-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Article List (Archive Style) --- */
.article-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.article-list-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .article-list-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.article-list-item:hover {
  border-color: var(--color-accent);
  background-color: rgba(45, 134, 89, 0.05);
  transform: translateX(4px);
}

.article-list-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.article-list-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.article-list-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Mobile: Article cards responsive */
@media (max-width: 768px) {
  .article-card {
    padding: var(--space-5);
  }

  .article-card h4 {
    font-size: var(--text-base);
  }

  .article-list-item {
    padding: var(--space-4);
  }

  .article-list-content h4 {
    font-size: var(--text-sm);
  }
}

/* ============================================
   BLOG GRID & CARDS WITH IMAGES
   ============================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

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

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(45, 134, 89, 0.2);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-card));
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.blog-card-title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--color-text-primary);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  flex: 1;
}

/* Skeleton loading states */
.blog-card-skeleton {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(90deg, var(--color-bg-secondary) 25%, var(--color-bg-card) 50%, var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, var(--color-bg-secondary) 25%, var(--color-bg-card) 50%, var(--color-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin: var(--space-4);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   ARTICLE READER PAGE
   ============================================ */

.article-page {
  padding: 120px 0 var(--space-16);
}

.article-back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  transition: color var(--transition-fast);
}

.article-back-link:hover {
  color: var(--color-accent);
}

.article-header {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-8);
}

.article-date {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.article-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .article-title {
    font-size: var(--text-3xl);
  }
}

.article-author {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

.article-featured-image {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-10);
}

.article-hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

.article-content {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.article-content h2 {
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin: var(--space-10) 0 var(--space-4);
}

.article-content h3 {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin: var(--space-8) 0 var(--space-3);
}

.article-content p {
  margin-bottom: var(--space-6);
}

.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.article-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-text-primary);
}

.article-content ul,
.article-content ol {
  margin: var(--space-6) 0;
  padding-left: var(--space-6);
}

.article-content li {
  margin-bottom: var(--space-3);
}

/* Share buttons */
.article-share {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-10);
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.share-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(45, 134, 89, 0.1);
}

/* Newsletter CTA in article */
.article-newsletter-cta {
  max-width: 700px;
  margin-top: var(--space-12);
  padding: var(--space-10);
  background: linear-gradient(135deg, var(--color-accent), #1e5a3a);
  border-radius: var(--radius-2xl);
  text-align: center;
}

.article-newsletter-cta h3 {
  margin-bottom: var(--space-3);
}

.article-newsletter-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--space-16) 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  background-color: var(--color-text-primary);
  color: var(--color-accent);
}

.cta-section .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* --- Utilities --- */
.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* Mobile Header Adjustments */
@media (max-width: 768px) {
  .header {
    padding: var(--space-3) 0;
  }

  .header-inner {
    padding: 0 var(--space-4);
  }

  .logo {
    font-size: 0.875rem;
    /* Smaller logo on mobile */
    letter-spacing: -0.02em;
  }

  .btn-outline {
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
  }

  /* Hide desktop contact button on very small screens */
  @media (max-width: 400px) {
    .header .btn-outline {
      display: none;
    }
  }
}

/* Mobile Typography Adjustments */
@media (max-width: 768px) {
  :root {
    --text-base: 1rem;
    /* Smaller base on mobile */
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 2.75rem;
    --text-6xl: 3.25rem;
    --text-7xl: 4rem;
  }

  body {
    font-size: 1rem;
    line-height: 1.7;
  }

  h1 {
    font-size: var(--text-4xl);
    line-height: 1.15;
  }

  h2 {
    font-size: var(--text-3xl);
    line-height: 1.2;
  }

  h3 {
    font-size: var(--text-2xl);
  }

  h4 {
    font-size: var(--text-xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg) !important;
  }
}

/* Mobile Spacing & Layout */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-10) 0;
  }

  .section-full {
    min-height: auto;
    padding: var(--space-12) 0;
  }

  /* Hero mobile */
  .hero {
    min-height: calc(100vh - 60px);
    padding: var(--space-16) var(--space-4);
  }

  .hero-content {
    padding: 0;
  }

  /* Buttons on mobile */
  .flex.gap-4 {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }

  .hero .btn {
    width: 100%;
  }

  /* Cards on mobile */
  .card {
    padding: var(--space-6);
  }

  /* Split sections on mobile */
  .split {
    gap: var(--space-8);
  }

  /* Footer on mobile */
  .footer {
    padding: var(--space-10) 0 var(--space-6);
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* Small phone adjustments */
@media (max-width: 380px) {
  .logo {
    font-size: 0.75rem;
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: 0.875rem;
  }
}

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

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

/* --- Complementary Utilities --- */
.text-complementary {
  color: var(--color-complementary);
}

.bg-complementary {
  background-color: var(--color-complementary);
  color: #1a2332;
}

.btn-complementary {
  background-color: var(--color-complementary);
  color: #1a2332;
  font-weight: 700;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-base);
}

.btn-complementary:hover {
  background-color: var(--color-complementary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 140, 105, 0.3);
}

.icon-complementary {
  color: var(--color-complementary);
}

.border-complementary {
  border-color: var(--color-complementary);
}

/* ============================================
   Section Gradient Transitions
   ============================================ */

/* Primary to Secondary gradient (dark to lighter) */
.section-transition-primary-secondary {
  position: relative;
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-primary)) 0%,
      rgb(var(--rgb-bg-primary)) 70%,
      rgb(var(--rgb-bg-secondary)) 100%);
}

/* Secondary to Primary gradient (light to darker) */
.section-transition-secondary-primary {
  position: relative;
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-secondary)) 0%,
      rgb(var(--rgb-bg-secondary)) 70%,
      rgb(var(--rgb-bg-primary)) 100%);
}

/* Smooth overlay for bottom of sections */
.section-gradient-overlay-bottom {
  position: relative;
}

.section-gradient-overlay-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(var(--rgb-bg-secondary), 0.3) 50%,
      rgba(var(--rgb-bg-secondary), 0.8) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Smooth overlay for top of sections */
.section-gradient-overlay-top {
  position: relative;
}

.section-gradient-overlay-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom,
      rgba(var(--rgb-bg-primary), 0.8) 0%,
      rgba(var(--rgb-bg-primary), 0.3) 50%,
      transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Full section with gradient background */
.section-gradient-full {
  background: linear-gradient(180deg,
      rgb(var(--rgb-bg-primary)) 0%,
      rgb(var(--rgb-bg-secondary)) 50%,
      rgb(var(--rgb-bg-primary)) 100%);
}

/* Subtle accent gradient for CTA sections */
.section-gradient-accent {
  background: linear-gradient(135deg,
      rgba(var(--rgb-accent), 0.95) 0%,
      rgba(var(--rgb-accent), 1) 50%,
      rgba(var(--rgb-accent), 0.95) 100%);
}

/* Fade-out gradient at bottom (for sections ending) */
.section-fade-bottom {
  position: relative;
}

.section-fade-bottom::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom,
      rgba(var(--rgb-bg-primary), 1) 0%,
      rgba(var(--rgb-bg-primary), 0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Fade from dark to light at section bottom */
.section-fade-to-light {
  position: relative;
}

.section-fade-to-light::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-primary)) 0%,
      rgb(var(--rgb-bg-secondary)) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Fade from accent (green) to dark */
.section-fade-accent-to-dark {
  position: relative;
}

.section-fade-accent-to-dark::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom,
      rgba(var(--rgb-accent), 1) 0%,
      rgb(var(--rgb-bg-secondary)) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   Robust Gradient Spacers (Active Fix)
   ============================================ */

.section-spacer {
  width: 100%;
  height: 120px;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
  margin-top: -1px;
  /* Prevent sub-pixel gaps */
}

/* Dark (Primary) to Light (Secondary) */
.spacer-primary-secondary {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-primary)) 0%,
      rgb(var(--rgb-bg-secondary)) 100%);
}

/* Light (Secondary) to Dark (Primary) */
.spacer-secondary-primary {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-secondary)) 0%,
      rgb(var(--rgb-bg-primary)) 100%);
}

/* Accent (Green) to Dark (Primary) */
.spacer-accent-primary {
  background: linear-gradient(to bottom,
      rgba(var(--rgb-accent), 1) 0%,
      rgb(var(--rgb-bg-primary)) 100%);
}

/* Accent (Green) to Light (Secondary) */
.spacer-accent-secondary {
  background: linear-gradient(to bottom,
      rgba(var(--rgb-accent), 1) 0%,
      rgb(var(--rgb-bg-secondary)) 100%);
}

/* Dark (Primary) to Accent (Green) */
.spacer-primary-accent {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-primary)) 0%,
      rgba(var(--rgb-accent), 1) 100%);
}

/* Hero Internal Overlay */
.hero-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgb(var(--rgb-bg-primary)) 100%);
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   Internal Background Gradients (Seamless Flow)
   ============================================ */

/* Secondary -> Primary (Bottom Fade) */
.bg-gradient-sec-pri {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-secondary)) 0%,
      rgb(var(--rgb-bg-secondary)) 80%,
      rgb(var(--rgb-bg-primary)) 100%) !important;
}

/* Primary -> Accent/Green (Bottom Fade) */
.bg-gradient-pri-acc {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-primary)) 0%,
      rgb(var(--rgb-bg-primary)) 80%,
      rgba(var(--rgb-accent), 1) 100%) !important;
}

/* Accent/Green -> Secondary (Bottom Fade) */
.bg-gradient-acc-sec {
  background: linear-gradient(to bottom,
      rgba(var(--rgb-accent), 1) 0%,
      rgba(var(--rgb-accent), 1) 80%,
      rgb(var(--rgb-bg-secondary)) 100%) !important;
}

/* Accent/Green -> Primary (Bottom Fade) */
.bg-gradient-acc-pri {
  background: linear-gradient(to bottom,
      rgba(var(--rgb-accent), 1) 0%,
      rgba(var(--rgb-accent), 1) 80%,
      rgb(var(--rgb-bg-primary)) 100%) !important;
}

/* ============================================
   FULL HEIGHT GRADIENT OVERRIDES (0% -> 100%)
   ============================================ */

/* Secondary -> Primary */
.bg-gradient-sec-pri {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-secondary)) 0%,
      rgb(var(--rgb-bg-primary)) 100%) !important;
}

/* Primary -> Accent/Green */
.bg-gradient-pri-acc {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-primary)) 0%,
      rgba(var(--rgb-accent), 1) 100%) !important;
}

/* Accent/Green -> Secondary */
.bg-gradient-acc-sec {
  background: linear-gradient(to bottom,
      rgba(var(--rgb-accent), 1) 0%,
      rgb(var(--rgb-bg-secondary)) 100%) !important;
}

/* Accent/Green -> Primary */
.bg-gradient-acc-pri {
  background: linear-gradient(to bottom,
      rgba(var(--rgb-accent), 1) 0%,
      rgb(var(--rgb-bg-primary)) 100%) !important;
}

/* Primary -> Secondary */
.bg-gradient-pri-sec {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-primary)) 0%,
      rgb(var(--rgb-bg-secondary)) 100%) !important;
}

/* Secondary -> Accent/Green */
.bg-gradient-sec-acc {
  background: linear-gradient(to bottom,
      rgb(var(--rgb-bg-secondary)) 0%,
      rgba(var(--rgb-accent), 1) 100%) !important;
}

/* Hero Overlay - Taller & Stronger Start */
.hero-bottom-overlay {
  height: 350px !important;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(var(--rgb-bg-primary), 0.5) 30%,
      rgb(var(--rgb-bg-primary)) 80%,
      rgb(var(--rgb-bg-primary)) 100%) !important;
}

/* ============================================
   ICON BULLETS & FOOTER FIXES
   ============================================ */

/* List item with icon bullet */
.icon-bullet-item {
  position: relative;
  margin-bottom: var(--space-6);
  padding-left: 32px;
}

.icon-bullet-item:last-child {
  margin-bottom: 0;
}

/* Icon marker (✗ or ✓) */
.icon-bullet-item .bullet-icon {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* Red X for problem card */
.card-problem .bullet-icon {
  color: var(--color-complementary);
}

/* Green check for solution card */
.card-solution .bullet-icon {
  color: var(--color-accent);
}

/* Footer Grid Sizing */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

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

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

/* ==============================
   Metodo Cards - CSS Subgrid
   Forces all 3 cards to share row heights
   ============================== */
.metodo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: var(--space-8);
}

.metodo-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  cursor: pointer;
}

.metodo-number {
  text-align: center;
}

.metodo-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: var(--space-4);
}

.metodo-title .accordion-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 8px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

  .metodo-card {
    grid-row: auto;
    grid-template-rows: auto auto auto;
  }
}

/* ==============================
   Problema/Soluzione - Shared Grid Alignment
   Forces both cards to share row heights
   ============================== */
.problema-soluzione-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-16);
}

.problema-soluzione-card {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  border-left-width: 4px;
  border-left-style: solid;
  position: relative;
  padding-left: var(--space-10);
}

.problema-soluzione-card.card-problem {
  border-left-color: var(--color-complementary);
}

.problema-soluzione-card.card-solution {
  border-left-color: var(--color-accent);
}

@media (max-width: 768px) {
  .problema-soluzione-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .problema-soluzione-card {
    grid-row: auto;
    grid-template-rows: auto auto;
  }
}