/* ==========================================================================
   AGH Corporate Website - Stylesheet
   Allied Group Holdings Limited
   ========================================================================== */

/* ----- Variables ----- */
:root {
  --color-navy: #1F4E79;
  --color-navy-dark: #14365A;
  --color-navy-light: #2C5F8F;
  --color-red: #C00000;
  --color-red-dark: #990000;
  --color-green: #2E7D32;
  --color-blue: #5B9BD5;
  --color-blue-light: #7BB0E0;
  --color-grey: #616161;
  --color-grey-dark: #424242;
  --color-grey-light: #9E9E9E;
  --color-grey-bg: #E8E8E8;
  --color-grey-bg-light: #F5F5F5;
  --color-white: #FFFFFF;
  --color-black: #0A0A0A;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'PingFang TC', 'Hiragino Sans GB', 'Hiragino Sans TC', 'Microsoft YaHei', 'Microsoft JhengHei', 'Source Han Sans SC', 'Source Han Sans TC', 'Source Han Sans CN', 'Noto Sans SC', 'Noto Sans TC', 'Noto Sans CJK SC', 'Noto Sans CJK TC', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-grey-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

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

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.4rem;
  letter-spacing: -0.005em;
}

p {
  margin-bottom: 1rem;
}

/* ----- Layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Buttons ----- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.cta-btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.cta-btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.cta-btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-navy-dark);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
}

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

.logo-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--color-grey);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.primary-nav a {
  color: var(--color-grey-dark);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
}

.primary-nav a:hover {
  color: var(--color-navy);
}

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

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--color-grey-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-grey);
  background: var(--color-white);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--color-navy);
  color: var(--color-white);
}

.lang-btn:hover:not(.active) {
  background: var(--color-grey-bg-light);
}

.header-cta {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 120px 24px 80px;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at top right, rgba(91, 155, 213, 0.25), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(31, 78, 121, 0.4), transparent 60%),
    linear-gradient(135deg, #050a14 0%, #0a1428 30%, #0d1a35 60%, #050a14 100%);
  overflow: hidden;
}

/* CSS-only data center scene */
.data-center {
  position: absolute;
  inset: 0;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Server racks */
.rack {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 280px;
  background: linear-gradient(180deg, #1a1f2e 0%, #0f1320 100%);
  border: 1px solid #2a3142;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  display: grid;
  grid-template-rows: repeat(9, 1fr);
  gap: 4px;
  padding: 6px 4px;
  box-shadow: inset 0 0 10px rgba(91, 155, 213, 0.05);
  opacity: 0;
  animation: rackFadeIn 1s ease-out forwards;
}

.rack-1 { left: 5%; animation-delay: 0.0s; }
.rack-2 { left: 16%; animation-delay: 0.1s; }
.rack-3 { left: 27%; animation-delay: 0.2s; }
.rack-4 { left: 38%; animation-delay: 0.3s; }
.rack-5 { left: 49%; animation-delay: 0.4s; }
.rack-6 { left: 60%; animation-delay: 0.5s; }

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

.rack-light {
  background: linear-gradient(90deg, transparent 0%, var(--color-blue) 50%, transparent 100%);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(91, 155, 213, 0.6);
  animation: blink 3s ease-in-out infinite;
}

.rack-light:nth-child(2) { animation-delay: 0.5s; }
.rack-light:nth-child(3) { animation-delay: 1.0s; }
.rack-light:nth-child(4) { animation-delay: 1.5s; }
.rack-light:nth-child(5) { animation-delay: 2.0s; }
.rack-light:nth-child(6) { animation-delay: 2.5s; }
.rack-light:nth-child(7) { animation-delay: 0.3s; }
.rack-light:nth-child(8) { animation-delay: 1.7s; }
.rack-light:nth-child(9) { animation-delay: 0.8s; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ASIO Robot */
.asio-robot {
  position: absolute;
  bottom: 60px;
  right: 25%;
  width: 60px;
  height: 80px;
  z-index: 5;
  animation: robotGlide 12s ease-in-out infinite;
  opacity: 0;
  animation: robotFadeIn 1.5s ease-out 1s forwards, robotGlide 12s ease-in-out 2.5s infinite;
}

@keyframes robotFadeIn {
  to { opacity: 1; }
}

@keyframes robotGlide {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-200px) translateY(-5px); }
  50% { transform: translateX(-400px) translateY(0); }
  75% { transform: translateX(-200px) translateY(-5px); }
}

.robot-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 60px;
  background: linear-gradient(180deg, #f0f0f0 0%, #c8c8c8 100%);
  border-radius: 8px 8px 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.robot-body::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--color-blue);
  box-shadow: 0 6px 0 var(--color-blue), 0 12px 0 var(--color-blue), 0 18px 0 var(--color-blue), 0 24px 0 var(--color-blue);
}

