/* ==========================================================================
   Virtualsys Global | Build Team Landing Page Stylesheet
   Enhanced Editorial Design: Rich Green Accents, Attractive Hero Banner,
   Comprehensive Content, Strict Typographic Hierarchy, Fully Responsive.
   ========================================================================== */

/* Design Tokens - Strict 5-Step Typographic Scale */
:root {
  --navy-primary: #06416d;
  --navy-dark: #042a47;
  --navy-deep: #021729;
  --navy-surface: #07385c;
  --navy-card: #093f68;

  --green-brand: #2e8638;
  --green-vibrant: #23a838;
  --green-hover: #1f6d2b;
  --green-surface: #eaf7ec;
  --green-light: #f0fdf4;
  --green-border: #bbf7d0;
  --green-accent-dark: #4ade80;
  --green-text-contrast: #166534;

  --color-page: #ffffff;
  --color-soft: #f8fafc;
  --color-muted-bg: #f1f5f9;
  --color-dark-surface: #042a47;
  --color-dark-card: #06375c;

  --text-headline: #0f172a;
  --text-body: #334155;
  --text-muted: #596a7d;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #cbd5e1;

  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container-max: 1240px;
  --container-pad: 24px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* Strict Font Scale */
  --font-display: clamp(2.25rem, 3.4vw, 3.35rem);
  --font-h2: clamp(1.4rem, 2.4vw, 2.2rem);
  --font-h3: 1.35rem;
  --font-body: 1rem;
  --font-small: 0.875rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--color-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--navy-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--green-brand);
}

.text-green {
  color: var(--green-brand) !important;
}

.section-dark .text-green,
.cta-band .text-green {
  color: var(--green-accent-dark) !important;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  color: var(--text-headline);
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h1 {
  font-size: var(--font-display);
  line-height: 1.08;
  max-width: 1100px;
}

h2 {
  font-size: var(--font-h2);
  line-height: 1.25;
  max-width: 900px;
}

h3 {
  font-size: var(--font-h3);
  line-height: 1.35;
  font-weight: 700;
}

p {
  font-size: var(--font-body);
  line-height: 1.65;
  color: var(--text-body);
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 820px;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: var(--font-body);
  font-weight: 600;
  line-height: 1;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--green-brand);
  color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--green-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--navy-primary);
  color: #ffffff;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--navy-dark);
  color: #ffffff;
}

.btn-outline {
  background-color: var(--color-muted-bg);
  color: var(--navy-primary);
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: #e2e8f0;
  color: var(--navy-dark);
}

/* ==========================================================================
   Site Top Trust Bar
   ========================================================================== */
.site-topbar {
  background-color: var(--navy-dark);
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 0;
}

.topbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar-facts span {
  display: inline-flex;
  align-items: center;
}

.topbar-facts span::after {
  content: "•";
  color: var(--green-accent-dark);
  margin-left: 16px;
}

.topbar-facts span:last-child::after {
  content: "";
  margin-left: 0;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(35, 168, 56, 0.15);
  color: var(--green-accent-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.topbar-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green-accent-dark);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  padding: 16px 0;
  border-bottom: 2px solid #e8edf2;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 58px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.5vw, 40px);
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-headline);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--green-brand);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--green-brand);
  transition: width 0.2s ease;
}

.main-nav a:hover::after, .main-nav a:focus-visible::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 13px 26px;
  font-size: 0.925rem;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy-primary);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  background-color: var(--color-page);
  padding: 20px var(--container-pad);
}

.mobile-drawer.active {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.mobile-nav-links a {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-headline);
  padding: 6px 0;
}

/* ==========================================================================
   Hero Banner Section (Attractive 2-Column Executive Layout)
   ========================================================================== */
.hero-section {
  padding: 48px 0 48px 0;
  background-color: var(--color-page);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.hero-main-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hero-main-block h1 {
  font-size: clamp(2.35rem, 3.2vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--navy-primary);
}

.hero-live-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  background-color: var(--green-surface);
  color: var(--green-text-contrast);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-live-pill .pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green-vibrant);
  border-radius: 50%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-headline);
}

.check-item svg {
  color: var(--green-brand);
  flex-shrink: 0;
}

/* Visual Panel (Right Side Hero Overview Card) */
.visual-panel {
  background-color: var(--color-soft);
  border-radius: var(--radius-lg);
  border: 2px solid #e2e8f0;
  border-top: 4px solid var(--green-brand);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
}

