/* ============================================
   Pravidha Solutions — Design System
   ============================================ */

/* Google Fonts loaded via <link> in HTML <head> for performance */

/* --- Design Tokens --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F3F4F6;
  --color-card: #FFFFFF;
  --color-accent: #B8773F;
  --color-accent-hover: #A06830;
  --color-accent-soft: rgba(184, 119, 63, 0.08);
  --color-link: #1D4ED8;
  --color-text: #1F2937;
  --color-text-secondary: #4B5563;
  --color-heading: #111827;
  --color-card-border: #E5E7EB;
  --color-divider: #E5E7EB;

  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --container-narrow: 800px;
  --section-padding: 5.5rem 1.5rem;
  --card-radius: 12px;
  --transition: 0.25s ease;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.07), 0 20px 48px rgba(0,0,0,0.05);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Top accent stripe */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 1001;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

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

.section--alt {
  background-color: var(--color-bg-alt);
  position: relative;
}

.section--alt:not(.hero-image-section)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  pointer-events: none;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0F172A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

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

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.site-logo {
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 0;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.nav-links a.active {
  color: #FFFFFF;
  font-weight: 600;
}

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

.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #C4884A 0%, #A06830 100%);
  color: #FFFFFF !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #B8773F 0%, #8B5A2B 100%);
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 119, 63, 0.25);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  padding: 11rem 1.5rem 6rem;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFFFFF;
}

.hero .accent {
  color: #D4A06A;
}

.hero p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* --- Hero Image Section --- */
.hero-image-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.88) 0%,
    rgba(17, 24, 39, 0.80) 50%,
    rgba(17, 24, 39, 0.88) 100%
  );
  z-index: 1;
}

.hero-image-section > .container {
  position: relative;
  z-index: 2;
}

/* Light text over dark hero overlays */
.hero-image-section h1,
.hero-image-section h2,
.hero-image-section h3 {
  color: #FFFFFF;
}

.hero-image-section p {
  color: rgba(255, 255, 255, 0.8);
}

.hero-image-section .section-label {
  color: #D4A06A;
}

.hero-image-section .btn--outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-image-section .btn--outline:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 10rem 1.5rem 4rem;
  text-align: center;
}

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

.page-header p {
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto;
}

.page-header.hero-image-section {
  position: relative;
}

/* --- Section Image --- */
.section-image {
  width: 100%;
  border-radius: var(--card-radius);
  object-fit: cover;
  max-height: 400px;
}

/* --- Card Image --- */
.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  margin: -2rem -2rem 1.5rem -2rem;
  width: calc(100% + 4rem);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #C4884A 0%, #A06830 100%);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #B8773F 0%, #8B5A2B 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 119, 63, 0.3);
}

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

.btn--outline:hover {
  background: var(--color-accent);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(184, 119, 63, 0.2);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Section Headers --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

.text-center .section-label::before {
  display: none;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.125rem;
  max-width: 620px;
  margin-bottom: 3rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

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

.text-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* --- Card Grid --- */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

/* --- Cards --- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: rgba(184, 119, 63, 0.03);
}

.card:hover::before,
.card:focus-within::before {
  transform: scaleX(1);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 1.375rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

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

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

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: all var(--transition);
}

.card__link:hover {
  color: var(--color-accent-hover);
  gap: 0.625rem;
}

/* --- Feature Blocks --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-block__content h2 {
  margin-bottom: 1rem;
}

.feature-block__content p {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.feature-block__visual {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-card-border);
  border-radius: var(--card-radius);
  padding: 2.5rem;
}

.feature-block__image {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--card-radius);
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list .check {
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Stat Bar --- */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 2px solid var(--color-divider);
  border-bottom: 2px solid var(--color-divider);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #E8E9ED 100%);
  border-top: 2px solid var(--color-divider);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  max-width: 540px;
  margin: 0 auto 2rem;
  color: var(--color-text-secondary);
}

/* --- Process / Steps --- */
.steps {
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-divider);
}

.step:last-child {
  border-bottom: none;
}

.step__number {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-accent);
  font-size: 1.125rem;
}

.step__content h3 {
  margin-bottom: 0.5rem;
}

