/* ==========================================================================
   State-of-the-Art Next-Gen Design System for Kikai Accounting & Consultancy
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --docyt-navy: #0b132b;
  --docyt-navy-dark: #060a17;
  --docyt-blue: #1e293b;
  --docyt-accent-blue: #2563eb;
  --docyt-cyan: #06b6d4;
  --docyt-emerald: #10b981;
  --docyt-purple: #7c3aed;
  --docyt-red: #e63946;
  --docyt-red-dark: #b91c1c;

  --docyt-bg-light: #f8fafc;
  --docyt-bg-surface: #ffffff;
  --docyt-bg-subtle: #f1f5f9;

  --docyt-border: #e2e8f0;
  --docyt-border-dark: rgba(255, 255, 255, 0.1);
  --docyt-glass-bg: rgba(15, 23, 42, 0.75);
  --docyt-glass-border: rgba(255, 255, 255, 0.12);
  
  --docyt-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #e63946 100%);
  --docyt-gradient-brand: linear-gradient(135deg, #06b6d4 0%, #2563eb 50%, #7c3aed 100%);
  --docyt-gradient-glow: linear-gradient(135deg, rgba(230, 57, 70, 0.25) 0%, rgba(37, 99, 235, 0.25) 100%);

  --docyt-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --docyt-shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --docyt-shadow-lg: 0 12px 36px -4px rgba(15, 23, 42, 0.12);
  --docyt-shadow-xl: 0 24px 60px -12px rgba(15, 23, 42, 0.35);
  --docyt-glow-red: 0 0 30px rgba(230, 57, 70, 0.35);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--docyt-bg-surface);
  color: var(--docyt-navy);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--docyt-navy);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.grad-text {
  background: var(--docyt-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-brand-red {
  background: linear-gradient(135deg, #ff4d5a 0%, #e63946 50%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--docyt-accent-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.eyebrow-red {
  color: #ff4d5a;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.2);
}

.lede {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Mega Nav */
.site-header, .kikai-header-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 10, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo-img {
  height: 38px;
  width: auto;
  border-radius: 6px;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.logo-brand:hover .logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link-btn, .kikai-nav-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link-btn:hover, .kikai-nav-link:hover {
  color: #ff4d5a;
}

.nav-item:hover .kikai-nav-link i.bi-chevron-down {
  transform: rotate(180deg);
}

/* Resources Dropdown Menu (Pixel-Matched to User Screenshot) */
.resource-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #0d111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1050;
}

