/* ========================================
   Intelligent CX Consulting — Design System
   ======================================== */

/* --- CSS Custom Properties — Dark Mode Default --- */
:root {
  /* Brand colors from logo */
  --green-dark: #1B5E20;
  --green-primary: #4CAF50;
  --green-medium: #66BB6A;
  --teal: #26A69A;
  --teal-bright: #4DB6AC;
  --blue-primary: #42A5F5;
  --blue-dark: #1565C0;

  /* Dark mode surfaces */
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-elevated: #1A2332;
  --bg-card: #151D2B;
  --border-color: rgba(255,255,255,0.08);
  --border-color-hover: rgba(255,255,255,0.15);

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-heading: #F8FAFC;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4CAF50, #26A69A, #42A5F5);
  --gradient-subtle: linear-gradient(135deg, rgba(76,175,80,0.12), rgba(38,166,154,0.12), rgba(66,165,245,0.12));
  --gradient-glow: linear-gradient(135deg, rgba(76,175,80,0.15), rgba(38,166,154,0.15), rgba(66,165,245,0.15));

  /* Typography */
  --font-heading: 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-accent: 'Instrument Serif', serif;

  /* Spacing — generous for boutique feel */
  --section-pad: clamp(4rem, 10vw, 8rem);
  --container-max: 1140px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows — layered for depth */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2), 0 20px 40px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 30px rgba(38,166,154,0.12), 0 0 60px rgba(38,166,154,0.06);

  /* Border radius — softer, more refined */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

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

a {
  color: var(--teal-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--green-medium);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p + p { margin-top: 1rem; }

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--teal);
  color: var(--bg-primary);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

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

/* --- Section --- */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section--gray {
  background: var(--bg-elevated);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__header h2 {
  margin-bottom: 1rem;
}

.section__header p {
  margin-top: 0;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Boutique label above section headers */
.section__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal-bright);
  margin-bottom: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(77,182,172,0.25);
  background: rgba(77,182,172,0.06);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(38,166,154,0.25);
}

.btn--primary:hover {
  box-shadow: 0 4px 24px rgba(38,166,154,0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--teal-bright);
  border: 1.5px solid rgba(77,182,172,0.4);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: rgba(77,182,172,0.1);
  color: var(--teal-bright);
  border-color: var(--teal-bright);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--text-heading);
  color: var(--bg-primary);
}

.btn--white:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--bg-primary);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-base);
}

.nav--scrolled {
  background: rgba(11,15,25,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-color);
  padding: 0.75rem 0;
}

/* Inner pages: always dark bg */
.nav--solid {
  background: var(--bg-primary);
  box-shadow: 0 1px 0 var(--border-color);
  padding: 0.75rem 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.nav__logo img {
  height: 72px;
  width: auto;
  border-radius: 12px;
}

.nav__menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.25rem;
}

.nav__links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  white-space: nowrap;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover {
  color: var(--teal-bright);
}

.nav__links a.active {
  color: var(--text-heading);
}

.nav__cta {
  margin-left: 1rem;
  flex-shrink: 0;
}

.nav__cta .btn {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all var(--transition-base);
}

/* Mobile/Tablet Nav — everything 1024px and below gets hamburger */
@media (max-width: 1024px) {
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-color);
  }

  .nav__menu.open {
    display: flex;
  }

  .nav__links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav__links a {
    padding: 0.875rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav__links a::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 1rem;
    text-align: center;
  }

  .nav__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Desktop nav — 1025px and above: always show inline */
@media (min-width: 1025px) {
  .nav__menu {
    display: flex !important;
    align-items: center;
    flex-direction: row;
  }

  .nav__links {
    flex-direction: row;
  }
}

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1025px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero__visual {
  position: relative;
  z-index: 1;
}

.hero__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.hero__visual::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  opacity: 0.12;
  z-index: -1;
  filter: blur(30px);
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.08; transform: scale(0.98); }
  to { opacity: 0.15; transform: scale(1.02); }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(100px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76,175,80,0.08), transparent);
  border-radius: 50%;
  filter: blur(80px);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__content h1 {
  margin-bottom: 1.5rem;
}

