/* === Design Tokens === */
:root {
  --color-bg: #0a0a0a;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(99, 102, 241, 0.3);
  --color-text: #e0e0e0;
  --color-text-muted: #9ca3af;
  --color-text-faint: #6b7280;
  --color-accent: #6366f1;
  --color-accent-dark: #4f46e5;
  --color-accent-light: #818cf8;
  --color-accent-bg: rgba(99, 102, 241, 0.1);
  --color-success: #22c55e;
  --color-error: #ef4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  --anim-page-in: 0.5s;
  --anim-page-out: 0.25s;
}

/* === Page Transitions === */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes page-exit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

body {
  animation: page-enter var(--anim-page-in) ease both;
}

body.page-exit {
  animation: page-exit var(--anim-page-out) ease both;
  pointer-events: none;
}

/* === Staggered Load Animations === */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: fade-up 0.7s ease both;
}

.anim-delay-1  { animation-delay: 0.1s; }
.anim-delay-2  { animation-delay: 0.25s; }
.anim-delay-3  { animation-delay: 0.4s; }
.anim-delay-4  { animation-delay: 0.55s; }
.anim-delay-5  { animation-delay: 0.7s; }
.anim-delay-6  { animation-delay: 0.85s; }
.anim-delay-7  { animation-delay: 1.0s; }
.anim-delay-8  { animation-delay: 1.15s; }

@media (prefers-reduced-motion: reduce) {
  body,
  body.page-exit {
    animation: none;
  }
  .anim-fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* === Icon Sizes === */
.icon { display: inline-block; vertical-align: middle; }
.icon svg { width: 1em; height: 1em; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm svg { width: 16px; height: 16px; }
.icon-md svg { width: 24px; height: 24px; }
.icon-lg svg { width: 32px; height: 32px; }
.icon-xl svg { width: 48px; height: 48px; }

/* === Card System === */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-link:hover {
  transform: translateY(-4px);
}
.card-link:hover::before {
  opacity: 1;
}
.card-stat {
  text-align: center;
}
.card-compact {
  padding: var(--space-md);
}

/* === Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.visible {
  animation: reveal-in 0.6s ease forwards;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation-delay: 0s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

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

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

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

body {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* === Utility === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-title {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

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

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid #374151;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-brand span {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-links a:hover {
  color: #fff;
}

.navbar-links a.active {
  color: var(--color-accent-light);
  position: relative;
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.lang-picker {
  position: relative;
}

.lang-picker-current {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.3s ease;
}

.lang-picker-current:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.lang-picker-current img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  display: block;
}

.lang-picker-current .arrow {
  border: solid var(--color-text-muted);
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2.5px;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
}

.lang-picker.open .lang-picker-current .arrow {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.lang-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 4px;
  min-width: 48px;
  backdrop-filter: blur(12px);
  z-index: 100;
}

.lang-picker.open .lang-picker-dropdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-picker-dropdown button {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lang-picker-dropdown button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-picker-dropdown button img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  display: block;
}

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

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-card {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.96);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
  animation: spotlight-shift 8s ease-in-out infinite alternate;
}

@keyframes spotlight-shift {
  0% { transform: translateX(-10%) translateY(-5%); }
  100% { transform: translateX(5%) translateY(5%); }
}

.hero-split {
  display: flex;
  min-height: 500px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #1e293b;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  background: rgba(255, 255, 255, 0.02);
  width: fit-content;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #6366f1);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

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

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.7;
}

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

.hero-scene {
  flex: 1;
  position: relative;
  min-height: 400px;
  aspect-ratio: 1 / 1;              /* prevents CLS when canvas mounts/unmounts */
  background: #0a0a0a;              /* avoids flash of transparent box */
}

.hero-scene canvas,
.hero-scene img {                   /* img for poster fallback */
  width: 100%;
  height: 100%;
  display: block;
}

/* === About === */
#about {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color 0.3s ease;
}

.stat-card:hover {
  border-color: var(--color-border-hover);
}

.stat-card .number {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.stat-card .label {
  font-size: 0.9rem;
  color: var(--color-text-faint);
}

/* === Services === */
#services {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-accent-light);
}

.service-card h3 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-faint);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Contact === */
#contact {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: var(--color-text-faint);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item-text .item-label {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item-text .item-value {
  color: var(--color-text);
  font-size: 0.95rem;
}

.contact-item-text a {
  transition: color 0.3s ease;
}

.contact-item-text a:hover {
  color: var(--color-accent);
}

.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

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

.contact-form .btn {
  width: 100%;
  text-align: center;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}
.contact-form .btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border: none;
}

/* === Footer === */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand span {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-copy {
  color: #4b5563;
  font-size: 0.85rem;
}

.footer-powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.15);
}

.footer-powered-by a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-powered-by a:hover {
  color: rgba(255, 255, 255, 0.45);
}