.panel-title h3,
.panel-title .panel-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.25;
}

.panel-title p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--green-surface);
  color: var(--green-text-contrast);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-vibrant);
}

/* Panel 4 Metrics 2x2 Grid */
.panel-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric-card {
  background-color: #ffffff;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-brand);
  line-height: 1.1;
}

.metric-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.25;
}

.metric-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Panel Setup Flow */
.panel-setup-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: #ffffff;
  padding: 18px 16px;
  border-radius: var(--radius-md);
}

.setup-flow-header {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy-primary);
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--green-surface);
  color: var(--green-text-contrast);
  font-size: 0.8125rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-info strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.25;
}

.step-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* ==========================================================================
   Trust Strip Banner
   ========================================================================== */
.trust-strip-banner {
  margin-top: 48px;
  background-color: var(--color-soft);
  border-radius: var(--radius-md);
  padding: 32px 36px;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-strip-card {
  background: transparent;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trust-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-text-contrast);
  line-height: 1.2;
}

.trust-strip-card h4,
.trust-strip-card .trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-primary);
  line-height: 1.3;
}

.trust-strip-card p {
  font-size: var(--font-small);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   General Sections
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-soft {
  background-color: var(--color-soft);
}

.section-dark {
  background-color: var(--color-dark-surface);
  color: var(--text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-on-dark);
}

.section-dark p {
  color: var(--text-on-dark-muted);
}

.section-header {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   Operating Model Section (#model)
   ========================================================================== */
.model-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.model-feature-card {
  background-color: var(--color-page);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 2px solid #e2e8f0;
  border-top: 4px solid var(--green-brand);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.model-feature-card:hover {
  transform: translateY(-3px);
  border-color: #94a3b8;
}

.model-feature-card.highlight {
  background-color: var(--color-page);
  border: 2px solid #e2e8f0;
  border-top: 4px solid var(--green-brand);
}

.model-feature-card h3 {
  font-size: 1.35rem;
  color: var(--navy-primary);
}

.model-feature-card p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

.model-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.model-bullet-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

.model-bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232e8638'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Icons */
.icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-check {
  color: var(--green-brand);
}

/* ==========================================================================
   Process Section (How It Works)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step-card {
  background-color: var(--color-dark-card);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid var(--green-brand);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.process-step-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--green-accent-dark);
}

.step-num-pill {
  display: inline-block;
  color: var(--green-accent-dark);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.process-step-card h3 {
  font-size: 1.25rem;
  color: var(--text-on-dark);
  line-height: 1.3;
}

.process-step-card p {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Capabilities Section (Complete 4 Domains)
   ========================================================================== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.capability-block {
  background-color: var(--color-page);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 2px solid #e2e8f0;
  border-top: 4px solid var(--green-brand);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.capability-block:hover {
  transform: translateY(-3px);
  border-color: #94a3b8;
}

.capability-block h3 {
  font-size: 1.35rem;
  color: var(--navy-primary);
}

.capability-block p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
}

.capability-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.capability-items li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.5;
}

.capability-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 17px;
  height: 17px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232e8638'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ==========================================================================
   Success Story Section (#success)
   ========================================================================== */
.success-story-banner {
  background-color: var(--color-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-story-banner h3 {
  font-size: 1.4rem;
  color: var(--navy-primary);
}

.tenets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.tenet-item {
  background-color: #ffffff;
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tenet-tag {
  font-size: var(--font-small);
  font-weight: 800;
  color: var(--green-brand);
}

.tenet-item strong {
  font-size: 1rem;
  color: var(--text-headline);
}

.tenet-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Portfolio Grid (One Row 4-Column Showcase) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.portfolio-card {
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  border-color: #94a3b8;
}

.portfolio-thumb {
  width: 100%;
  height: 150px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 2px solid #f1f5f9;
  box-sizing: border-box;
}

.portfolio-thumb img {
  height: 96px;
  width: 200px;
  max-width: 90%;
  object-fit: contain;
}

.portfolio-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.portfolio-body h3 {
  font-size: 1.125rem;
  color: var(--navy-primary);
  line-height: 1.3;
}

.portfolio-body .tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-text-contrast);
  background-color: var(--green-surface);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  line-height: 1.25;
}

.portfolio-body p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
}

.pillar-card {
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-top: 4px solid var(--green-brand);
}

/* ==========================================================================
   FAQ Section (#faq)
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-page);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--navy-primary);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

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

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-brand);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--navy-primary);
}

.faq-answer {
  margin-top: 14px;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
  background-color: var(--navy-dark);
  color: var(--text-on-dark);
  padding: 80px 0;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-text {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-text h2 {
  color: #ffffff;
}

.cta-text p {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.cta-action {
  flex-shrink: 0;
}

/* ==========================================================================
   Corporate Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 28px 0;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) minmax(220px, 1fr);
  gap: 42px;
  padding-bottom: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand img {
  height: 54px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  opacity: 0.98;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 380px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background-color: var(--green-brand);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: #ffffff;
}

/* Contact Lines & Socials */
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green-accent-dark);
}

.contact-line a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-line a:hover, .contact-line a:focus-visible {
  color: #ffffff;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.socials a:hover, .socials a:focus-visible {
  background: var(--green-brand);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Bottom Bar */
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover, .footer-bottom a:focus-visible {
  color: #ffffff;
}

/* ==========================================================================
   Modal Dialog & Form
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 23, 41, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background-color: var(--color-page);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--green-brand);
  padding: 36px 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-headline);
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--navy-primary);
  margin-bottom: 6px;
}

.modal-header p {
  font-size: var(--font-small);
  color: var(--text-muted);
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--text-headline);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  color: var(--text-headline);
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

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

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid,
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  background-image: none !important;
}

.error-feedback {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 4px;
  line-height: 1.35;
  display: none;
}

.error-feedback:not(:empty) {
  display: block;
}

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

/* Simple PHP CAPTCHA Verification */
.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  flex-shrink: 0;
}

.captcha-preview img {
  display: block;
  width: 150px;
  height: 46px;
  border-radius: 4px;
  object-fit: contain;
}

.captcha-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.25s ease;
  padding: 0;
}

.captcha-refresh-btn:hover {
  color: var(--green-brand);
  background-color: var(--green-surface);
  transform: rotate(45deg);
}

.captcha-refresh-btn:focus-visible {
  outline: 2px solid var(--green-brand);
  outline-offset: 2px;
}

.captcha-input-wrap {
  flex-grow: 1;
}

.captcha-input-wrap input {
  width: 100%;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.honeypot {
  display: none !important;
  visibility: hidden !important;
}

.modal-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-small);
  margin-bottom: 18px;
  display: none;
}

