/* ============================================
   KRDC Design System â€” Production Grade
   Kerone Research & Development Centre
   ============================================ */

/* --- Google Fonts: Syne + DM Sans --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* --- Custom Properties --- */
:root {
  /* â”€â”€ Brand Colors â”€â”€ */
  --primary: #05548f;
  --primary-dark: #02355a;
  --primary-glow: rgba(5, 84, 143, 0.18);
  --accent: #E8A733;
  /* warm amber â€” unexpected against navy */
  --accent-dark: #c98a1a;
  --accent-light: rgba(232, 167, 51, 0.12);
  --secondary: #2A87C8;

  /* â”€â”€ Backgrounds â”€â”€ */
  --bg-page: #f5f7fa;
  /* warm off-white */
  --bg-white: #ffffff;
  --bg-alt: #edf2f7;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-dark: #0a1929;
  /* deep navy for CTA blocks */

  /* â”€â”€ Text â”€â”€ */
  --text: #0e1f2e;
  --text-light: #3d5166;
  --text-muted: #7a8fa0;
  --white: #ffffff;

  /* â”€â”€ Borders â”€â”€ */
  --border: #c6d6e3;
  --border-light: #dde9f3;
  --border-glass: rgba(255, 255, 255, 0.22);

  /* â”€â”€ Shadows (colored tints) â”€â”€ */
  --shadow-sm: 0 1px 4px rgba(5, 84, 143, 0.07), 0 2px 8px rgba(5, 84, 143, 0.05);
  --shadow-md: 0 4px 16px rgba(5, 84, 143, 0.10), 0 8px 24px rgba(5, 84, 143, 0.07);
  --shadow-lg: 0 8px 32px rgba(5, 84, 143, 0.14), 0 20px 48px rgba(5, 84, 143, 0.08);
  --shadow-hover: 0 16px 48px rgba(5, 84, 143, 0.22), 0 4px 16px rgba(232, 167, 51, 0.12);
  --shadow-amber: 0 8px 24px rgba(232, 167, 51, 0.28);

  /* â”€â”€ Typography â”€â”€ */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* â”€â”€ Spacing (8px grid) â”€â”€ */
  --space-xs: 0.25rem;
  /*  4px */
  --space-sm: 0.5rem;
  /*  8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2rem;
  /* 32px */
  --space-2xl: 3.5rem;
  /* 56px */
  --space-3xl: 5.5rem;
  /* 88px */
  --space-4xl: 8rem;
  /* 128px */

  /* â”€â”€ Layout â”€â”€ */
  --container-max: 1280px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 100px;

  /* Legacy aliases */
  --border-radius: var(--radius-md);
  --border-radius-lg: var(--radius-lg);
  --border-radius-xl: var(--radius-xl);

  /* â”€â”€ Transitions â”€â”€ */
  --transition: 0.26s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.48s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* â”€â”€ Z-layers â”€â”€ */
  --z-nav: 1000;
  --z-modal: 2000;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* noise texture via SVG */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

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

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

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

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* --- Typography (Syne display) --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 0.45em;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  letter-spacing: -0.035em;
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  letter-spacing: -0.028em;
  font-weight: 700;
}

h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-light);
  line-height: 1.78;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

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

/* --- Blueprint Background â€” fine dot grid --- */
.blueprint-bg {
  position: relative;
  background-color: var(--bg-page);
}

.blueprint-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(5, 84, 143, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.blueprint-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(5, 84, 143, 0.040) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 84, 143, 0.040) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.blueprint-bg>* {
  position: relative;
  z-index: 1;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-2xl) 0;
}

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

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

/* Subtle radial glow behind alt sections */
.section-alt::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 200px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-alt>.container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header .section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-md);
  padding: 0.38rem 1rem;
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(232, 167, 51, 0.30);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-md) auto 0;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.78;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

.flex {
  display: flex;
  align-items: center;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Navbar â€” frosted glass --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border-glass);
  z-index: var(--z-nav);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 24px rgba(5, 84, 143, 0.10);
  border-bottom-color: var(--border-light);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  margin-right: var(--space-2xl);
}

.navbar-brand .brand-logo {
  height: auto;
  width: 170px;
  max-width: none;
  flex-shrink: 0;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar-brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.navbar-brand .brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.navbar-menu a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-md);
  right: var(--space-md);
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  transform: scaleX(1);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--primary);
  background: transparent;
}

