/* ===== CSS VARIABLES ===== */
:root {
  --bg: #020617;
  --bg-soft: #050816;
  --bg-alt: #020b12;
  --card: #050816;
  --accent: #0ea5e9;
  
  --accent-strong: #22c55e;
  --border: #1f2937;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease-out;
  
  /* Gradient variables */
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
  --gradient-dark: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
  
  /* Padding variables */
  --section-padding: 4rem 2rem;
  --section-padding-mobile: 3rem 2rem;
  --hero-padding: 4rem 0 2rem;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  margin: 0 0 1rem;
  color: #ffffff;
  line-height: 1.2;
  font-weight: 700;
}

/* ==================== */
/* DARK MODE SUPPORT */
/* ==================== */

@media (prefers-color-scheme: dark) {
  .pricing-card {
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
  }
  
  .pricing-card-featured {
    border-color: var(--accent);
  }
  
  .pricing-badge {
    background: var(--accent);
    color: var(--bg);
  }
  
  .pricing-cta {
    border-color: var(--border);
    color: var(--text);
    background: rgba(15, 23, 42, 0.8);
  }
}

/* ==================== */
/* PRINT STYLES */
/* ==================== */
@media print {
  .topbar,
  .nav-toggle,
  .btn,
  .carousel-btn,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #ddd;
  }
}

/* ===== LAYOUT UTILITIES ===== */
.shell {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
}

.section.alt {
  background: var(--bg-soft);
  background-image: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-tight {
  padding: 3rem 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.3);
}

.btn-ghost {
  border-color: rgba(14, 165, 233, 0.5);
  color: var(--text);
  background: rgba(14, 165, 233, 0.1);
}

.btn-ghost:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Color Button with Image Attachment */
.btn-with-image {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding-left: 3rem;
}

