/* =============================================
   Xcdify Website — Main Stylesheet
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --blue: #2563EB;
  --blue-dark: #1E40AF;
  --blue-light: #DBEAFE;
  --gold: #FACC15;
  --teal: #06B6D4;
  --purple: #A855F7;
  --ink: #0F172A;
  --graphite: #334155;
  --slate: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --mist: #F8FAFC;
  --white: #ffffff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 1rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(16,24,40,0.08);
  --shadow-xl: 0 20px 50px rgba(16,24,40,0.15);
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

input, textarea, select { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Announcement Ticker ---------- */
#announcement-ticker {
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--blue));
  color: var(--white);
  overflow: hidden;
  padding: 0.65rem 0;
  position: relative;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Header & Navigation ---------- */
.site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.site-header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: -0.125rem;
}

.logo-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.logo-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}

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

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(37,99,235,0.1);
  color: var(--blue);
  transition: background 0.2s;
}

.mobile-menu-btn:hover { background: rgba(37,99,235,0.2); }

.mobile-menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mobile-nav {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
}

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

.mobile-nav-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mobile-nav-inner a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav-inner a:hover {
  background: rgba(37,99,235,0.08);
  color: var(--blue);
}

/* ---------- Hero Section ---------- */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--mist);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.4), rgba(21,94,117,0.3), rgba(23,37,84,0.4));
}

.hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

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

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

.hero-left { display: flex; flex-direction: column; gap: 2rem; }

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(37,99,235,0.1), rgba(6,182,212,0.1));
  border-left: 4px solid var(--gold);
}

.hero-badge span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-title-highlight {
  background: linear-gradient(90deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  max-width: 42rem;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: #1e293b;
}

.btn-primary:hover { background: rgba(250,204,21,0.9); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
}

.btn-secondary:hover { background: rgba(255,255,255,0.95); }

.btn-dark {
  background: var(--gold);
  color: #1e293b;
}

.btn-dark:hover { background: rgba(250,204,21,0.9); }

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

.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-full { width: 100%; }

.btn svg { width: 1rem; height: 1rem; }

/* ---------- Section Headings ---------- */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--graphite);
  line-height: 1.7;
}

/* ---------- Products Section ---------- */
#products { background: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px,100%), 1fr));
  gap: 1.5rem;
  max-width: 75rem;
  margin: 0 auto;
}

.product-card {
  position: relative;
  border: 2px solid var(--border);
  border-top-width: 4px;
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.product-card-header { padding: 1.5rem 1.5rem 0; }

.product-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.product-icon-wrap svg { width: 40px; height: 40px; }

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.product-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--graphite);
}

.product-card-body {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-desc {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-features-divider {
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.product-features-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.feature-dot {
  color: var(--teal);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.product-link {
  margin-top: auto;
  padding-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  position: relative;
}

.product-link .link-text {
  position: relative;
}

.product-link .link-text::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s;
}

.product-link:hover .link-text::after { width: 100%; }

.product-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.product-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.product-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Services Section ---------- */
#services { background: var(--mist); }

.services-bg-video {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 600px;
  pointer-events: none;
  overflow: hidden;
}

.services-bg-video video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.services-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(248,250,252,0.6), var(--mist));
}

.services-section {
  position: relative;
  padding: 6rem 0;
  background: var(--mist);
  overflow: hidden;
}

/* Service Process Cards */
.process-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
  gap: 1.5rem;
  max-width: 75rem;
  margin: 0 auto 4rem;
}

.process-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.5s;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s;
}

.process-card:hover::before { transform: scaleX(1); }

.process-card:hover {
  border-color: rgba(37,99,235,0.5);
  box-shadow: 0 8px 30px rgba(37,99,235,0.15);
}

.process-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.process-number {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(37,99,235,0.1);
  line-height: 1;
  transition: color 0.3s;
}

.process-card:hover .process-number { color: rgba(37,99,235,0.2); }

.process-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.3s;
}

.process-card:hover .process-dot { transform: scale(1.5); }

.process-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.process-card:hover .process-title { color: var(--blue); }