.navbar-cta {
  margin-left: var(--space-md);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Buttons â€” sharp with amber primary --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.82rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(5, 84, 143, 0.30);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(5, 84, 143, 0.42);
}

.btn-secondary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-amber);
}

.btn-secondary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(232, 167, 51, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(5, 84, 143, 0.32);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

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

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background: var(--accent-light);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.btn-icon {
  font-size: 1.1em;
}

/* --- Cards â€” glass border + lift --- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}

/* amber top line on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 2;
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-slow);
}

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

.card:hover {
  border-color: rgba(232, 167, 51, 0.22);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--primary);
  font-size: 1.4rem;
  transition: background var(--transition), color var(--transition), transform var(--transition-spring);
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(-3deg);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.card p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
  letter-spacing: 0.01em;
}

.card-link:hover {
  gap: 12px;
  color: var(--accent);
}

/* Horizontal Card */
.card-horizontal {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.card-horizontal .card-icon {
  flex-shrink: 0;
}

/* Featured Card */
.card-featured {
  border-left: 3px solid var(--primary);
  border-top-left-radius: calc(var(--border-radius-lg) - 2px);
  border-bottom-left-radius: calc(var(--border-radius-lg) - 2px);
}

/* --- Hero Split Panel --- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: auto;
  padding: 0;
}

.hero-left {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  background: var(--bg-white);
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-3xl) var(--space-2xl) 0;
  padding-left: max(calc((100vw - var(--container-max)) / 2), var(--space-xl));
}

.hero-content {
  max-width: 540px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.6rem);
  margin-bottom: var(--space-lg);
  line-height: 1.18;
  font-weight: 800;
  color: var(--text);
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: var(--space-xl);
  color: var(--text-light);
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.hero-actions .btn {
  opacity: 1 !important;
  transform: none !important;
}

.hero-right {
  flex: 0 0 50%;
  overflow: hidden;
  position: relative;
  background: var(--bg-white);
  display: flex;
  align-items: center;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  transition: transform var(--transition-slow);
}

.hero-right:hover img {
  transform: scale(1.03);
}

/* keep old hero-label, hero-visual, hero-image-wrapper from breaking other pages */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  padding: 0.45rem 1.1rem;
  background: linear-gradient(135deg, var(--accent-light), rgba(214, 234, 248, 0.6));
  border-radius: 100px;
  border: 1px solid rgba(42, 135, 200, 0.25);
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 560px;
  opacity: 0.05;
  pointer-events: none;
}

.hero-visual svg {
  width: 100%;
  height: auto;
}

.hero-image-wrapper {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 600px;
  z-index: 5;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, 0.9);
}

.hero-image-wrapper img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.04);
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-lg) var(--space-md);
  position: relative;
  transition: transform var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.stat-item::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: var(--space-md) auto 0;
  border-radius: 2px;
  opacity: 0.6;
}

/* --- Section Divider --- */
.divider {
  width: 48px;
  height: 3.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: var(--space-md) auto;
  border-radius: 4px;
}

.divider-left {
  margin-left: 0;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-lg);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
}

.breadcrumb-list a {
  color: var(--text-muted);
}

.breadcrumb-list a:hover {
  color: var(--primary);
}

.breadcrumb-list .separator {
  color: var(--border);
}

.breadcrumb-list .current {
  color: var(--primary);
  font-weight: 600;
}

/* --- Page Header --- */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

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

/* --- Tabs --- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--border-light);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Accordion --- */
.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-white);
  text-align: left;
  transition: background var(--transition);
}

.accordion-header:hover {
  background: var(--bg-alt);
}

.accordion-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body-inner {
  padding: 0 var(--space-xl) var(--space-lg);
}

.accordion-body-inner p {
  font-size: 0.92rem;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--primary);
}

.badge-success {
  background: #E8F5E9;
  color: var(--success);
}

.badge-warning {
  background: #FFF8E1;
  color: var(--warning);
}

/* --- CTA Block â€” deep navy with amber accent --- */
.cta-block {
  background: var(--bg-dark);
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 167, 51, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block>.container {
  position: relative;
  z-index: 1;
}

.cta-block h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.cta-block p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  font-size: 1.05rem;
}

.cta-block .cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --- Table --- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
}

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

.table th {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
}

.table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-light);
}

.table tr:last-child td {
  border-bottom: none;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--accent-light);
}

.timeline-item .year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.timeline-item h4 {
  margin-bottom: var(--space-xs);
}

.timeline-item p {
  font-size: 0.92rem;
}