.step__content p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* --- Engagement Models --- */
.engagement-models {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.engagement-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.engagement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.engagement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  background: rgba(184, 119, 63, 0.03);
}

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

.engagement-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

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

/* --- Founder Section --- */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.founder__photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
  border: 4px solid var(--color-accent);
  box-shadow: 0 0 0 8px var(--color-accent-soft), var(--shadow-md);
}

.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__photo-placeholder {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-bg-alt);
}

.founder__info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.625rem;
}

.founder__title {
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.founder__linkedin {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.founder__linkedin:hover {
  color: var(--color-accent-hover);
  gap: 0.5rem;
}

.founder__info p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* --- Team Cards --- */
.team-card {
  text-align: center;
}

.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 0 6px var(--color-accent-soft);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card p {
  color: var(--color-text);
}

/* --- Philosophy Section --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.philosophy-item {
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--color-divider);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.philosophy-item:last-child {
  border-bottom: none;
}

.philosophy-item:hover {
  border-left-color: var(--color-accent);
  background: var(--color-accent-soft);
  padding-left: 2rem;
}

.philosophy-item h3 {
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

.philosophy-item p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* --- Architecture Diagram --- */
.arch-diagram {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-card-border);
  border-radius: var(--card-radius);
  padding: 3rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* --- Tags --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(29, 78, 216, 0.06);
  border: 1px solid rgba(29, 78, 216, 0.15);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-link);
}

/* --- Partner Badges --- */
.partner-badge {
  max-height: 80px;
  width: auto;
}

.partner-badge--lg {
  max-height: 120px;
}

.footer-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* --- Partnership Banner --- */
.partnership-banner {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.site-footer {
  padding: 3.5rem 1.5rem 2.5rem;
  background: #0F172A;
  text-align: center;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-logo__img {
  height: 40px;
  width: auto;
  margin: 0 auto;
  border-radius: 0;
  opacity: 1;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #9CA3AF;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #6B7280;
}

/* ============================================
   Responsive
   ============================================ */

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

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

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

  .feature-block {
    grid-template-columns: 1fr 1fr;
  }

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

  .founder {
    grid-template-columns: 220px 1fr;
    gap: 3rem;
  }

  .founder__photo {
    margin: 0;
  }
}

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

  section {
    padding: 6.5rem 1.5rem;
  }

  .hero {
    padding: 12rem 1.5rem 7rem;
  }

  .page-header {
    padding: 12rem 1.5rem 5rem;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0F172A;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9375rem;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.75rem;
  }

  .footer-nav {
    gap: 1rem 1.5rem;
  }
}

/* ============================================
   Certifications Strip
   ============================================ */
.cert-strip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.cert-badge__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-soft);
  overflow: hidden;
}

.cert-badge__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-badge__icon--img {
  background: transparent;
}

.cert-badge__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
}

.cert-badge__label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  max-width: 140px;
}

/* ============================================
   Client Industries Bar
   ============================================ */
.client-bar {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
}

.client-bar__items {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.client-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.client-bar__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-soft);
  font-size: 1.5rem;
}

.client-bar__label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 140px;
}

/* ============================================
   Testimonial
   ============================================ */
.testimonial-section {
  padding: 5.5rem 1.5rem;
}

.testimonial__quote {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.85;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial__logo {
  display: block;
  height: 1.75rem;
  width: auto;
  margin: 0 auto 0.75rem;
}

.testimonial__author {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-style: normal;
}

.testimonial__author strong {
  color: var(--color-heading);
  font-weight: 700;
}

/* ============================================
   Hero Entrance Animation
   ============================================ */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .section-label,
.hero h1,
.hero p,
.hero .btn-group,
.page-header .section-label,
.page-header h1,
.page-header p {
  opacity: 0;
  animation: heroFadeIn 0.7s ease forwards;
}

.hero .section-label, .page-header .section-label { animation-delay: 0.1s; }
.hero h1, .page-header h1 { animation-delay: 0.25s; }
.hero p, .page-header p { animation-delay: 0.4s; }
.hero .btn-group { animation-delay: 0.55s; }

/* ============================================
   Scroll Animations
   ============================================ */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate--d1 { transition-delay: 0.1s; }
.animate--d2 { transition-delay: 0.2s; }
.animate--d3 { transition-delay: 0.3s; }

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

  .hero .section-label,
  .hero h1,
  .hero p,
  .hero .btn-group,
  .page-header .section-label,
  .page-header h1,
  .page-header p {
    opacity: 1;
    animation: none;
  }
}