.process-desc { font-size: 0.95rem; color: var(--graphite); line-height: 1.6; }

/* Tech Accordion */
.tech-accordion {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion-item {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(51,65,85,0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s;
}

.accordion-item:hover { transform: translateY(-2px); }

.accordion-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.accordion-item.open .accordion-top-line { opacity: 1; }

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.accordion-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.accordion-icon-wrap {
  width: 3rem;
  height: 3rem;
  background: rgba(37,99,235,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon-wrap { transform: scale(1.1); }

.accordion-icon-wrap svg { width: 40px; height: 40px; }

.accordion-text-wrap { flex: 1; min-width: 0; }

.accordion-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.accordion-summary { font-size: 0.9375rem; color: var(--slate); line-height: 1.6; }

.accordion-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--graphite);
  transition: transform 0.3s;
  margin-top: 2px;
}

.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s;
}

.accordion-item.open .accordion-panel {
  max-height: 500px;
  opacity: 1;
}

.accordion-panel-inner {
  padding: 0 1.5rem 1.5rem 4.75rem;
  font-size: 0.9375rem;
  color: var(--graphite);
  line-height: 1.7;
}

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
  gap: 1.5rem;
  max-width: 75rem;
  margin: 0 auto;
}

.industry-card {
  padding: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--purple));
  border-radius: 0.75rem;
  cursor: pointer;
  transition: box-shadow 0.5s;
}

.industry-card:hover {
  box-shadow: 0 0 30px rgba(37,99,235,0.4), 0 0 60px rgba(6,182,212,0.2);
}

.industry-inner {
  background: var(--white);
  border-radius: calc(0.75rem - 3px);
  padding: 2rem 1.5rem;
  height: 100%;
}

.industry-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.industry-card:hover .industry-title { color: var(--teal); }

.industry-desc { font-size: 0.9375rem; color: var(--graphite); line-height: 1.6; }

/* Cybersecurity Card */
.cyber-card {
  max-width: 56rem;
  margin: 4rem auto 0;
  background: linear-gradient(135deg, var(--ink), var(--graphite));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  overflow: hidden;
}

.cyber-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cyber-inner { flex-direction: row; align-items: flex-start; }
}

.cyber-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cyber-icon svg { width: 2rem; height: 2rem; stroke: var(--white); fill: none; stroke-width: 2; }

.cyber-body { flex: 1; }

.cyber-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.cyber-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---------- Development Process ---------- */
#process { background: var(--white); }

.process-steps-wrapper {
  position: relative;
  max-width: 75rem;
  margin: 0 auto;
}

.process-line {
  display: none;
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--purple));
  opacity: 0.2;
}

@media (min-width: 1024px) { .process-line { display: block; } }

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) { .process-steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .process-steps-grid { grid-template-columns: repeat(5, 1fr); } }

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px) scale(0.5);
  transition: opacity 0.7s, transform 0.7s;
}

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

.step-circle {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  position: relative;
}

.step.visible .step-circle { animation: pulse-glow 2s ease-in-out infinite; }

.step-circle svg { width: 2rem; height: 2rem; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.step-number {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s, transform 0.7s;
}

.step.visible .step-number {
  opacity: 1;
  transform: translateY(0);
}

.step-info {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s, transform 0.7s;
}

.step.visible .step-info {
  opacity: 1;
  transform: translateY(0);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.3); }
  50% { box-shadow: 0 0 30px rgba(37,99,235,0.6), 0 0 40px rgba(37,99,235,0.3); }
}

/* ---------- Why Xcdify ---------- */
.why-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--mist), var(--white), var(--mist));
  position: relative;
  overflow: hidden;
}

.why-bg-blur {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 50rem;
  height: 50rem;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  opacity: 0.05;
  filter: blur(60px);
  pointer-events: none;
}

.why-bg-video {
  position: absolute;
  inset-inline: -3rem;
  inset-block: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  pointer-events: none;
  overflow: hidden;
}

.why-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  object-position: 70% 50%;
  clip-path: inset(8% 0 0 12%);
}

.values-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 40rem;
  margin: 3rem auto 2rem;
}