.hero__content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Proof Bar (Stats) --- */
.proof-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.proof-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}

.proof-bar__stat {
  padding: 1rem;
}

.proof-bar__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.proof-bar__label {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .proof-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.card {
  background: rgba(21,29,43,0.6);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: none;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--border-color-hover);
}

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

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(38,166,154,0.08);
  border: 1px solid rgba(38,166,154,0.12);
}

.card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--teal-bright);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.card__link {
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.card__link:hover::after {
  transform: translateX(4px);
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.two-col__text h2 {
  margin-bottom: 1.25rem;
}

.two-col__text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.two-col__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.two-col__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-primary);
}

.two-col__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-top: 0.5rem;
}

.two-col__visual {
  position: relative;
}

.two-col__visual img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-primary);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.08) 0%, transparent 50%);
}

.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* --- Page Header (Inner Pages) --- */
.page-header {
  background: var(--bg-secondary);
  padding: calc(5rem + 80px) 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About: Founder Profile --- */
.founder {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.founder__photo {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.founder__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.founder__bio h2 {
  margin-bottom: 1.25rem;
}

.founder__bio p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.founder__bio .inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.founder__bio .inline-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founder__photo {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.values-grid .card {
  border-image: none;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.values-grid .card__icon {
  margin: 0 auto 1.25rem;
}

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

/* --- Expertise Tags --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tag {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--gradient-subtle);
  color: var(--teal-bright);
  border: 1px solid rgba(38,166,154,0.2);
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.tag:hover {
  background: rgba(38,166,154,0.12);
  border-color: rgba(77,182,172,0.4);
  transform: translateY(-1px);
}

/* --- Services --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border-color);
}

.service-block:last-of-type {
  border-bottom: none;
}

.service-block--reverse {
  direction: rtl;
}

.service-block--reverse > * {
  direction: ltr;
}

.service-block__content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.service-block__content > p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.service-block__deliverables h4 {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-block__deliverables ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-block__deliverables li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-primary);
}

.service-block__deliverables li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-primary);
  font-weight: 700;
}

.service-block__tools {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: 8px;
  border-left: 3px solid var(--teal);
}

.service-block__tools h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-block__tools a {
  font-size: 0.875rem;
  font-weight: 500;
}

.service-block__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-block__visual img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* Fade-to-background effect for service images */
.service-img--fade {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  border: none !important;
  box-shadow: none !important;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, black 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, black 40%, transparent 75%);
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.service-block:hover .service-img--fade {
  opacity: 1;
}

@media (max-width: 768px) {
  .service-block,
  .service-block--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .service-block__visual {
    order: -1;
  }

  .service-block__visual img {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.process-step {
  padding: 2rem;
  position: relative;
}

.process-step__number {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(38,166,154,0.08);
  border: 1px solid rgba(38,166,154,0.15);
  color: var(--teal-bright);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.process-step h3 {
  margin-bottom: 0.75rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

/* --- Resources --- */
.resource-category {
  margin-bottom: 3rem;
}

.resource-category h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: rgba(21,29,43,0.6);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: none;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
}

.resource-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.resource-card__desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.resource-card .btn--sm {
  align-self: flex-start;
}

/* Old disclosure removed, using inline .resource-intro instead */

/* --- Blog Filters --- */
.blog-filters {
  padding: 0 0 1rem;
}
.blog-filters__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.blog-filters__tab {
  background: #151D2B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.4;
}
.blog-filters__tab:hover {
  border-color: rgba(255,255,255,0.2);
  color: #F1F5F9;
  background: #1A2332;
}
.blog-filters__tab.active {
  background: #4DB6AC;
  border-color: #4DB6AC;
  color: #0B0F19;
  font-weight: 600;
}

/* --- Blog Pagination --- */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 0 0;
}
.blog-pagination__btn {
  background: #151D2B;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.3s ease;
}
.blog-pagination__btn:hover:not(:disabled) {
  border-color: #4DB6AC;
  color: #4DB6AC;
}
.blog-pagination__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.blog-pagination__info {
  font-size: 0.875rem;
  color: #64748B;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  border-color: var(--border-color-hover);
}

.blog-card__image {
  width: 100%;
  height: 200px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__image svg {
  width: 48px;
  height: 48px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.4;
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.blog-card__category {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--gradient-subtle);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.blog-card__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.blog-card__body h3 a {
  color: var(--text-heading);
}

.blog-card__body h3 a:hover {
  color: var(--teal-bright);
}

.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Blog Post */
.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--section-pad) 1.5rem;
}

.blog-post__header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-post__header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.blog-post__content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post__content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post__content p {
  margin-bottom: 1.25rem;
}

.blog-post__content ul,
.blog-post__content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-post__content li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.blog-post__content ol li {
  list-style: decimal;
}

.blog-post__content blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-elevated);
  border-radius: 0 8px 8px 0;
  color: var(--text-primary);
  font-style: italic;
}

.blog-post__sidebar-widget {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 3rem;
  border: 1px solid var(--border-color);
}

.blog-post__sidebar-widget h4 {
  margin-bottom: 1rem;
  color: var(--teal);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color-hover);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(38,166,154,0.15);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-info {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border-color);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.contact-info__item svg {
  width: 20px;
  height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
  min-width: 20px;
}

.contact-info__item a {
  color: var(--text-primary);
}

.contact-info__item a:hover {
  color: var(--teal-bright);
}

.contact-info__note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

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

.faq summary {
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--text-heading);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--teal);
  transition: transform var(--transition-base);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  padding: 0 0 1.25rem;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  background: #060A12;
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer__brand img {
  height: 60px;
  margin-bottom: 1rem;
  border-radius: 12px;
}

.footer__brand p {
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer__links .external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer__links .external-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.footer__contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  padding: 0.375rem 0;
  font-size: 0.9375rem;
}

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

.footer__contact svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  min-width: 16px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Cursor Glow Orb --- */
.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,166,154,0.06) 0%, rgba(38,166,154,0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
  will-change: transform;
}

.cursor-orb--active {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(38,166,154,0.1) 0%, rgba(76,175,80,0.04) 40%, transparent 70%);
}

/* --- Shimmer Text --- */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text-heading) 0%,
    var(--text-heading) 40%,
    var(--teal-bright) 50%,
    var(--text-heading) 60%,
    var(--text-heading) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: -100% 0; }
}