.footer-powered-by img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.footer-powered-by a:hover img {
  opacity: 0.55;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--color-text-faint);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

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

.legal-content h3 {
  color: #f3f4f6;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: var(--space-sm);
  display: inline-block;
}

.legal-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  list-style: disc;
  padding-left: var(--space-lg);
}

.legal-content ul li::marker {
  color: var(--color-accent);
}

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

.legal-content a {
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.legal-content a:hover {
  color: var(--color-accent-light);
}

.legal-toc {
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.legal-toc a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-toc a:hover {
  color: var(--color-accent-light);
}

/* === Responsive === */
@media (max-width: 992px) {
  .hero-split {
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-scene {
    min-height: 350px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .card-header-gradient {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content {
    padding: 2.5rem;
  }

  .hero-scene {
    min-height: 300px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 0 var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    display: flex;
  }

  .navbar-links.active {
    max-height: 500px;
    opacity: 1;
    padding: var(--space-lg);
  }

  .menu-toggle {
    display: flex;
  }

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

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

  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

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

  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: var(--space-xl);
  }

  .hero-scene {
    min-height: 250px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
  }

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

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

  .contact-form .btn-primary {
    width: 100%;
  }
}

/* === Navigation Dropdown === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 12px;
  min-width: 220px;
  backdrop-filter: blur(12px);
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu.show {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--color-accent-bg);
  color: #fff;
}

.btn-nav {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
  border-radius: 6px !important;
}

/* === Button Variants === */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* === Page Hero (inner pages) === */
.page-hero {
  padding: 10rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.page-hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.page-hero-tags {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 7rem 0 0;
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.85rem;
  list-style: none;
}

.breadcrumbs li {
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
}

.breadcrumbs li a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.breadcrumbs li a:hover {
  color: var(--color-accent);
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: #374151;
}
.breadcrumb-sep {
  color: var(--color-text-faint);
  margin: 0 var(--space-xs);
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li.active {
  color: var(--color-text);
}

/* === Content Layout === */
.content-layout {
  max-width: 100%;
}

.content-main {
  max-width: 800px;
  margin: 0 auto;
}

.content-main h2 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: var(--space-md);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
}

.content-main h3 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-main p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

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

.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.feature-list {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.feature-list li {
  margin-bottom: 0.75rem;
}

.feature-list li strong {
  color: var(--color-text);
}

/* === Section Alt === */
.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Tech Badges === */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--color-accent-bg);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  color: #a5b4fc;
  font-weight: 500;
}

/* === Badge Color Variants === */
.tech-badge.badge-lang {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}
.tech-badge.badge-fe {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: #7dd3fc;
}
.tech-badge.badge-be {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}
.tech-badge.badge-db {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fcd34d;
}
.tech-badge.badge-cloud {
  background: rgba(192, 132, 252, 0.12);
  border-color: rgba(192, 132, 252, 0.25);
  color: #c4b5fd;
}
.tech-badge.badge-ai {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.25);
  color: #fda4af;
}
.tech-badge.badge-mobile {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.25);
  color: #5eead4;
}
.tech-badge.badge-sec {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}
.tech-badge.badge-test {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.25);
  color: #67e8f9;
}

/* === Portfolio Hero Images === */
.card-hero-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.portfolio-hero-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

/* === Team Page === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.team-card {
  display: flex;
  gap: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color 0.3s, transform 0.3s;
}

.team-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.team-photo {
  flex-shrink: 0;
}

.team-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.team-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.team-position {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
}

.team-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin-bottom: 0.75rem;
}

.team-location {
  color: var(--color-text-faint);
}

.team-bio {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-meta {
    justify-content: center;
  }
}

/* === Service Card Link === */
.service-card-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.service-card-link:hover .card-link {
  color: var(--color-accent-light);
}

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

/* === Card Meta === */
.card-meta {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

/* === Hub Grid === */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* === FAQ Accordion === */
.faq-list {
  margin-bottom: var(--space-xl);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #f3f4f6;
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

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

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-text-faint);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

/* === Blog Grid === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  text-decoration: none;
}

.blog-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
}

.blog-card-content h3 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card-content p {
  color: var(--color-text-faint);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin-bottom: 0.75rem;
}

.card-header-gradient {
  height: 120px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(var(--space-lg) * -1) calc(var(--space-lg) * -1) var(--space-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
}

/* === Blog Post Hero Image === */
.blog-hero-image {
  max-width: 960px;
  margin: var(--space-lg) auto 0;
  padding: 0 var(--space-lg);
}

.blog-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .blog-hero-image {
    padding: 0 var(--space-md);
    margin-top: var(--space-md);
  }
  .blog-hero-image img {
    border-radius: var(--radius-md);
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
}

/* === Blog Post Content (article body) === */
.blog-post-meta {
  font-size: 0.9rem;
  color: var(--color-text-faint);
  margin-bottom: 0.5rem;
}

.author-inline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.blog-post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.blog-post-content h2 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: var(--space-md);
}

.blog-post-content h3 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.blog-post-content strong {
  color: var(--color-text);
}

.blog-post-content ul,
.blog-post-content ol {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content ul {
  list-style: disc;
}

.blog-post-content ol {
  list-style: decimal;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content li strong {
  color: var(--color-text);
}

.blog-post-content a {
  color: var(--color-accent);
  transition: color 0.3s ease;
}

.blog-post-content a:hover {
  color: var(--color-accent-light);
}

.blog-post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  color: var(--color-text-muted);
  font-style: italic;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 8px 8px 0;
}

.blog-post-content blockquote p {
  color: #a5b4fc;
  margin: 0;
}

.blog-post-content pre,
.blog-post-content code {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.blog-post-content pre {
  padding: var(--space-lg);
  overflow-x: auto;
  border-left: 3px solid var(--color-accent);
}

.blog-post-content code {
  padding: 0.15em 0.4em;
  font-size: 0.9em;
}

/* === Comparison Table === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--color-accent-bg);
  color: var(--color-text);
  font-weight: 600;
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table td {
  padding: 0.875rem 1rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* === Rate Table (M9) ===
 * Adds row headers and a small caption for AIO extraction on
 * nearshore-brazil and cost-of-software-development-brazil pages.
 */
.rate-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  padding-bottom: 0.5rem;
}

.rate-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rate-table tbody tr:nth-child(even) th[scope="row"],
.rate-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.table-caption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

/* === Case Study Results === */
.case-study-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.result-metric {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  padding: var(--space-lg);
  text-align: center;
}

.result-metric .value {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.result-metric .label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.case-study-results-mini {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-md) 0;
}

.result-mini {
  display: flex;
  flex-direction: column;
}

.result-value {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
}

.result-label {
  font-size: 0.75rem;
  color: var(--color-text-faint);
}

/* === Testimonial === */
.testimonial {
  border-left: 3px solid var(--color-accent);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 12px 12px 0;
}

.testimonial p {
  font-size: 1.1rem;
  color: var(--color-text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--color-text-faint);
  font-style: normal;
}

.testimonial-icon {
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: var(--space-sm);
  display: block;
}

/* === CTA Banner === */
.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.06));
  border-top: 1px solid var(--color-accent-bg);
}
.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta-banner h2 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
}