.value-badge {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.7s, transform 0.7s;
}

.value-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.value-badge-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer-move 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer-move {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.value-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.7s, transform 0.7s;
}

.value-arrow.visible {
  opacity: 1;
  transform: scale(1);
}

.values-underline {
  height: 4px;
  max-width: 32rem;
  margin: 1.5rem auto 0;
  background: linear-gradient(to right, transparent, rgba(6,182,212,0.5), transparent);
  opacity: 0;
  transition: opacity 1s;
}

.values-underline.visible { opacity: 1; }

.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

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

.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.why-card-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(37,99,235,0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.why-card-text { font-size: 1rem; color: var(--graphite); line-height: 1.6; }

/* ---------- Testimonials ---------- */
#testimonials {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc, var(--white), rgba(219,234,254,0.3));
  position: relative;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.testimonials-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse-slow 4s ease-in-out infinite;
}

.testimonials-blob-1 {
  top: -6rem; left: -6rem;
  width: 24rem; height: 24rem;
  background: rgba(59,130,246,0.05);
}

.testimonials-blob-2 {
  bottom: -6rem; right: -6rem;
  width: 24rem; height: 24rem;
  background: rgba(20,184,166,0.05);
  animation-delay: 1s;
}

.testimonials-blob-3 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 37.5rem; height: 37.5rem;
  background: rgba(250,204,21,0.1);
  animation-delay: 2s;
}

@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.carousel-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
}

.carousel-track-container { overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

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

.testimonial-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.testimonial-logo-wrap {
  position: relative;
  width: 12rem;
  height: 4rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.testimonial-logo-wrap:hover { transform: scale(1.05); }

.testimonial-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testimonial-logo-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.testimonial-logo-sub {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.25rem;
}

.testimonial-card-outer {
  position: relative;
}

.testimonial-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  opacity: 0.2;
  filter: blur(4px);
  transition: opacity 0.5s;
}

.testimonial-card-outer:hover .testimonial-card-glow { opacity: 0.4; }

.testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid;
  transition: transform 0.5s, box-shadow 0.5s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.quote-icon {
  position: relative;
  margin-bottom: 1.5rem;
  height: 3rem;
}

.quote-icon-1, .quote-icon-2 {
  position: absolute;
  width: 3rem;
  height: 3rem;
}

.quote-icon-1 { color: rgba(37,99,235,0.2); animation: pulse-slow 2s ease-in-out infinite; }
.quote-icon-2 { color: rgba(250,204,21,0.3); transform: translate(4px, 4px); animation: pulse-slow 2s ease-in-out infinite; animation-delay: 0.5s; }

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.5rem;
}

.testimonial-author-bar {
  margin: 1.5rem -2rem -2rem;
  padding: 1rem 2rem;
  background: linear-gradient(to right, rgba(248,250,252,0.5), transparent);
  border-top: 1px solid #f1f5f9;
  border-radius: 0 0 1rem 1rem;
}

.testimonial-author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-author-role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.testimonial-author-company {
  font-size: 0.875rem;
  color: #94a3b8;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
}

.carousel-prev svg,
.carousel-next svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.carousel-dot:hover { background: #94a3b8; }
.carousel-dot.active { background: var(--blue); transform: scale(1.3); }

/* ---------- Insights Section ---------- */
#insights { background: var(--white); }

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px,100%), 1fr));
  gap: 2rem;
}

.insight-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
}

.insight-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.insight-card-img {
  height: 12rem;
  overflow: hidden;
}

.insight-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.insight-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.insight-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.insight-card:hover .insight-card-title { color: var(--blue); }

.insight-card-summary {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.insight-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: gap 0.2s;
  gap: 0.25rem;
}

.insight-read-more svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform 0.2s;
}

.insight-card:hover .insight-read-more { gap: 0.5rem; }
.insight-card:hover .insight-read-more svg { transform: translateX(4px); }