/* --- Catch the Chatbot Game --- */
.chatbot-game {
  position: relative;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  overflow: hidden;
  min-height: 200px;
}

.chatbot-game__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--teal-bright);
  margin-bottom: 0.5rem;
}

.chatbot-game__subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.chatbot-game__score {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.chatbot-game__bot {
  position: absolute;
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: none;
  user-select: none;
  z-index: 2;
  font-size: 2rem;
  line-height: 48px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(38,166,154,0.4));
}

.chatbot-game__bot:hover {
  transform: scale(1.2);
}

.chatbot-game__bot--caught {
  animation: botCaught 0.4s ease-out;
}

@keyframes botCaught {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(0); opacity: 0; }
}

.chatbot-game__message {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-bright);
  pointer-events: none;
  animation: floatUp 1s ease-out forwards;
  z-index: 3;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); }
}

/* --- Smooth card tilt reset --- */
.card, .resource-card, .blog-card {
  will-change: transform;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Legal Content Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  margin: 0.5rem 0 1rem 1.5rem;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content a {
  color: var(--teal-bright);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--green-medium);
}

.legal-content strong {
  color: var(--text-primary);
}

.legal-content .effective-date {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-color-hover);
  padding: 1.25rem 2rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-width: 280px;
}

.cookie-banner__text a {
  color: var(--teal-bright);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.cookie-banner__btn--accept {
  background: var(--gradient-primary);
  color: #fff;
}

.cookie-banner__btn--accept:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color-hover);
}

.cookie-banner__btn--decline:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* --- Form Validation --- */
.form-group--error input,
.form-group--error textarea,
.form-group--error select {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.form-group--success input,
.form-group--success textarea,
.form-group--success select {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: #e53e3e;
  margin-top: 0.375rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-error--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Blog Reading Time --- */
.blog-post__reading-time {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.blog-post__reading-time svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color-hover);
  color: var(--teal-bright);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