/* --- Team Card --- */
.team-card {
  text-align: center;
  padding: var(--space-xl);
}

.team-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-light);
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
}

.team-card h4 {
  margin-bottom: var(--space-xs);
}

.team-card .role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 280px;
}

  .footer-socials {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }

  .social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--primary);
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid var(--border-light);
  }

  .social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .footer-col h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-light);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

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

/* --- Scroll Animations --- */
/* .reveal elements are visible by default; JS adds 'will-animate' BEFORE animating */
.reveal {
  opacity: 1;
  transform: none;
}

/* JS-controlled: once JS runs, it adds will-animate to unseen elements */
.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Staggered reveal for grid children */
.grid>.will-animate:nth-child(2) {
  transition-delay: 0.1s;
}

.grid>.will-animate:nth-child(3) {
  transition-delay: 0.2s;
}

.grid>.will-animate:nth-child(4) {
  transition-delay: 0.3s;
}

.grid>.will-animate:nth-child(5) {
  transition-delay: 0.35s;
}

.grid>.will-animate:nth-child(6) {
  transition-delay: 0.4s;
}

/* --- Scroll to Top Button --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease;
  z-index: 999;
}

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

.scroll-top:hover {
  background: var(--primary-dark);
}

/* --- Info Box --- */
.info-box {
  background: var(--accent-light);
  border-left: 3px solid var(--primary);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: var(--space-xl);
}

.info-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
}

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.feature-check {
  width: 24px;
  height: 24px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 2px;
}

.feature-item p {
  margin: 0;
  font-size: 0.92rem;
}

/* --- Process Row (Horizontal Timeline) --- */
.process-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  margin-top: var(--space-xl);
}

.process-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 var(--space-md);
}

.process-num-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  position: relative;
  margin-bottom: var(--space-lg);
}

.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  box-shadow: 0 6px 20px rgba(5, 84, 143, 0.28);
  transition: transform var(--transition-spring), box-shadow var(--transition);
}

.process-card:hover .process-num {
  transform: scale(1.1);
  box-shadow: 0 14px 36px rgba(5, 84, 143, 0.4);
}

.process-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0.4;
  position: absolute;
  left: calc(50% + 32px);
  right: calc(-50% + 32px);
  top: 50%;
  z-index: 1;
}

.process-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.process-info p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--text-light);
  margin: 0;
}

/* keep old process-step rules harmless */
.process-step::before {
  content: none !important;
  display: none !important;
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg-white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Partners / Logo Strip --- */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem 4rem;
  padding: var(--space-xl) 0;
  flex-wrap: wrap;
  text-align: center;
}

.logo-strip-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--border);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
  line-height: 1.4;
  display: inline-block;
}

.logo-strip-item:hover {
  color: var(--primary);
}

/* --- Hero Trust Bullets --- */
.hero-trust {
  list-style: none;
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.92rem;
  color: var(--text-light);
  font-weight: 500;
}

.trust-icon {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  font-weight: 700;
}

/* --- Stat Icon --- */
.stat-icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  display: block;
  opacity: 0.7;
}

/* --- Card Tags (Equipment Spec Pills) --- */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-sm);
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-light);
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  border: 1px solid rgba(5, 84, 143, 0.12);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.card-small {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: var(--space-lg);
  border-radius: 12px;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.card-small h4 {
  font-size: 0.95rem;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.card-small p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.card-small:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.card-small .card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

/* --- Card Spec (legacy, keep for other pages) --- */
.card-spec {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--accent-light);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
  border: 1px solid rgba(5, 84, 143, 0.12);
}

/* --- App Card Hover --- */
.app-card {
  border-bottom: 3px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.app-card:hover {
  border-bottom-color: var(--primary);
}

.app-usecase {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- Mobile Overlay --- */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1366px) {
  .hamburger {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg) var(--space-xl);
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    z-index: 1000;
  }

  .navbar-menu.open {
    transform: translateX(0);
  }

  .navbar-menu a {
    font-size: 1rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius);
  }

  .navbar-cta {
    margin-left: 0;
    margin-top: var(--space-md);
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-split {
    display: block;
    position: relative;
    padding: 0;
  }

  .hero-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .hero-right::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 1;
  }

  .hero-left {
    position: relative;
    width: 100%;
    max-width: 100%;
    z-index: 2;
    background: transparent;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-3xl) var(--space-xl);
  }

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

  .process-row {
    flex-wrap: wrap;
  }

  .process-card {
    flex: 0 0 calc(50% - var(--space-xl));
  }

  .process-line {
    display: none;
  }

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

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