.insight-coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: linear-gradient(to right, rgba(6,182,212,0.1), rgba(37,99,235,0.1));
  border: 1px solid rgba(6,182,212,0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Contact Section ---------- */
#contact {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(6,182,212,0.05), rgba(250,204,21,0.05));
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(250,204,21,0.1));
  opacity: 0.3;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 75rem;
  margin: 0 auto;
}

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

.contact-cards { display: flex; flex-direction: column; gap: 2rem; }

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
}

.contact-card-inner { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem; height: 1.5rem;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.contact-card-content {
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-line;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 2px solid var(--border);
}

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input { height: 3rem; }

.form-textarea {
  min-height: 9.5rem;
  resize: vertical;
  display: block;
}

.form-select { height: 3rem; appearance: none; }

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-submit {
  width: 100%;
  background: var(--gold);
  color: #1e293b;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  height: 3rem;
  transition: background 0.2s;
}

.form-submit:hover:not(:disabled) { background: rgba(250,204,21,0.85); }

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */
footer {
  background: var(--mist);
  border-top: 4px solid var(--blue);
}

.footer-inner {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-wrap img { width: 40px; height: 40px; object-fit: contain; }

.footer-desc { color: var(--muted); line-height: 1.6; }

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  transition: color 0.2s;
  font-size: 0.9375rem;
}

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

.footer-links a.external { color: var(--blue); font-weight: 500; }
.footer-links a.external:hover { color: var(--teal); }

.footer-links a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.footer-link-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-top: 0.25rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
}

.footer-copyright { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Blogs Page Specific ---------- */
.blogs-hero {
  padding: 8.5rem 1.5rem 4rem;
  background: linear-gradient(135deg, #EFF6FF, var(--white), #F0FDFA);
  position: relative;
  overflow: hidden;
}

.blogs-hero-blob-1 {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  width: 18rem; height: 18rem;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.1;
  filter: blur(60px);
  animation: pulse-slow 3s ease-in-out infinite;
  pointer-events: none;
}

.blogs-hero-blob-2 {
  position: absolute;
  top: 5rem; right: 2.5rem;
  width: 18rem; height: 18rem;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.1;
  filter: blur(60px);
  animation: pulse-slow 3s ease-in-out infinite;
  animation-delay: 1s;
  pointer-events: none;
}

.blogs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.blogs-badge svg {
  width: 16px; height: 16px;
  stroke: var(--blue); fill: none; stroke-width: 2;
}

.blogs-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.blogs-hero-desc {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 40rem;
  margin: 0 auto;
}

.blog-filter-section { padding: 2rem 1.5rem; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.cat-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover, .cat-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px,100%), 1fr));
  gap: 2rem;
  max-width: 75rem;
  margin: 0 auto;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}

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

.blog-card-img {
  height: 14rem;
  overflow: hidden;
  position: relative;
}

.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-category {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-meta-item svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

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

.blog-card-excerpt { font-size: 0.9rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.blog-read-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform 0.2s;
}

.blog-card:hover .blog-read-link { gap: 0.75rem; }
.blog-card:hover .blog-read-link svg { transform: translateX(4px); }

/* Newsletter Section */
.newsletter-section {
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark), var(--teal));
}

.newsletter-blob-1, .newsletter-blob-2 {
  position: absolute;
  width: 24rem; height: 24rem;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.06;
  filter: blur(80px);
  animation: pulse-slow 3s ease-in-out infinite;
}

.newsletter-blob-1 { top: 0; left: 10%; }
.newsletter-blob-2 { bottom: 0; right: 10%; animation-delay: 1s; }

.newsletter-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.newsletter-desc {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

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

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.4); }

.newsletter-submit {
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
}

.newsletter-submit:hover {
  background: #f1f5f9;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* ---------- Legal Pages ---------- */
.legal-page {
  min-height: 100vh;
  background: var(--white);
}

.legal-content {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: var(--mist);
}

.legal-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2rem;
}

.legal-body {
  color: var(--muted);
}

.legal-body p { margin-bottom: 1rem; line-height: 1.7; }

.legal-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 1rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-body strong { color: var(--graphite); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

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

.hidden { display: none !important; }

.section-sub-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  margin-bottom: 1rem;
}

.section-sub-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