.robot-eye {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-red), 0 0 16px var(--color-red);
  animation: eyePulse 2s ease-in-out infinite;
}

@keyframes eyePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--color-red), 0 0 16px var(--color-red); }
  50% { opacity: 0.7; box-shadow: 0 0 4px var(--color-red), 0 0 8px var(--color-red); }
}

.robot-beam {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 400px;
  height: 2px;
  background: linear-gradient(90deg, rgba(192, 0, 0, 0.6), rgba(192, 0, 0, 0));
  transform-origin: 0 50%;
  animation: beamSweep 4s ease-in-out infinite;
}

@keyframes beamSweep {
  0%, 100% { transform: scaleX(1); opacity: 0.8; }
  50% { transform: scaleX(0.7); opacity: 0.4; }
}

.robot-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5), transparent 70%);
  border-radius: 50%;
}

/* Operations room glow */
.ops-glow {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 350px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(91, 155, 213, 0.3), transparent 70%);
  border-radius: 12px;
  opacity: 0;
  animation: opsGlowFade 2s ease-out 1.5s forwards;
}

@keyframes opsGlowFade {
  to { opacity: 1; }
}

/* Volumetric god rays */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 30%;
  width: 60%;
  height: 100%;
  background: linear-gradient(180deg, rgba(91, 155, 213, 0.15) 0%, transparent 80%);
  transform: skewX(-15deg);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(180deg, rgba(123, 176, 224, 0.1) 0%, transparent 70%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 10, 20, 0.7) 0%, rgba(5, 10, 20, 0.3) 60%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--color-white);
  animation: contentFadeIn 1.5s ease-out 0.5s backwards;
}

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

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-blue-light);
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(91, 155, 213, 0.4);
  border-radius: 100px;
  background: rgba(91, 155, 213, 0.1);
}

.hero-title {
  margin-bottom: 28px;
  color: var(--color-white);
  font-weight: 800;
  line-height: 1.1;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-title-accent {
  color: var(--color-blue-light);
  font-size: clamp(20px, 2.8vw, 30px);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-title-main {
  color: #d4a857;
  font-size: clamp(22px, 3.2vw, 36px);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Product page hero titles: keep title spans on a single line so CJK compounds
   (e.g. 密码机) cannot be split between the two halves. Allow wrap on mobile. */
.product-page-title {
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 18px;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.product-page-title span {
  display: inline-block;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .product-page-title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .product-page-title span {
    display: inline;
    white-space: normal;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  margin-top: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ----- Credibility Strip ----- */
.credibility {
  background: var(--color-navy);
  padding: 48px 0;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.credibility::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(91, 155, 213, 0.2), transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(91, 155, 213, 0.15), transparent 50%);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

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

.cred-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cred-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* ----- Certifications Logo Wall ----- */
.certifications {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #ffffff 0%, #eef3f9 60%, #ffffff 100%);
}

.certifications-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F4E79;
  text-align: left;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  align-items: center;
}

@media (max-width: 1100px) {
  .certifications-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 800px) {
  .certifications-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .certifications-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .certifications-title { font-size: 24px; margin-bottom: 24px; }
}

.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.25s ease;
}

.cert-badge:hover { transform: translateY(-2px); }

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

/* ----- Section Base ----- */
section:not(.hero):not(.credibility) {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--color-red);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-title .title-sub {
  font-size: 0.55em;
  font-weight: 400;
  color: var(--color-grey);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-grey);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ----- Analyst Recognition ----- */
.recognition {
  background: var(--color-white);
  padding: 72px 0;
}

.recognition-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--color-grey-bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--color-red);
}

.recognition-badge {
  background: var(--color-navy-dark);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recognition-badge img {
  width: 100%;
  height: auto;
  display: block;
}

.recognition-body {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recognition-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-grey-dark);
  line-height: 1.7;
  margin: 0 0 16px 0;
  padding-left: 24px;
  border-left: 3px solid var(--color-red);
  word-break: keep-all;
  overflow-wrap: break-word;
  position: relative;
}

.recognition-quote::before {
  content: '\201C';
  position: absolute;
  left: -4px;
  top: -10px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--color-blue-light);
  line-height: 1;
  font-style: normal;
}

.recognition-source {
  font-size: 0.85rem;
  color: var(--color-grey);
  margin-bottom: 20px;
  font-weight: 600;
}

.recognition-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.recognition-cta:hover {
  background: var(--color-red);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .recognition-card {
    grid-template-columns: 1fr;
  }
  .recognition-badge {
    padding: 32px 24px;
  }
  .recognition-body {
    padding: 32px 24px;
  }
}

/* ----- Services ----- */
.services {
  background: var(--color-grey-bg-light);
}

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

.service-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 4px solid var(--color-navy);
  position: relative;
}

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