.btn-with-image::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M4 5h13v7h2V5c0-1.103-.897-2-2-2H4c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h8v-2H4V5z"/><path d="m8 11-3 4h11l-4-6-3 4z"/><path d="M19 14h-2v3h-3v2h3v3h2v-3h3v-2h-3z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Button with actual image */
.btn-image-attach {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-image-attach img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.btn-image-attach:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.full-width {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white ! IMPORTANT;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    border: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

/* ===== HEADER / NAVIGATION ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(10, 15, 30, 0.85);
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
  padding: 0.5rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition-fast);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #ffffff, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tag {
  font-size: 0.8rem;
  color: var(--muted);
}

.primary-nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a {
  padding: 0.5rem 0;
  color: var(--muted);
  position: relative;
}

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

.nav-list a:hover {
  color: #ffffff;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-list a.active {
  color: #ffffff;
}

.nav-list a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  padding: var(--hero-padding);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-home {
  background: var(--gradient-dark);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  background: rgba(14, 165, 233, 0.1);
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy p {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.typed-wrapper {
  display: inline-block;
  min-width: 14rem;
}

/* UPDATED: Typed element with gradient color */
.typed {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  font-weight: 600;
  animation: gradientPulse 6s ease-in-out infinite;
}

@keyframes gradientPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

/* Hero metrics */
.hero-data {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.data-chip {
  background: rgba(17, 24, 39, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast);
}

.data-chip:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.data-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.data-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== CARDS / PANELS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 165, 233, 0.1);
  padding: 2rem;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

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

.card-soft {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(10px);
}

.card-glass {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.card-glow {
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Hero widget */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-widget h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-widget header p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.funnel-checklist {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  column-gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.check-row input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 0.2rem;
}

.check-row input[type="checkbox"]:checked {
  background: var(--gradient-primary);
  border-color: var(--accent);
  position: relative;
}

.check-row input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
}

.score-display {
  margin: 2rem 0;
}

.score-label {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.score-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.score-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== SECTION HEADERS ===== */
.section-head {
  margin-bottom: 3rem;
  max-width: 700px;
}

.section-head h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-head p {
  font-size: 1.125rem;
  max-width: 600px;
}

/* ===== PILLARS ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pillar-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pillar-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.pillar-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.pillar-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.chip-link:hover {
  gap: 0.75rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(14, 165, 233, 0.3);
  display: grid;
  gap: 2rem;
  max-width: 800px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.timeline-node {
  position: relative;
}

.timeline-point {
  position: absolute;
  left: -2rem;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: var(--gradient-primary);
  border: 2px solid var(--bg);
  font-weight: 600;
  white-space: nowrap;
}

.timeline-card {
  margin-left: 1rem;
}

.timeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.5);
  padding: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-med);
  gap: 1rem;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
  padding: 1rem;
}

.inline-stats {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.9rem;
}

.inline-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-strong);
  margin-bottom: 0.25rem;
}

.inline-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Desktop carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 165, 233, 0.3);
  background: rgba(17, 24, 39, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  color: var(--text);
  font-size: 1.25rem;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0rem;
}

.carousel-btn.next {
  right: 0rem;
}

/* Mobile carousel arrows */
.carousel-arrow-mobile {
  display: none;
}

/* ===== CTA ===== */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.cta-grid h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: var(--section-padding);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.lead {
  max-width: 700px;
  font-size: 1.25rem;
}

/* ===== SERVICES LAYOUT ===== */
.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 3rem;
  align-items: flex-start;
}

.pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pill-bar .pill {
  margin: 0;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 34px;
  border: 2px solid var(--border);
  transition: all var(--transition-fast);
}

.slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: white;
  transition: transform var(--transition-fast);
}

.switch input:checked + .slider {
  background: var(--gradient-primary);
  border-color: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.plan-card {
  padding: 1rem;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.plan-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* ===== ACCORDION ===== */
.accordion {
  margin-top: 1rem;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  border: none;
  background: rgba(14, 165, 233, 0.1);
  color: var(--text);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.accordion-trigger:hover {
  background: rgba(14, 165, 233, 0.2);
}

.accordion-trigger .icon {
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.accordion-trigger.open .icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-med);
}

.accordion-panel p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

/* ===== WORK / PORTFOLIO ===== */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-chip {
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border);
  background: transparent;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  color: #fff;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
}

.grid-work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-label {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ===== CONTACT FORM ===== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: 3rem;
  align-items: start;
}

.contact-form .field {
  margin-bottom: 1.25rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: rgba(17, 24, 39, 0.8);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  background: rgba(17, 24, 39, 1);
}

.form-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid rgba(14, 165, 233, 0.1);
  background: var(--bg-alt);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.875rem;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.footer-meta {
  color: var(--muted);
  font-size: 0.875rem;
  text-align: right;
}

/* ===== PRICING ===== */
.pricing-section {
  padding: 4rem 2rem;
}

.pricing-container {
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-header {
  text-align: left;
  max-width: 650px;
  margin-bottom: 2.5rem;
}

.pricing-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pricing-header p {
  opacity: 0.8;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pricing-card {
  border-radius: 1rem;
  border: 1px solid #0ea5e9;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
}

.pricing-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.pricing-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.25rem;
}

.pricing-tagline {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 0.8rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.pricing-features li {
  margin-bottom: 0.35rem;
}

.pricing-cta,
.pricing-cta-primary {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pricing-cta-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.pricing-cta:hover,
.pricing-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.pricing-subsection {
  margin-top: 3.5rem;
}

.pricing-subsection h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-subsection p {
  opacity: 0.85;
  margin-bottom: 1.75rem;
}

.pricing-grid-secondary {
  margin-top: 1rem;
}

.pricing-card-compact {
  padding: 1.5rem 1.25rem;
}

.pricing-footer-cta {
  margin-top: 2rem;
  text-align: left;
  display: flex;
    justify-content: center;
}

/* ===== LEGAL PAGES ===== */
.mwd-legal__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.mwd-legal__header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(14, 165, 233, 0.2);
}

.mwd-legal h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.mwd-legal h2 {
  font-size: 1.75rem;
  margin: 3rem 0 1rem;
  color: var(--accent);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(14, 165, 233, 0.1);
}

.mwd-legal h3 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.mwd-legal__summary {
  background: rgba(14, 165, 233, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Loading animation for better UX */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-layout,
  .service-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-panel {
    justify-content: flex-start;
     padding: 4rem 2rem 2rem;
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-meta {
    text-align: center;
  }
}

@media (min-width: 1200px) and (max-width: 2560px) {
  .grid-work {
  
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(2, auto) !important;
    gap: 2rem !important;
}
  
.timeline-node.reveal.visible {
    width: 1200px;
}
}

@media (min-width: 767px) and (max-width: 1200px) {

 .hero::before {
  
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 0%) !important;
 }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-panel {
    justify-content: center;
  }
  
  .hero-widget {
    width: 100%;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
  }
  
  .service-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {

  .footer-tagline {
  
    max-width: 100% !important;
}
  .nav-list {
   
    gap: 0rem !important;
   
}

  .hero::before {
  
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 0%) !important;
 
}
  .page-hero {
    padding: var(--section-padding-mobile);
}
  .timeline-card.card {
    margin-left: 20px;
}

  .timeline {
  
    margin-left: 1.5rem;
}
  .section {
    padding: var(--section-padding-mobile);
  }
  
  .hero {
    padding: var(--section-padding-mobile);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .topbar-inner {
    padding-inline: 1rem;
  }
  
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(2, 7, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    margin: 1rem;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-med);
    z-index: 90;
    box-shadow: var(--shadow-soft);
  }
  
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    width: 100%;
    display: block;
  }
  
  .nav-list a:hover {
    background: rgba(14, 165, 233, 0.1);
  }
  
  .nav-list a::after {
    display: none;
  }
  
  /* Mobile menu toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .inline-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .pricing-header h2 {
    font-size: 2rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card-featured {
    transform: none;
  }
  
  /* FIXED: Enhanced Carousel for Mobile */
  .carousel {
    padding: 1.5rem;
    border-radius: var(--radius);
    position: relative;
    overflow: visible;
  }
  
  /* Hide desktop buttons on mobile */
  .carousel-btn {
    display: none !important;
  }
  
  /* Show mobile arrows */
  .carousel-arrow-mobile {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
  }
  
  .carousel-arrow-mobile:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  }
  
  .carousel-arrow-mobile.prev {
    left: 0.75rem;
  }
  
  .carousel-arrow-mobile.next {
    right: 0.75rem;
  }
  
  /* Make carousel track touch-scrollable */
  .carousel-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
  }
  
  .carousel-track::-webkit-scrollbar {
    display: none;
  }
  
  .carousel-slide {
    min-width: 100%;
    scroll-snap-align: start;
    padding: 0.5rem;
  }
  
  /* Enhanced form elements for mobile */
  input,
  select,
  textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 1rem;
  }
  
  .field-row {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: 1.5rem;
    margin-inline: 0;
  }
  
  /* Progress dots for mobile carousel */
  .carousel-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition-fast);
  }
  
  .carousel-dot.active {
    background: var(--accent);
    transform: scale(1.2);
  }
}