.nav-item:hover .resource-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.resource-dropdown-link {
  display: block;
  padding: 13px 22px;
  color: #d1d5db;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.resource-dropdown-link:hover,
.resource-dropdown-link.active {
  color: #ff4d5a;
  background: rgba(230, 57, 70, 0.08);
  border-left-color: #e63946;
  padding-left: 26px;
}

/* Framed Resources Nav Button from Screenshot */
.kikai-nav-btn-framed {
  border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.kikai-nav-btn-framed:hover,
.nav-item:hover .kikai-nav-btn-framed {
  border-color: #ff4d5a !important;
  color: #ff4d5a !important;
  background: rgba(230, 57, 70, 0.08) !important;
}

.nav-item:hover .kikai-nav-btn-framed i.bi-chevron-down {
  transform: rotate(180deg);
}

.mega-link {
  display: block;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mega-link:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.3);
  transform: translateX(3px);
}

.mega-link-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.mega-link-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-kikai-employer {
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  white-space: nowrap;
}

.btn-kikai-employer:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-kikai-primary {
  height: 40px;
  padding: 0 20px;
  background: linear-gradient(135deg, #e63946 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.35);
}

.btn-kikai-primary:hover {
  background: linear-gradient(135deg, #ff4d5a 0%, #e63946 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.5);
  transform: translateY(-2px);
}

.btn-docyt-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e63946 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-docyt-primary:hover {
  background: linear-gradient(135deg, #ff4d5a 0%, #e63946 100%);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-docyt-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}

.btn-docyt-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Dark Hero Section */
.hero-dark {
  background: var(--docyt-navy-dark);
  color: #ffffff;
  padding: 36px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-dark::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

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

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content .lede {
  color: #94a3b8;
  font-size: 1.12rem;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   3D Card Depth, Perspective & Sheen Engine
   ========================================================================== */
.card-3d-effect,
.dashboard-preview-card,
.benefit-card,
.story-card,
.calculator-box,
.consult-form-box,
.stack-card,
.kikai-modal-card,
.red-accent-service-card,
.industry-sector-card,
.rich-industry-card,
.about-value-card,
#official-banner-section .wrap > div,
#testimonials .stories-grid > div {
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 
              0 0 25px rgba(37, 99, 235, 0.1),
              inset 0 1px 1px rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

/* 3D Glass Light Sheen Overlay */
.card-3d-effect::after,
.dashboard-preview-card::after,
.benefit-card::after,
.story-card::after,
.calculator-box::after,
.consult-form-box::after,
.red-accent-service-card::after,
.industry-sector-card::after,
.rich-industry-card::after,
.about-value-card::after,
#official-banner-section .wrap > div::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
  z-index: 5;
}

/* 3D Hover Lift & Dynamic Lighting */
.card-3d-effect:hover,
.dashboard-preview-card:hover,
.benefit-card:hover,
.story-card:hover,
.calculator-box:hover,
.consult-form-box:hover,
.red-accent-service-card:hover,
.industry-sector-card:hover,
.rich-industry-card:hover,
.about-value-card:hover,
#official-banner-section .wrap > div:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg) scale(1.015);
  box-shadow: 0 32px 60px -20px rgba(0, 0, 0, 0.7),
              0 0 40px rgba(230, 57, 70, 0.3),
              inset 0 1px 2px rgba(255, 255, 255, 0.35);
  border-color: rgba(230, 57, 70, 0.45) !important;
}

.card-3d-effect:hover::after,
.dashboard-preview-card:hover::after,
.benefit-card:hover::after,
.story-card:hover::after,
.calculator-box:hover::after,
.consult-form-box:hover::after,
#official-banner-section .wrap > div:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* 3D Inner Element Elevation */
.benefit-card h3,
.story-card h3,
.dash-metric-val,
.metric-number,
.calc-result-val {
  transform: translateZ(25px);
  transition: transform 0.4s ease;
}

.benefit-card:hover h3,
.story-card:hover h3 {
  transform: translateZ(35px);
}

/* Docyt Dashboard Preview Component */
.dashboard-preview-card {
  background: #0f172a;
  border: 1px solid var(--docyt-border-dark);
  border-radius: 20px;
  box-shadow: var(--docyt-shadow-xl);
  padding: 24px;
  position: relative;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--docyt-border-dark);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.dash-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dash-dot.green { background: #10b981; box-shadow: 0 0 10px #10b981; }
.dash-dot.blue { background: #38bdf8; }
.dash-dot.red { background: #f43f5e; }

.dash-status-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Global Interactive Map Component Styles */
.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.country-pill-badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
}

.country-pill-badge:hover {
  background: rgba(30, 41, 59, 0.98);
  border-color: #e63946;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
}

.country-pill-badge strong {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}

.country-pill-badge .sub-tag {
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
}

.map-status-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.map-connection-line {
  animation: strokeDash 20s linear infinite;
}

@keyframes strokeDash {
  to {
    stroke-dashoffset: -100;
  }
}

.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dash-metric-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 12px;
}

.dash-metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}

.dash-metric-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th, .dash-table td {
  padding: 10px 12px;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.dash-table th {
  color: #64748b;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.dash-table td {
  color: #cbd5e1;
}

.badge-reconciled {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Trust Marquee Bar */
.trust-bar {
  background: #090e1a;
  border-top: 1px solid var(--docyt-border-dark);
  border-bottom: 1px solid var(--docyt-border-dark);
  padding: 30px 0;
  color: #64748b;
  text-align: center;
}

.trust-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 36px;
}

.trust-logo-tag {
  font-size: 1.1rem;
  font-weight: 700;
  color: #94a3b8;
  opacity: 0.8;
  transition: all 0.2s ease;
  cursor: default;
}

.trust-logo-tag:hover {
  opacity: 1;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Header */
.section-head {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--docyt-navy);
  margin-bottom: 16px;
}

/* Benefit Cards Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  background: #ffffff;
  border: 1.5px solid var(--docyt-border);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.benefit-card:hover {
  border-color: #e63946;
  box-shadow: var(--docyt-shadow-lg);
  transform: translateY(-4px);
}

.benefit-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.benefit-card p {
  color: #475569;
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.benefit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefit-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--docyt-accent-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 12px;
  border-radius: 20px;
}

/* Interactive Product Suite Tabs */
.suite-section {
  background: var(--docyt-bg-light);
  padding: 90px 0;
  border-top: 1px solid var(--docyt-border);
  border-bottom: 1px solid var(--docyt-border);
}

.tabs-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--docyt-border);
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--docyt-navy);
  color: #ffffff;
  border-color: var(--docyt-navy);
  box-shadow: var(--docyt-shadow-md);
}

.tab-content-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--docyt-border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: var(--docyt-shadow-lg);
}

.tab-content-panel.active {
  display: grid;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acc-item {
  border: 1px solid var(--docyt-border);
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.acc-item.active {
  border-color: var(--docyt-accent-blue);
  background: rgba(37, 99, 235, 0.04);
}

.acc-title {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-body {
  display: none;
  margin-top: 10px;
  color: #64748b;
  font-size: 0.92rem;
}

.acc-item.active .acc-body {
  display: block;
}

/* Metric Band */
.accuracy-band {
  background: var(--docyt-navy);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.95rem;
  color: #94a3b8;
}

/* ROI Savings Calculator */
.calculator-box {
  background: #0f172a;
  border: 1px solid var(--docyt-border-dark);
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  box-shadow: var(--docyt-shadow-xl);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.calc-slider-group {
  margin-bottom: 28px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e63946;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.6);
}

.calc-results-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 18px;
  text-align: center;
}

.calc-result-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: #10b981;
}

/* Job Cards & Careers */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card {
  background: #ffffff;
  border: 1px solid var(--docyt-border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--docyt-shadow-sm);
  transition: all 0.25s ease;
}

.story-card:hover {
  border-color: #2563eb;
  transform: translateY(-4px);
  box-shadow: var(--docyt-shadow-lg);
}

/* Consultation Form Box */
.consult-form-box {
  background: #ffffff;
  border: 1px solid var(--docyt-border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--docyt-shadow-xl);
  max-width: 860px;
  margin: 0 auto;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--docyt-navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--docyt-border);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

/* Enterprise Footer */
footer {
  background: #060a17;
  color: #ffffff;
  padding: 80px 0 30px;
  border-top: 1px solid var(--docyt-border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--docyt-border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Modals & Quick Widgets */
.kikai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.kikai-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.kikai-modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.kikai-modal-overlay.active .kikai-modal-card {
  transform: translateY(0);
}

.kikai-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.kikai-modal-close:hover {
  background: #e63946;
}

/* Floating Sticky Contact Widget */
.floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.widget-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.25s ease;
}

.widget-btn:hover {
  transform: scale(1.1);
}

.widget-btn.whatsapp { background: #25D366; }
.widget-btn.phone { background: #e63946; }
.widget-btn.consult { background: #2563eb; }

/* Responsive Styles */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  background: #0A0A0A;
  border-bottom: 1px solid rgba(139, 0, 0, 0.3);
  padding: 20px;
}

.mobile-nav-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 1024px) {
  .hero-grid, .tab-content-panel.active, .calc-grid, #official-banner-section .wrap > div {
    grid-template-columns: 1fr !important;
  }

  .metrics-grid, .industry-grid, .stories-grid, .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links, .header-cta-group {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .stack-top-grid, .metrics-grid, .industry-grid, .stories-grid, .benefits-grid, .form-row-2, .footer-grid {
    grid-template-columns: 1fr;
  }

  .consult-form-box {
    padding: 24px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   Red Accent Services Cards (User Provided Design System)
   ========================================================================== */
.red-accent-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.red-accent-service-card {
  background: rgba(13, 18, 31, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3.5px solid #e63946;
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.red-accent-service-card:hover {
  background: rgba(20, 27, 45, 0.98);
  border-color: rgba(255, 255, 255, 0.18);
  border-left-color: #ff4d5a;
  box-shadow: 0 20px 45px rgba(230, 57, 70, 0.3), 0 0 20px rgba(255, 77, 90, 0.15);
}

.service-card-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d5a;
  font-size: 1.35rem;
  margin-bottom: 24px;
  transition: transform 0.35s ease, background 0.35s ease;
  transform: translateZ(25px);
}

.red-accent-service-card:hover .service-card-icon-badge {
  transform: translateZ(35px) scale(1.12);
  background: rgba(230, 57, 70, 0.28);
}

.service-card-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
  transform: translateZ(15px);
  transition: transform 0.35s ease;
}

.red-accent-service-card:hover .service-card-title {
  transform: translateZ(25px);
}

.service-card-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
  transform: translateZ(10px);
}

@media (max-width: 992px) {
  .red-accent-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .red-accent-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Sectors We Serve Industry Grid System (User Provided Design System)
   ========================================================================== */
.industry-sectors-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.industry-sector-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 32px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 155px;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.industry-sector-card:hover {
  background: #ffffff;
  border-color: #e63946;
  box-shadow: 0 16px 35px rgba(230, 57, 70, 0.2), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-6px) scale(1.03);
}

.sector-card-icon {
  color: #e63946;
  font-size: 2.2rem;
  margin-bottom: 16px;
  transition: transform 0.35s ease, color 0.35s ease;
  transform: translateZ(25px);
}

.industry-sector-card:hover .sector-card-icon {
  color: #d90429;
  transform: translateZ(35px) scale(1.15);
}

.sector-card-title {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  margin: 0;
  transform: translateZ(15px);
  transition: transform 0.35s ease, color 0.35s ease;
}

.industry-sector-card:hover .sector-card-title {
  color: #0f172a;
  transform: translateZ(25px);
}

@media (max-width: 1200px) {
  .industry-sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

/* ==========================================================================
   Rich Industry Cards (User Provided Design System)
   ========================================================================== */
.rich-industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rich-industry-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.rich-industry-card.featured-card {
  border: 1px solid rgba(230, 57, 70, 0.45);
  box-shadow: 0 12px 35px rgba(230, 57, 70, 0.15);
}

.rich-industry-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12), 0 0 25px rgba(230, 57, 70, 0.2);
  border-color: rgba(230, 57, 70, 0.5);
}

.rich-card-pill {
  display: inline-block;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  align-self: flex-start;
  font-family: var(--font-body);
  transform: translateZ(15px);
}

.rich-card-title {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.3;
  margin-bottom: 10px;
  transform: translateZ(20px);
}

.rich-card-meta {
  color: #64748b;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  transform: translateZ(15px);
}

.rich-card-desc {
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 28px;
  flex-grow: 1;
  transform: translateZ(10px);
}

.rich-card-btn {
  background: linear-gradient(135deg, #e63946 0%, #d90429 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  border: none;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
  transition: all 0.3s ease;
  transform: translateZ(25px);
}

.rich-card-btn:hover {
  background: linear-gradient(135deg, #ff4d5a 0%, #e63946 100%);
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
  transform: translateZ(30px) translateY(-2px);
  color: #ffffff !important;
}

@media (max-width: 992px) {
  .rich-industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rich-industry-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About Kikai Section CSS Rules
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.about-value-card {
  background: rgba(12, 18, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.about-value-card:hover {
  background: rgba(20, 29, 48, 0.98);
  border-color: #ff4d5a;
  box-shadow: 0 20px 45px rgba(230, 57, 70, 0.35);
}

.about-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d5a;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transform: translateZ(25px);
  transition: transform 0.35s ease, background 0.35s ease;
}

.about-value-card:hover .about-icon-badge {
  transform: translateZ(35px) scale(1.1);
  background: rgba(230, 57, 70, 0.28);
}

.about-card-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 12px;
  transform: translateZ(20px);
}

.about-card-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  transform: translateZ(10px);
}

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

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

/* ==========================================================================
   Dedicated Resource Subpages Styling (Blogs, Brochures, Portfolios, Testimonials, Jobs)
   ========================================================================== */

/* Page Header & Breadcrumbs */
.page-hero-banner {
  background: radial-gradient(circle at 50% 20%, #0d1527 0%, #060a17 100%);
  padding: 80px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  text-align: center;
}

.breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

.breadcrumb-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: #ff4d5a;
}

.breadcrumb-nav span {
  color: #ff4d5a;
  font-weight: 700;
}

/* Blog Components */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: #e63946;
  box-shadow: 0 16px 36px rgba(230, 57, 70, 0.15);
}

.blog-img-box {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.blog-title {
  font-size: 1.2rem;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-excerpt {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e63946;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.blog-link-btn:hover {
  gap: 10px;
  color: #b91c1c;
}

/* Brochure Components */
.brochure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.brochure-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
  position: relative;
}

.brochure-card:hover {
  transform: translateY(-6px);
  border-color: #e63946;
  box-shadow: 0 16px 36px rgba(230, 57, 70, 0.16);
}

.brochure-icon-preview {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.brochure-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(230, 57, 70, 0.1);
  color: #e63946;
  border: 1px solid rgba(230, 57, 70, 0.2);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
}

.brochure-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.brochure-desc {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.brochure-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}

.btn-brochure-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s ease;
  border: 1px solid #1e293b;
}

.btn-brochure-download:hover {
  background: #e63946;
  border-color: #e63946;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
}

/* Portfolio Case Study Components */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.portfolio-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.portfolio-card:hover {
  border-color: #e63946;
  box-shadow: 0 18px 40px rgba(230, 57, 70, 0.14);
  transform: translateY(-4px);
}

.portfolio-tag {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.portfolio-client-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.portfolio-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.portfolio-metric-num {
  font-size: 1.4rem;
  font-weight: 900;
  color: #e63946;
  font-family: var(--font-heading);
}

.portfolio-metric-lbl {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 2px;
}

.portfolio-body-point {
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.portfolio-body-point strong {
  color: #0f172a;
  display: block;
  margin-bottom: 2px;
}

.portfolio-body-point p {
  color: #475569;
  margin: 0;
}

/* Testimonial Rich Cards */
.testimonials-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.testimonial-card-rich {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
}

.testimonial-card-rich:hover {
  border-color: #e63946;
  box-shadow: 0 16px 36px rgba(230, 57, 70, 0.12);
  transform: translateY(-4px);
}

.testimonial-header-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.client-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for subpages */
@media (max-width: 1024px) {
  .blog-grid, .brochure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-grid, .brochure-grid, .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