.service-card:nth-child(2) { border-top-color: var(--color-red); }
.service-card:nth-child(3) { border-top-color: var(--color-green); }
.service-card:nth-child(4) { border-top-color: var(--color-blue); }

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--color-navy);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card:nth-child(2) .service-icon { color: var(--color-red); }
.service-card:nth-child(3) .service-icon { color: var(--color-green); }
.service-card:nth-child(4) .service-icon { color: var(--color-blue); }

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.65;
  margin-bottom: 16px;
}

.service-for {
  font-size: 0.8rem;
  color: var(--color-navy);
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px solid var(--color-grey-bg);
}

/* ----- Solutions ----- */
.solutions {
  background: var(--color-white);
}

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

.solution-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-grey-bg-light) 100%);
  border-left: 4px solid var(--color-navy);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.solution-sector {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.solution-card:nth-child(1) .solution-sector { background: var(--color-navy); }
.solution-card:nth-child(2) .solution-sector { background: var(--color-red); }
.solution-card:nth-child(3) .solution-sector { background: var(--color-green); }
.solution-card:nth-child(4) .solution-sector { background: var(--color-blue); }
.solution-card:nth-child(5) .solution-sector { background: var(--color-navy-light); }
.solution-card:nth-child(6) .solution-sector { background: var(--color-red-dark); }
.solution-card:nth-child(7) .solution-sector { background: var(--color-grey-dark); }

.solution-card h3 {
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.65;
  margin-bottom: 20px;
}

.solution-features {
  list-style: none;
  padding: 0;
}

.solution-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.85rem;
  color: var(--color-grey-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}

.solution-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-green);
  font-weight: 700;
  font-size: 1rem;
}

/* ----- Technology ----- */
.technology {
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-grey-bg-light) 100%);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-layer {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-navy);
  transition: all var(--transition);
}

.tech-layer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-layer:nth-child(2) { border-top-color: var(--color-red); }
.tech-layer:nth-child(3) { border-top-color: var(--color-blue); }

.tech-layer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-blue);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.tech-layer h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.tech-layer p {
  font-size: 0.9rem;
  color: var(--color-grey);
  line-height: 1.65;
  margin-bottom: 20px;
}

.tech-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-grey-bg);
}

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

.tech-stat-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.tech-stat-num--text {
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tech-stat-label {
  font-size: 0.7rem;
  color: var(--color-grey);
  line-height: 1.3;
}

/* ----- About ----- */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

.about-text .section-tag {
  text-align: left;
}

.about-text h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 24px;
}

.about-text p {
  font-size: 1rem;
  color: var(--color-grey);
  line-height: 1.8;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-navy), var(--color-red));
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-navy);
  box-shadow: 0 0 0 4px var(--color-white);
}

.timeline-item-current::before {
  background: var(--color-red);
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.timeline-item-current .timeline-year {
  color: var(--color-red);
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--color-grey-dark);
  line-height: 1.6;
}

/* ----- CTA Section ----- */
.cta-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(91, 155, 213, 0.2), transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(192, 0, 0, 0.1), transparent 50%);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
  position: relative;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .cta-section h2 {
    font-size: 1.1rem;
    line-height: 1.45;
  }
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ----- Contact ----- */
.contact {
  background: var(--color-grey-bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info .section-tag {
  text-align: left;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-desc {
  color: var(--color-grey);
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-navy);
  margin-top: 2px;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-grey);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--color-navy);
  font-weight: 500;
}