/* ============================================
   Trust Bar (homepage)
   ============================================ */
.trust-bar {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--color-divider);
}

.trust-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.trust-bar__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.trust-bar__divider {
  width: 1px;
  height: 16px;
  background: var(--color-divider);
  flex-shrink: 0;
}

.trust-bar__items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-bar__item {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

/* ============================================
   Footer Social Links
   ============================================ */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #9CA3AF;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   Back-to-Top Button
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(184, 119, 63, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--color-accent-hover);
}

/* ============================================
   Focus Styles (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.nav-links a:focus-visible,
.footer-nav a:focus-visible,
.footer-social a:focus-visible {
  outline-color: #FFFFFF;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}

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

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   Blog Listing
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.blog-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card__body {
  padding: 2rem;
}

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

.blog-card__tag {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

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

.blog-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--color-heading);
  text-decoration: none;
  transition: color var(--transition);
}

.blog-card__title a:hover {
  color: var(--color-accent);
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.blog-card__author {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.blog-card__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: all var(--transition);
}

.blog-card__link:hover {
  color: var(--color-accent-hover);
}

/* ============================================
   Blog Article
   ============================================ */
.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-divider);
  flex-wrap: wrap;
}

.blog-article__tag {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

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

.blog-article__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.blog-article__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #D4A06A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: #FFFFFF;
}

.blog-article__author-name {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-heading);
}

.blog-article__author-role {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.blog-article p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.blog-article > p:first-of-type::first-letter {
  font-size: 3.5rem;
  float: left;
  line-height: 0.75;
  margin: 0.1em 0.15em 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-accent);
}

.blog-article h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 3rem 0 1.25rem;
  line-height: 1.25;
}

.blog-article h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin: 2.25rem 0 0.875rem;
  line-height: 1.35;
}

.blog-article strong {
  color: var(--color-heading);
  font-weight: 600;
}

/* Blog Callout */
.blog-callout {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-card-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  padding: 1.75rem 2rem;
  margin: 2.25rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-heading);
  line-height: 1.65;
  font-style: italic;
}

/* Blog List */
.blog-list {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.blog-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.blog-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #EF4444;
  font-weight: 700;
}

.blog-list--success li::before {
  content: '\2713';
  color: #34D399;
}

/* ============================================
   Blog Architecture Diagram (Dark Embed)
   ============================================ */
.blog-diagram {
  max-width: 1080px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.blog-diagram__label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.blog-diagram__wrap {
  background: #0C1120;
  border-radius: 16px;
  padding: 3rem 2.25rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  color: #E8ECF4;
  overflow: hidden;
  position: relative;
}

.blog-diagram__wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: 16px;
}

.blog-diagram__header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.blog-diagram__header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E8ECF4;
  margin-bottom: 0.5rem;
}

.blog-diagram__header p {
  font-size: 0.9375rem;
  color: #94A3B8;
  margin-bottom: 0;
}

.blog-arch-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  position: relative;
}