/* === Footer Grid (multi-column) === */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

.footer-column h4 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-column a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-faint);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

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

.footer-tagline {
  color: var(--color-text-faint);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.footer-social a {
  color: var(--color-text-faint);
  transition: color 0.3s ease;
}
.footer-social a:hover {
  color: var(--color-accent-light);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--color-text-faint);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  text-align: center;
}

/* === Founder Card === */
.founder-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: 1.5rem 0;
}

.founder-info h3 {
  margin-top: 0;
}

.founder-title {
  color: var(--color-accent) !important;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.founder-links {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.founder-links a {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* === About Stats Grid === */
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

/* === Process Steps === */
.process-steps {
  margin: 2rem 0;
}

.process-step {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: 2.5rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -2rem;
  width: 2px;
  background: rgba(99, 102, 241, 0.2);
}

.process-step::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  height: 48px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  display: none;
}

.process-step:not(:first-child)::before {
  display: block;
}

.step-number {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.15);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.step-content h2 {
  margin-top: 0.5rem;
}

.step-detail {
  font-size: 0.9rem;
  color: var(--color-text-faint);
}

/* === Pillar Layout === */
.pillar-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.toc-sidebar a.active {
  color: var(--color-accent);
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-sm);
}

.toc-sidebar h4 {
  font-family: "Mona Sans", -apple-system, "system-ui", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.toc-sidebar nav {
  display: flex;
  flex-direction: column;
}

.toc-sidebar nav a {
  font-size: 0.85rem;
  color: var(--color-text-faint);
  padding: 0.4rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.3s ease;
}

.toc-sidebar nav a:hover {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
}

/* === New Page Responsive === */
@media (max-width: 992px) {
  .page-hero h1 {
    font-size: 2.5rem;
  }

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

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

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

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

  .pillar-layout {
    grid-template-columns: 1fr;
  }

  .toc-sidebar {
    position: static;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .toc-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }

  .toc-sidebar nav a {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 8rem 0 2rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

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

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.625rem 0.5rem;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  /* Mobile nav dropdown */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0.25rem 0 0.25rem 1rem;
    min-width: auto;
  }

  .nav-dropdown-menu a {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .breadcrumbs {
    padding: 5.5rem 0 0;
  }
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

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

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

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

  .case-study-results-mini {
    flex-direction: column;
    gap: 0.75rem;
  }

  .process-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .founder-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