.contact-item span {
  color: var(--color-grey-dark);
}

.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-grey-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--color-grey-bg);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-grey-dark);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.1);
}

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

.contact-form button {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  padding: 16px;
  background: rgba(46, 125, 50, 0.1);
  color: var(--color-green);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.form-success.visible {
  display: block;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-black);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  color: var(--color-white);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.footer-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Mobile Nav ----- */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: all var(--transition);
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .primary-nav {
    gap: 24px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-stack {
    grid-template-columns: 1fr;
  }
  .cred-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .cred-item:nth-child(4),
  .cred-item:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .primary-nav,
  .header-cta {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .primary-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-grey-bg);
  }
  .services-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .cred-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .cta-btn {
    width: 100%;
  }
  .rack {
    display: none;
  }
  .asio-robot {
    bottom: 30px;
    right: 10%;
  }
  section:not(.hero):not(.credibility) {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .cred-grid {
    grid-template-columns: 1fr;
  }
  .cred-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .cred-item:last-child {
    border-bottom: none;
  }
  .header-controls {
    gap: 8px;
  }
}

/* ----- Animation Utilities ----- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ========== PRODUCTS SECTION ========== */
.products {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
}
.products::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(31,78,121,0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(91,155,213,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.products .container { position: relative; z-index: 1; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .products-grid { grid-template-columns: 1fr; }
}

.product-card {
  position: relative;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(31,78,121,0.12);
  border-radius: 16px;
  padding: 32px 28px 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(31,78,121,0.25);
  border-color: rgba(31,78,121,0.25);
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1F4E79, #5B9BD5);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-card:hover::after { opacity: 1; }

.product-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: #1F4E79;
}
.product-icon svg { width: 100%; height: 100%; }

.product-image {
  width: 100%;
  max-height: 280px;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: #F4F6FA;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.product-card--robot .product-image {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  aspect-ratio: 4 / 3;
  max-height: 280px;
  padding: 12px;
}

@media (max-width: 600px) {
  .product-image {
    max-height: 180px;
  }
  .product-card--robot .product-image {
    max-height: 220px;
    padding: 8px;
    aspect-ratio: 3 / 4;
  }
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1F2937;
}
.product-tagline {
  font-size: 14px;
  color: #5B9BD5;
  font-weight: 600;
  margin-bottom: 14px;
}
.product-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4B5563;
  margin-bottom: 20px;
}

.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.product-badge--own {
  background: rgba(31,78,121,0.08);
  color: #1F4E79;
  border: 1px solid rgba(31,78,121,0.2);
}
.product-badge--partner {
  background: rgba(192,0,0,0.06);
  color: #C00000;
  border: 1px solid rgba(192,0,0,0.18);
}
.product-card--robot .product-badge--partner {
  background: #FFFFFF;
  color: #C00000;
  border: 1.5px solid #C00000;
  font-weight: 700;
  padding: 6px 14px;
}
.product-badge--academy {
  background: rgba(46,125,50,0.07);
  color: #2E7D32;
  border: 1px solid rgba(46,125,50,0.2);
}

.product-card--robot {
  background: linear-gradient(135deg, #1F4E79 0%, #2C5F8F 60%, #1A4060 100%);
  border: none;
  color: #fff;
}
.product-card--robot h3 { color: #fff; }
.product-card--robot .product-tagline { color: #9FB8D1; }
.product-card--robot p { color: rgba(255,255,255,0.85); }
.product-card--robot .product-icon { color: #FFD166; }
.product-card--robot .product-badge--own {
  background: rgba(255,209,102,0.15);
  color: #FFD166;
  border-color: rgba(255,209,102,0.3);
}
.product-card--robot::after {
  background: linear-gradient(90deg, #FFD166, #FF6B6B);
  opacity: 1;
}
.product-card--robot .spec-num { color: #FFD166; }
.product-card--robot .spec-label { color: rgba(255,255,255,0.7); }

.product-card--partner {
  border: 1.5px dashed rgba(192,0,0,0.35);
  background: rgba(255,250,250,0.92);
}
.product-card--partner:hover {
  border-color: rgba(192,0,0,0.6);
  box-shadow: 0 18px 40px -16px rgba(192,0,0,0.18);
}
.product-card--partner .product-icon { color: #C00000; }
.product-card--partner::after {
  background: linear-gradient(90deg, #C00000, #FF6B6B);
}

.product-specs {
  list-style: none;
  padding: 16px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid rgba(31,78,121,0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-card--robot .product-specs {
  border-top-color: rgba(255,255,255,0.15);
}
.product-specs li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-num {
  font-size: 16px;
  font-weight: 700;
  color: #1F4E79;
  line-height: 1.2;
}
.spec-label {
  font-size: 11px;
  color: #6B7280;
  letter-spacing: 0.02em;
}
@media (max-width: 500px) {
  .product-specs { grid-template-columns: repeat(2, 1fr); }
}

/* Service cards 5-8 cycling colors */
.service-card:nth-child(5) { border-top: 3px solid #C00000; }
.service-card:nth-child(6) { border-top: 3px solid #2E7D32; }
.service-card:nth-child(7) { border-top: 3px solid #5B9BD5; }
.service-card:nth-child(8) { border-top: 3px solid #1F4E79; }
.service-card:nth-child(5) .service-icon { color: #C00000; }
.service-card:nth-child(6) .service-icon { color: #2E7D32; }
.service-card:nth-child(7) .service-icon { color: #5B9BD5; }
.service-card:nth-child(8) .service-icon { color: #1F4E79; }

/* ========== NEWS SECTION ========== */
.news {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(31,78,121,0.1);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(31,78,121,0.22);
  border-color: rgba(31,78,121,0.25);
}
.news-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5B9BD5;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.news-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1F2937;
  line-height: 1.35;
}
.news-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4B5563;
  margin: 0;
}

/* ========== LOGO IMAGES ========== */
.logo-mark-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 4px;
}
.footer-logo-mark {
  height: 36px;
  width: auto;
  vertical-align: middle;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .logo-mark-img { height: 36px; }
  .footer-logo-mark { height: 28px; }
}

/* ========== FOOTER LEGAL LINKS ========== */
.footer-legal {
  margin-top: 12px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.footer-legal a {
  color: #5B9BD5;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-legal-sep { color: rgba(255,255,255,0.3); }

/* ========== MEMBERS & PARTNERS ========== */
.members {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  grid-auto-flow: dense;
}
.member-item:nth-child(2) {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
  .member-item:nth-child(2) {
    grid-column: auto;
  }
}
.member-item {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(31,78,121,0.1);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.member-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(31,78,121,0.22);
  border-color: rgba(31,78,121,0.25);
}
.member-logo {
  height: 56px;
  width: auto;
  max-width: 200px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 4px;
}
.member-name {
  font-size: 18px;
  font-weight: 700;
  color: #1F4E79;
  margin-bottom: 8px;
}
.member-sublabel {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
}

/* ========== MEMBERS LOGO WIDE + PARTNERS LIST ========== */
.member-logo--wide {
  height: 80px;
  max-width: 280px;
}
.partners-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  text-align: left;
}
.partners-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(31,78,121,0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.partners-list li:last-child { border-bottom: none; }
.partners-list strong {
  font-size: 14px;
  font-weight: 700;
  color: #1F4E79;
  letter-spacing: 0.02em;
}
.partners-list span {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
}

/* ========== PARTNERS LOGO GRID ========== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
  flex: 1;
  align-content: start;
}
@media (max-width: 1000px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}
.partner-logo-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31,78,121,0.08);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.partner-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(31,78,121,0.2);
  border-color: rgba(31,78,121,0.25);
}
.partner-logo-item img {
  height: 48px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
}
.partner-name {
  font-size: 11px;
  font-weight: 500;
  color: #4B5563;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.chapter-status {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  color: #1F4E79;
  background: rgba(31, 78, 121, 0.1);
  border: 1px solid rgba(31, 78, 121, 0.18);
  border-radius: 4px;
  letter-spacing: 0.06em;
  vertical-align: middle;
  white-space: nowrap;
}

/* ========== PARTNERS GRID SINGLE (group member) ========== */
.partners-grid--single {
  grid-template-columns: 1fr;
  max-width: 320px;
  margin: 16px auto 0;
}
.partners-grid--single .partner-logo-item {
  padding: 20px 24px;
}

/* ========== PRODUCTS CATEGORIES ========== */
.products-category {
  margin-top: 160px;
  padding-top: 8px;
  border-top: 1px solid rgba(31,78,121,0.15);
}
.products-category:first-of-type { margin-top: 32px; border-top: none; padding-top: 0; }
.products-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F4E79;
  margin: 0 0 4px;
  padding-left: 14px;
  border-left: 4px solid #C00000;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.products-category-title .category-count {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1F4E79;
  background: rgba(31,78,121,0.1);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.products-category-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 8px;
  padding-left: 18px;
  font-style: italic;
}

/* ==========================================================================
   Product Page (ca-air-filtration.html)
   ========================================================================== */

.product-page-hero {
  background:
    radial-gradient(ellipse at top right, rgba(91, 155, 213, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(31, 78, 121, 0.22), transparent 60%),
    linear-gradient(135deg, #050a14 0%, #0a1428 50%, #050a14 100%);
  color: #fff;
  padding: 140px 24px 80px;
  position: relative;
}
.product-page-hero .container { position: relative; z-index: 1; }
.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }

.product-page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .product-page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.product-page-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  margin: 12px 0 18px;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.product-page-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 0 28px;
}

.product-page-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
}
@media (max-width: 600px) {
  .product-page-stats { grid-template-columns: repeat(2, 1fr); }
}
.product-page-stat-num {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: #5B9BD5;
  line-height: 1.1;
  min-height: 31px;
  white-space: nowrap;
}

.product-page-stat-num--text {
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.01em;
  line-height: 1.1;
  min-height: 31px;
  white-space: nowrap;
}
.product-page-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.product-page-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-page-hero-image img {
  max-width: 100%;
  max-height: 640px;
  height: auto;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}
/* HSM hero — image's own dark background blends with the page; just subtle border + shadow */
.product-page-hero-image--hsm img {
  max-height: 780px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.product-page-hero-grid--hsm { grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 900px) {
  .product-page-hero-grid--hsm { grid-template-columns: 1fr; gap: 32px; }
}

/* KICS hero — HSM-style border + shadow (green tint to match KICS theme) */
.product-page-hero-image--kics img {
  border: 1px solid rgba(91, 213, 153, 0.15);
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  max-height: 660px;
}

/* LLM Assessment hero — larger image to match dashboard's visual prominence */
.product-page-hero-image--llm-assessment img {
  max-height: 800px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(91, 170, 213, 0.15); /* blue tint to match LLM theme */
  border-radius: 8px;
}
.product-page-hero-grid--llm-assessment { grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 900px) {
  .product-page-hero-grid--llm-assessment { grid-template-columns: 1fr; gap: 32px; }
}
/* LLM Assessment hero subtitle — smaller than default accent (20–30px) to avoid visual weight competing with main title (50px) */
.product-page-hero-grid--llm-assessment .hero-title-accent {
  font-size: clamp(16px, 1.8vw, 22px);
}

/* Anquan LLM Firewall hero — same treatment as LLM Assessment (large image + wider grid) */
.product-page-hero-image--anquan img {
  max-height: 800px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(213, 91, 91, 0.18); /* red tint matching Anquan's red section tag */
  border-radius: 8px;
}
.product-page-hero-grid--anquan { grid-template-columns: 1fr 1.3fr; gap: 48px; }
@media (max-width: 900px) {
  .product-page-hero-grid--anquan { grid-template-columns: 1fr; gap: 32px; }
}

/* Ruijie NGFW hero — large image + wider grid, teal/cyan tint matching network-security theme */
.product-page-hero-grid--ruijie { grid-template-columns: minmax(0, 1fr) minmax(280px, 1.3fr); gap: 48px; }
.product-page-hero-grid--ruijie > .product-page-hero-text { min-width: 0; }
.product-page-hero-grid--ruijie > .product-page-hero-image { min-width: 0; }
.product-page-hero-grid--ruijie .hero-title-accent {
  /* keep accent subtitle on a single line on wide screens, but allow wrap on narrow */
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.35;
  white-space: normal;
}
.product-page-hero-image--ruijie img {
  max-width: 100%;
  max-height: 800px;
  height: auto;
  width: 100%;
  display: block;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(64, 184, 196, 0.18); /* teal/cyan tint matching Ruijie's network-security theme */
  border-radius: 8px;
  object-fit: contain;
}
@media (max-width: 900px) {
  .product-page-hero-grid--ruijie { grid-template-columns: 1fr; gap: 32px; }
}

/* Why section (ANSI/ISA 71.04 G-rating cards) */
.why-section {
  background: #FAFBFC;
  padding: 96px 24px;
  border-bottom: 1px solid rgba(31,78,121,0.08);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  background: #fff;
  border: 1px solid rgba(31,78,121,0.1);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(31,78,121,0.18);
}
.why-card-num {
  font-size: 36px;
  font-weight: 700;
  color: #1F4E79;
  line-height: 1;
}
.why-card-label {
  font-size: 13px;
  font-weight: 700;
  color: #5B9BD5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 6px 0 12px;
}
.why-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
}
.why-card--severe {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
  border-color: rgba(192,0,0,0.25);
}
.why-card--severe .why-card-num { color: #C00000; }
.why-card--severe .why-card-label { color: #C00000; }

.why-footer {
  margin: 36px auto 0;
  max-width: 880px;
  font-size: 15px;
  line-height: 1.65;
  color: #4B5563;
  text-align: center;
  padding: 20px 24px;
  background: #fff;
  border-left: 3px solid #5B9BD5;
  border-radius: 0 6px 6px 0;
}

/* SKU grid */
.sku-section {
  padding: 96px 24px;
  background: #fff;
}
.sku-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 700px) { .sku-grid { grid-template-columns: 1fr; } }

.sku-card {
  background: #fff;
  border: 1px solid rgba(31,78,121,0.1);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sku-card:hover {
  transform: translateY(-2px);
  border-color: rgba(91,155,213,0.4);
  box-shadow: 0 12px 32px -16px rgba(31,78,121,0.18);
}
.sku-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sku-swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.08);
}
.sku-swatch--ca1000   { background: radial-gradient(circle at 35% 35%, #b9a8d9 0%, #6e4f9b 60%, #3a2456 100%); }
.sku-swatch--ca2000   { background: radial-gradient(circle at 35% 35%, #b04d8a 0%, #7a2c5e 60%, #451635 100%); }
.sku-swatch--ca3000   { background: radial-gradient(circle at 35% 35%, #5d2870 0%, #1c0820 60%, #050203 100%); }
.sku-swatch--ca4000   { background: radial-gradient(circle at 35% 35%, #1f1f24 0%, #050505 60%, #000 100%); }
.sku-swatch--ca5000   { background: radial-gradient(circle at 35% 35%, #fff 0%, #e8e6e0 60%, #c8c4ba 100%); }
.sku-swatch--ca6000   { background: radial-gradient(circle at 35% 35%, #2a2520 0%, #0c0a08 60%, #000 100%); }
.sku-swatch--ca7000   { background: radial-gradient(circle at 35% 35%, #4a3a4e 0%, #1a1018 60%, #050407 100%); }
.sku-swatch--ca8000   { background: radial-gradient(circle at 35% 35%, #18181b 0%, #040406 60%, #000 100%); }
.sku-swatch--ca9000   { background: radial-gradient(circle at 35% 35%, #6f7d72 0%, #3e4a3f 60%, #1f2620 100%); }
.sku-swatch--ca10000  { background: radial-gradient(circle at 35% 35%, #d8b58a 0%, #a07a4a 60%, #604520 100%); }

.sku-code {
  font-size: 22px;
  font-weight: 700;
  color: #1F4E79;
  letter-spacing: 0.01em;
}
.sku-target {
  font-size: 14px;
  font-weight: 700;
  color: #5B9BD5;
  letter-spacing: 0.02em;
}
.sku-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
}

/* Equipment formats */
.format-section {
  padding: 96px 24px;
  background: #FAFBFC;
  border-top: 1px solid rgba(31,78,121,0.08);
}
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.format-card {
  background: #fff;
  border: 1.5px dashed rgba(31,78,121,0.18);
  border-radius: 8px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.format-card:hover {
  border-color: rgba(31,78,121,0.45);
  transform: translateY(-2px);
}
.format-code {
  /* Mono for Latin labels (PUE 1.1, OPEX, MOD); falls back to var(--font-sans) for CJK */
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: #1F4E79;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.format-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #5B9BD5;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.format-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
}

/* Deployment scenarios */
.deploy-section {
  padding: 96px 24px;
  background: #fff;
}
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (max-width: 900px) { .deploy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .deploy-grid { grid-template-columns: 1fr; } }

.deploy-card {
  background: #FAFBFC;
  border: 1px solid rgba(31,78,121,0.08);
  border-radius: 8px;
  padding: 22px;
  position: relative;
  padding-top: 64px;
}
.deploy-sector {
  position: absolute;
  top: 14px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  background: linear-gradient(135deg, #1F4E79 0%, #2C5F8F 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px;
}
.deploy-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1F4E79;
  margin: 0 0 10px;
}
.deploy-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
}

/* AGH delivery */
.delivery-section {
  padding: 96px 24px;
  background: linear-gradient(135deg, #f5f8fc 0%, #e8eef5 100%);
  border-top: 1px solid rgba(31,78,121,0.08);
}
.delivery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .delivery-grid { grid-template-columns: 1fr; }
}
.delivery-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}
.delivery-aside-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  border: 1px solid rgba(31,78,121,0.12);
  box-shadow: 0 18px 40px -24px rgba(31,78,121,0.2);
}
.delivery-aside-label {
  font-size: 12px;
  font-weight: 700;
  color: #5B9BD5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.delivery-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.delivery-list li {
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid rgba(31,78,121,0.08);
  position: relative;
}
.delivery-list li:last-child { border-bottom: none; }
.delivery-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 10px;
  color: #5B9BD5;
  font-weight: 700;
  font-size: 14px;
}

/* ==========================================================================
   Product card "Learn more" inline link
   ========================================================================== */
.product-learn-more {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 0;
  color: #C00000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(192, 0, 0, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
.product-learn-more:hover {
  color: #1F4E79;
  border-bottom-color: #1F4E79;
}

/* ==========================================================================
   Spec comparison table (SKU vs SKU)
   ========================================================================== */
.sku-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  background: #fff;
  border: 1px solid rgba(31,78,121,0.1);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}
.sku-spec-table thead th {
  background: #1F4E79;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.sku-spec-table thead th:not(:first-child) {
  text-align: center;
  width: 18%;
}
.sku-spec-table tbody td {
  padding: 12px 18px;
  border-top: 1px solid rgba(31,78,121,0.08);
  color: #1f2937;
  vertical-align: middle;
}
.sku-spec-table tbody td:not(:first-child) {
  text-align: center;
  font-weight: 600;
  color: #1F4E79;
}
.sku-spec-table tbody tr:nth-child(even) td {
  background: #FAFBFC;
}
.sku-spec-table tbody tr:hover td {
  background: rgba(91,155,213,0.06);
}
@media (max-width: 700px) {
  .sku-spec-table { font-size: 13px; }
  .sku-spec-table thead th,
  .sku-spec-table tbody td { padding: 10px 12px; }
}

/* Frost & Sullivan recognition */
.recognition-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 36px;
  background: #fff;
  border: 1px solid rgba(31,78,121,0.12);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 8px 24px -16px rgba(31,78,121,0.16);
}
@media (max-width: 800px) {
  .recognition-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
}
.recognition-badge { text-align: center; }
.recognition-badge img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: inline-block;
  border-radius: 6px;
}
.recognition-detail { display: flex; flex-direction: column; gap: 20px; }
.recognition-award {
  border-left: 3px solid #5B9BD5;
  padding-left: 16px;
}
.recognition-award-tag {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #5B9BD5;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.recognition-award-name {
  font-size: 16px;
  font-weight: 700;
  color: #1F4E79;
  line-height: 1.3;
  margin-bottom: 6px;
}
.recognition-award p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4B5563;
  margin: 0;
}
.recognition-source {
  font-size: 12px;
  color: #6B7280;
  border-top: 1px solid rgba(31,78,121,0.1);
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.recognition-source a {
  color: #1F4E79;
  text-decoration: none;
  border-bottom: 1px solid rgba(31,78,121,0.3);
}
.recognition-source a:hover { border-bottom-color: #1F4E79; }