.blog-arch-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.blog-arch-label--bad { color: #EF4444; }
.blog-arch-label--good { color: #34D399; }

.blog-arch-label .rule {
  flex: 1;
  height: 1px;
}

.blog-arch-label--bad .rule {
  background: linear-gradient(90deg, rgba(239,68,68,0.4), transparent);
}

.blog-arch-label--good .rule {
  background: linear-gradient(90deg, rgba(52,211,153,0.4), transparent);
}

.blog-arch-box {
  background: #131A2E;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  min-height: 480px;
  border: 1px solid;
}

.blog-arch-box--bad {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(180deg, rgba(239,68,68,0.06) 0%, #131A2E 25%);
}

.blog-arch-box--good {
  border-color: rgba(52, 211, 153, 0.2);
  background: linear-gradient(180deg, rgba(52,211,153,0.06) 0%, #131A2E 25%);
}

.blog-d-layer {
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
  margin-bottom: 0.625rem;
}

.blog-d-layer__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  color: #E8ECF4;
}

.blog-d-layer__desc {
  font-size: 0.6875rem;
  color: #94A3B8;
  margin-top: 0.1875rem;
  line-height: 1.5;
}

.blog-d-layer--app {
  background: rgba(99, 132, 227, 0.1);
  border: 1px solid rgba(99, 132, 227, 0.25);
}

.blog-d-layer--llm {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.blog-d-layer--data {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.blog-d-layer--guard {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.blog-d-layer--core {
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(244,114,182,0.08));
  border: 1px solid rgba(251,191,36,0.35);
  padding: 1rem 0.875rem;
}

.blog-d-arrow {
  display: flex;
  justify-content: center;
  margin: 0.1875rem 0;
}

.blog-d-arrow span {
  width: 2px;
  height: 18px;
  position: relative;
  display: block;
}

.blog-d-arrow--bad span { background: rgba(239,68,68,0.35); }
.blog-d-arrow--good span { background: rgba(52,211,153,0.3); }

.blog-d-arrow span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.blog-d-arrow--bad span::after { border-top: 5px solid rgba(239,68,68,0.45); }
.blog-d-arrow--good span::after { border-top: 5px solid rgba(52,211,153,0.4); }

.blog-d-multi-arrow {
  display: flex;
  justify-content: space-around;
  margin: 0.1875rem 0;
  padding: 0 1rem;
}

.blog-d-multi-arrow span {
  width: 2px;
  height: 18px;
  background: rgba(239,68,68,0.25);
  position: relative;
  display: block;
}

.blog-d-multi-arrow span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid rgba(239,68,68,0.35);
}

.blog-d-row {
  display: grid;
  gap: 0.375rem;
}

.blog-d-row--2 { grid-template-columns: 1fr 1fr; }
.blog-d-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.blog-d-row .blog-d-layer { margin-bottom: 0; }

.blog-d-issues {
  margin-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.blog-d-issue {
  font-size: 0.6875rem;
  color: #94A3B8;
  display: flex;
  align-items: flex-start;
  gap: 0.4375rem;
  line-height: 1.45;
}

.blog-d-issue__mark {
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 1px;
}

.blog-d-issue__mark--bad { color: #EF4444; }
.blog-d-issue__mark--good { color: #34D399; }

/* Capability Cards */
.blog-caps-section {
  margin-top: 2.5rem;
  position: relative;
}

.blog-caps-label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FBBF24;
  margin-bottom: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.blog-caps-label .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(251,191,36,0.4), transparent);
}

.blog-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.blog-cap-card {
  background: #131A2E;
  border: 1px solid rgba(99, 132, 227, 0.18);
  border-radius: 10px;
  padding: 1.125rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.blog-cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.blog-cap-card:nth-child(1)::before { background: #34D399; }
.blog-cap-card:nth-child(2)::before { background: #FBBF24; }
.blog-cap-card:nth-child(3)::before { background: #38BDF8; }
.blog-cap-card:nth-child(4)::before { background: #F472B6; }
.blog-cap-card:nth-child(5)::before { background: #A78BFA; }
.blog-cap-card:nth-child(6)::before { background: #6384E3; }

.blog-cap-card:hover {
  border-color: rgba(99,132,227,0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.blog-cap-card__icon {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.blog-cap-card h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #E8ECF4;
  margin-bottom: 0.3125rem;
}

.blog-cap-card p {
  font-size: 0.6875rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 0;
}

.blog-diagram__footer {
  text-align: center;
  margin-top: 2.25rem;
  position: relative;
}

.blog-diagram__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FBBF24;
}

.blog-diagram__tagline {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 0.25rem;
}

/* Blog Responsive */
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .blog-arch-comparison { grid-template-columns: 1fr; }
  .blog-caps-grid { grid-template-columns: 1fr 1fr; }
  .blog-diagram__wrap { padding: 2rem 1.25rem; }
  .blog-article__author { margin-left: 0; }
}

@media (max-width: 500px) {
  .blog-caps-grid { grid-template-columns: 1fr; }
  .blog-d-row--3 { grid-template-columns: 1fr; }
}