@media (max-width: 1024px) {
  .shell {
    width: min(100% - 1rem, 1200px);
  }
  
  .section {
    padding: var(--section-padding);
  }
  
  .page-hero {
    padding: var(--section-padding);
  }
  
  .hero-copy {
    padding: 0 2rem;
  }
  
  .hero-copy h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  
  .hero-copy p {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .section-head h2 {
    font-size: 1.75rem;
  }
  
  .hero-data {
    flex-direction: column;
    align-items: stretch;
  }
  
  .data-chip {
    min-width: auto;
    text-align:center;
  }
  
  .pillars-grid,
  .grid-work,
  .team-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .field-row {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
  
  .mwd-legal h1 {
    font-size: 2rem;
  }
  
  .mwd-legal h2 {
    font-size: 1.5rem;
  }
  
  .mwd-legal__container {
    padding: 4rem 2rem;
  }
  
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .cta-actions .btn {
    width: 100%;
  }
  
  /* Fix pricing cards on mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    margin-inline: 0;
  }
  
  .pricing-card-featured {
    transform: none;
    order: -1;
  }
  
  /* Mobile carousel arrows - smaller on very small screens */
  .carousel-arrow-mobile {
    width: 36px;
    height: 36px;
  }
  
  .carousel-arrow-mobile.prev {
    left: 0.5rem;
  }
  
  .carousel-arrow-mobile.next {
    right: 0.5rem;
  }
  .nav-toggle {
    display: flex;
  }
  .topbar-inner {
    padding-inline: 1rem;
  }
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(2, 7, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    margin: 1rem;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-med);
    z-index: 90;
    box-shadow: var(--shadow-soft);
  }
  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-list a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    width: 100%;
    display: block;
  }
  .nav-list a:hover {
    background: rgba(14, 165, 233, 0.1);
  }
  .nav-list a::after {
    display: none;
  }
  /* Mobile menu toggle animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
  .hero,
  .section {
    -webkit-backface-visibility: hidden;
  }
  
  /* Ensure smooth scrolling on iOS */
  .carousel-track {
    -webkit-overflow-scrolling: touch;
  }
}

/* Smooth transitions for all interactive elements */
.btn,
.card,
.filter-chip,
.pricing-card,
.nav-list a {
  transition: all var(--transition-fast);
}

/* Enhanced focus states for accessibility */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.filter-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ensure carousel slides are properly sized */
.carousel-slide {
  box-sizing: border-box;
}

/* Prevent horizontal overflow */
.carousel-track {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Fix for smooth sliding animation */
.carousel-track {
  will-change: transform;
}

a.nav-cta::after {
   
    height: 0px !important;
 
}

/* Client Portal nav item */
.nav-portal a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(135deg, #0f2a44, #143a5f);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-portal a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Lock icon */
.nav-portal .portal-lock {
  position: relative;
  width: 14px;
  height: 12px;
  background: #4fc3f7;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Lock shackle */
.nav-portal .portal-lock::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 2px;
  width: 10px;
  height: 8px;
  border: 2px solid #4fc3f7;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}

.nav-portal .portal-text {
  font-size: 14px;
  white-space: nowrap;
}

/* Mobile nav safety */
@media (max-width: 768px) {
  .nav-portal a {
    width: 100%;
    justify-content: center;
  }
}