@media (max-width: 768px) {
  :root {
    --space-4xl: 3.5rem;
    --space-3xl: 2.5rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-split {
    display: flex;
    flex-direction: column-reverse;
    min-height: unset;
  }

  .hero-left {
    flex: unset;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: var(--space-xl);
    background: var(--bg-white);
  }

  .hero-right {
    position: relative;
    flex: unset;
    width: 100%;
    height: 300px;
  }

  .hero-right::after {
    display: none;
  }
  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

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

  .grid-m-2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-md) !important;
  }

  .grid-m-1 {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: var(--space-lg) !important;
  }

  .card-small {
    padding: var(--space-md);
  }

  .card-small h4 {
    font-size: 0.9rem;
  }

  .card-small p {
    font-size: 0.78rem;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .grid > * {
    order: 0 !important;
  }



  .hero-visual {
    display: none;
  }

  .hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    transform: none;
    top: 0;
    right: 0;
    margin-top: var(--space-xl);
    border-width: 6px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .cta-block .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Trial & Testing fixes */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .table {
    min-width: 100%;
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: var(--space-sm);
  }

  .form-group {
    margin-bottom: var(--space-md);
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-sm);
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
    text-align: center;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

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

  .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .btn-lg {
    padding: 0.85rem 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
  }

  .text-center > .btn {
    display: flex;
    margin: 0 auto;
  }

  .table th,
  .table td {
    padding: var(--space-xs);
    font-size: 0.85rem;
  }

  .feature-item p {
    font-size: 0.85rem;
    word-break: break-word;
    hyphens: auto;
  }
}
/* ============================================
   Industry We Serve â€” Distinct Card Layout
   ============================================ */
.industry-section {
  background: linear-gradient(160deg, #0c1e30 0%, #0a2540 60%, #071a31 100%);
  position: relative;
  overflow: hidden;
}

.industry-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.industry-section::after {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232,167,51,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.industry-section .section-header .section-label {
  background: rgba(232, 167, 51, 0.15);
  border-color: rgba(232, 167, 51, 0.4);
  color: var(--accent);
}

.industry-section .section-header h2 {
  color: #ffffff;
}

.industry-section .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

.industry-section .divider {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.industry-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  position: relative;
}

.industry-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 167, 51, 0.35);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 32px rgba(232, 167, 51, 0.10);
}

.industry-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.industry-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  filter: brightness(0.75) saturate(0.9);
}

.industry-card:hover .industry-card-img-wrap img {
  transform: scale(1.07);
  filter: brightness(0.85) saturate(1.1);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,20,40,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  transition: background var(--transition);
}

.industry-card:hover .industry-card-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(5,20,40,0.75) 100%);
}

.industry-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.industry-card-body {
  padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.industry-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.industry-card-body p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Accent left border on hover */
.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  transition: height 0.4s ease;
  z-index: 2;
  border-radius: 0 0 3px 0;
}

.industry-card:hover::before {
  height: 100%;
}

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

@media (max-width: 580px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }
  .industry-card-img-wrap {
    height: 180px;
  }
}

/* ============================================
   TECHNOLOGIES & EQUIPMENT — CAROUSEL SLIDER
   ============================================ */

.tech-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.tech-carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
  cursor: grab;
  user-select: none;
}

.tech-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.tech-carousel-track {
  display: flex;
  transition: transform 0.52s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.tech-carousel-slide {
  flex: 0 0 calc(100% / 3);
  min-width: 0;
  padding: 0 calc(var(--space-xl) / 2);
  box-sizing: border-box;
}

.tech-carousel-slide .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tech-carousel-slide .card p {
  flex: 1;
}

.tech-carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.tech-carousel-arrow:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: scale(1.08);
}

.tech-carousel-arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.tech-carousel-prev {
  margin-right: var(--space-md);
}

.tech-carousel-next {
  margin-left: var(--space-md);
}

.tech-carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.tech-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 100px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.30s ease;
  padding: 0;
}

.tech-carousel-dot.active {
  background: var(--primary);
  width: 24px;
}

.tech-carousel-dot:hover:not(.active) {
  background: var(--text-muted);
}

@media (max-width: 1024px) {
  .tech-carousel-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 640px) {
  .tech-carousel-slide {
    flex: 0 0 100%;
  }

  .tech-carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .tech-carousel-prev {
    margin-right: var(--space-sm);
  }

  .tech-carousel-next {
    margin-left: var(--space-sm);
  }
}