.modal-message.error {
  display: block;
  background-color: #fef2f2;
  border-left: 4px solid #b91c1c;
  color: #b91c1c;
}

.modal-message.success {
  display: block;
  background-color: #f0fdf4;
  border-left: 4px solid #15803d;
  color: #15803d;
}

.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 36px 20px;
}

.success-screen .success-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.success-screen .success-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

.success-screen h3 {
  font-size: var(--font-h3);
  color: var(--navy-primary);
  margin: 0;
}

.success-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-primary);
  margin: 0;
  max-width: 440px;
}

.success-details {
  font-size: var(--font-small);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 460px;
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn-success-close {
  background-color: var(--navy-primary);
  color: #ffffff;
  padding: 12px 38px;
  border-radius: var(--radius-sm);
  font-size: var(--font-body);
  font-weight: 600;
  border: 1.5px solid var(--navy-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-success-close:hover,
.btn-success-close:focus-visible {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

/* Submit Button Loading Ring */
.btn-spinner-ring {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: btnSpinRing 0.75s linear infinite;
  flex-shrink: 0;
  vertical-align: middle;
}

@keyframes btnSpinRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#submitBtn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#submitBtn .btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#submitBtn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.d-none {
  display: none !important;
}

/* ==========================================================================
   Motion Layer
   ========================================================================== */
@keyframes enterUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-main-block { animation: enterUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .fact-item:nth-child(1) { animation: enterUp 0.5s ease 0.12s both; }
  .fact-item:nth-child(2) { animation: enterUp 0.5s ease 0.16s both; }
  .fact-item:nth-child(3) { animation: enterUp 0.5s ease 0.20s both; }
  .fact-item:nth-child(4) { animation: enterUp 0.5s ease 0.24s both; }

  .trust-strip-card:nth-child(1) { animation: enterUp 0.5s ease 0.26s both; }
  .trust-strip-card:nth-child(2) { animation: enterUp 0.5s ease 0.28s both; }
  .trust-strip-card:nth-child(3) { animation: enterUp 0.5s ease 0.30s both; }
  .trust-strip-card:nth-child(4) { animation: enterUp 0.5s ease 0.32s both; }

  .model-feature-card:nth-child(1) { animation: enterUp 0.5s ease 0.1s both; }
  .model-feature-card:nth-child(2) { animation: enterUp 0.5s ease 0.15s both; }
  .model-feature-card:nth-child(3) { animation: enterUp 0.5s ease 0.2s both; }

  .process-step-card:nth-child(1) { animation: enterUp 0.5s ease 0.1s both; }
  .process-step-card:nth-child(2) { animation: enterUp 0.5s ease 0.15s both; }
  .process-step-card:nth-child(3) { animation: enterUp 0.5s ease 0.2s both; }
  .process-step-card:nth-child(4) { animation: enterUp 0.5s ease 0.25s both; }

  .capability-block:nth-child(1) { animation: enterUp 0.5s ease 0.1s both; }
  .capability-block:nth-child(2) { animation: enterUp 0.5s ease 0.15s both; }
  .capability-block:nth-child(3) { animation: enterUp 0.5s ease 0.2s both; }
  .capability-block:nth-child(4) { animation: enterUp 0.5s ease 0.25s both; }

  .portfolio-card:nth-child(1) { animation: enterUp 0.5s ease 0.1s both; }
  .portfolio-card:nth-child(2) { animation: enterUp 0.5s ease 0.15s both; }
  .portfolio-card:nth-child(3) { animation: enterUp 0.5s ease 0.2s both; }
  .portfolio-card:nth-child(4) { animation: enterUp 0.5s ease 0.25s both; }

  .btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
  }
  .btn:hover {
    transform: translateY(-2px);
  }
  .btn:active {
    transform: translateY(0);
  }

  .model-feature-card,
  .process-step-card,
  .capability-block,
  .portfolio-card,
  .trust-strip-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .model-feature-card:hover,
  .process-step-card:hover,
  .capability-block:hover,
  .portfolio-card:hover,
  .trust-strip-card:hover {
    transform: translateY(-3px);
  }
}

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

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
  .site-topbar {
    display: none;
  }

  .main-nav,
  .header-hub-pill,
  .brand-tagline {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .model-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

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

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
  }

  .site-header {
    padding: 12px 0;
  }

  .brand-link img {
    height: 48px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero-section {
    padding: 44px 0 36px 0;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-checks {
    flex-direction: column;
    gap: 12px;
  }

  .hero-facts-strip {
    margin-top: 36px;
    padding: 24px 18px;
  }

  .hero-facts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-strip-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .capability-block {
    padding: 24px 20px;
  }

  .success-story-banner {
    padding: 24px 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .cta-action {
    width: 100%;
  }

  .cta-action .btn {
    width: 100%;
  }

  .model-feature-card {
    padding: 24px 20px;
  }

  .modal-container {
    padding: 28px 20px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  :root {
    --container-pad: 16px;
  }

  .hero-live-pill {
    font-size: 0.8125rem;
    padding: 5px 10px;
    white-space: normal;
  }

  h1, .hero-main-block h1 {
    font-size: 1.7rem;
    line-height: 1.22;
  }

  .success-story-banner h3 {
    font-size: 1.22rem;
    line-height: 1.25;
  }

  h2 {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  .captcha-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .captcha-preview {
    justify-content: space-between;
  }

  .captcha-preview img {
    flex-grow: 1;
    max-width: 200px;
  }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-404-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-404-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: var(--color-soft);
  text-align: center;
}

.error-404-container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--green-surface);
  color: var(--green-text-contrast);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.error-code {
  font-size: clamp(4.5rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy-primary);
  margin: 0 0 8px 0;
}

.error-404-container h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy-dark);
  margin: 0 0 16px 0;
  font-weight: 700;
}

.error-description {
  font-size: var(--font-body);
  color: var(--text-body);
  line-height: 1.65;
  margin: 0 0 32px 0;
  max-width: 480px;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.error-quicklinks {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  width: 100%;
  text-align: left;
}

.error-quicklinks-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.error-quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.error-quicklink-item {
  color: var(--navy-primary);
  text-decoration: none;
  font-size: var(--font-small);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.error-quicklink-item:hover,
.error-quicklink-item:focus-visible {
  color: var(--green-brand);
  transform: translateX(2px);
}

@media (max-width: 540px) {
  .error-quicklinks-grid {
    grid-template-columns: 1fr;
  }
}

/* Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
