/* ============================================
   NantOptiFab - Main Stylesheet
   Premium Photonics & Optoelectronics
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.3);
  --dark-bg: #030712;
  --dark-surface: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-blue: linear-gradient(135deg, #1d4ed8, #06b6d4);
  --gradient-dark: linear-gradient(180deg, #030712, #0f172a);
  --gradient-card: linear-gradient(145deg, #1e293b, #0f172a);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  padding: 6px 16px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 50px;
  background: rgba(6, 182, 212, 0.05);
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 640px;
  line-height: 1.8;
}

.highlight { color: var(--accent); }
.highlight-blue { color: var(--primary-light); }

/* --- Section Spacing --- */
section {
  padding: 100px 0;
  position: relative;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 72px;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.navbar.scrolled .nav-logo img {
  height: 44px;
}

.nav-logo .logo-nant { color: var(--text-primary); }
.nav-logo .logo-opti { color: var(--primary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gradient-blue) !important;
  color: var(--text-primary) !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
              var(--dark-bg);
  z-index: 1;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

.hero h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero h1 .line-break { display: block; }

.hero .hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 580px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--dark-border);
  animation: fadeInUp 0.8s 0.4s ease both;
}

.hero-stat .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- Pipeline Bar --- */
.pipeline {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  padding: 0;
  overflow: hidden;
}

.pipeline-inner {
  display: flex;
  align-items: stretch;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pipeline-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pipeline-step:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-primary);
}

.pipeline-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pipeline-step::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--dark-border);
}

.pipeline-step:last-child::after { display: none; }

.pipeline-arrow {
  color: var(--primary-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-blue);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

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

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
}

.card-link:hover { gap: 10px; }

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

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

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

/* --- Capabilities Section --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.capability-card {
  background: var(--gradient-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.capability-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-glow);
}

.capability-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--dark-border);
}

.capability-body {
  padding: 28px;
}

.capability-body h3 {
  margin-bottom: 8px;
}

.capability-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- Products Section --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.product-card {
  background: var(--gradient-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  position: relative;
  z-index: 1;
}

.product-icon svg {
  width: 32px;
  height: 32px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.product-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* --- Facility Image --- */
.facility-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--dark-border);
}

.facility-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Specs / Stats Bar --- */
.specs-section {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.spec-item .spec-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.spec-item .spec-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* --- Solutions Section --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.solution-card {
  background: var(--gradient-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.solution-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.solution-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

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

.solution-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.solution-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

/* --- Facility Section --- */
.facility-section {
  position: relative;
}

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

.facility-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.facility-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.facility-feature:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.15);
}

.facility-feature .feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.facility-feature .feat-icon svg {
  width: 20px;
  height: 20px;
}

.facility-feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.facility-feature p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.facility-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-border);
  aspect-ratio: 4/3;
  background: var(--dark-card);
  position: relative;
}

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

/* --- Technology Process --- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  opacity: 0.3;
}

.process-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  position: relative;
}

.process-step .step-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
  z-index: 1;
}

.process-step .step-content h3 {
  margin-bottom: 8px;
}

.process-step .step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 65%);
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 16px;
}

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

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- Footer --- */
.footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

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

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
              var(--dark-bg);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header .page-description {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 640px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.contact-info-card {
  background: var(--gradient-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- About Timeline --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-text p { margin-bottom: 16px; }

.certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cert-badge {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--accent);
}

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

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

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible { opacity: 1; }

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(11) { transition-delay: 0.55s; }
.stagger-children.visible > *:nth-child(12) { transition-delay: 0.6s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* --- Wavelength decorative element --- */
.wave-divider {
  width: 100%;
  height: 80px;
  position: relative;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 80px;
}

/* --- Tech specs table --- */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.tech-table th,
.tech-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--dark-border);
}

.tech-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.tech-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tech-table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .facility-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav-toggle { display: flex; z-index: 1001; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

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

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }

  .pipeline-inner {
    flex-direction: column;
  }

  .pipeline-step::after {
    right: auto;
    bottom: 0;
    left: 25%;
    top: auto;
    width: 50%;
    height: 1px;
  }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

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

/* --- Utility --- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