/* Instrument Categories */
.category-block {
    margin-bottom: 80px;
}
.category-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0,0,0, 0.1);
    padding-bottom: 12px;
}
.category-icon-main {
    font-size: 2.25rem;
    line-height: 1;
    background: #f8f9fa;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.category-info h3 {
    margin-top: 0;
    margin-bottom: 4px;
    color: var(--primary, #0a1f44);
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}
.category-info p {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.7;
}
.instrument-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.instrument-card h4 {
    color: var(--primary, #0a1f44);
    margin-bottom: 8px;
    font-size: 1.15rem;
}
.instrument-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted, #666);
    flex-grow: 1;
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}



/* --- Floating WhatsApp Icon --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Adjust scroll-top position if needed to avoid overlap */
.scroll-top {
  bottom: 96px !important;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .scroll-top {
    bottom: 84px !important;
  }
}

.cookie-ui {
  font-family: var(--font-body);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-md);
  z-index: 1600;
  pointer-events: none;
}

.cookie-ui__inner {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  pointer-events: all;
  opacity: 0;
  transform: translateY(1rem);
  animation: cookieSlideUp 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cookie-ui__media {
  display: grid;
  align-items: center;
}

.cookie-ui__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(232, 167, 51, 0.16);
  color: var(--primary);
  font-size: 1.35rem;
}

.cookie-ui__content {
  display: grid;
  gap: 0.8rem;
}

.cookie-ui__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cookie-ui__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.cookie-ui__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cookie-ui__actions .btn {
  width: auto;
}

.cookie-ui__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.cookie-ui__manage,
.cookie-ui__privacy-link {
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.cookie-ui__manage:hover,
.cookie-ui__privacy-link:hover {
  color: var(--primary);
}

.cookie-ui__manage {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 23, 40, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1550;
}

.cookie-backdrop--hidden,
.cookie-modal--hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body.cookie-modal-open .cookie-banner {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  z-index: 1605;
}

.cookie-modal__panel {
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  padding: 1.6rem 1.6rem 1.4rem;
  display: grid;
  gap: 1.25rem;
  outline: none;
}

.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  font-weight: 700;
}

.cookie-modal__header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.cookie-modal__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.cookie-modal__close:hover {
  color: var(--text);
}

.cookie-modal__description {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.cookie-modal__preferences {
  display: grid;
  gap: 1rem;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.75);
}

.cookie-toggle__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cookie-toggle__desc {
  margin: 0.35rem 0 0;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-toggle__control {
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cookie-toggle__control--disabled {
  color: var(--primary);
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cookie-switch__track {
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  transition: background var(--transition);
}

.cookie-switch__thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  transition: transform var(--transition);
}

.cookie-switch input:checked + .cookie-switch__track {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.cookie-switch input:checked + .cookie-switch__track + .cookie-switch__thumb {
  transform: translateX(22px);
}

.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-modal__footer .btn {
  width: auto;
}

body.cookie-modal-open {
  overflow: hidden;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 840px) {
  .cookie-ui__inner {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 0.85rem;
  }

  .cookie-ui__actions,
  .cookie-ui__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-ui__actions .btn,
  .cookie-ui__meta {
    width: 100%;
  }

  .cookie-ui__manage,
  .cookie-ui__privacy-link {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0.75rem;
  }

  .cookie-ui__inner {
    border-radius: 20px;
  }

  .cookie-modal__panel {
    width: min(100%, 100%);
    padding: 1.25rem;
    border-radius: 20px;
  }
}

.cookie-banner--hidden {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .cookie-ui__inner,
  .cookie-modal__panel,
  .cookie-toggle {
    background: rgba(8, 18, 34, 0.88);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .cookie-ui__title,
  .cookie-modal__header h3,
  .cookie-toggle__label,
  .cookie-ui__manage,
  .cookie-ui__privacy-link {
    color: #edf2ff;
  }

  .cookie-ui__text,
  .cookie-modal__description,
  .cookie-toggle__desc,
  .cookie-toggle__control,
  .cookie-ui__manage,
  .cookie-ui__privacy-link {
    color: rgba(255, 255, 255, 0.72);
  }

  .cookie-switch__track {
    background: rgba(255, 255, 255, 0.12);
  }

  .cookie-switch input:checked + .cookie-switch__track {
    background: linear-gradient(135deg, #5ea1ff, #e8a733);
  }
}
