@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-primary: #0A0F1E;
  --bg-secondary: #111827;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --accent-cyan: #00E5CC;
  --accent-cyan-glow: rgba(0, 229, 204, 0.15);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.25);

  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  --card-padding-desktop: 2rem;
  --card-padding-mobile: 1.5rem;
  --max-width: 1280px;
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background-color: var(--accent-cyan-glow);
  color: var(--accent-cyan);
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

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

/* Typography */
h1, .hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

h2, .section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h3, .card-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
}

p {
  font-size: 1rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  p {
    font-size: 1.125rem;
  }
}

.label, .caption, .hero-label, .section-label, .stat-label, .industry-card-label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-label, .section-label {
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

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

/* 2. Navigation */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
}

#main-nav.scrolled {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
}

.nav-logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-cyan);
  transition: width 0.3s ease;
}

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

.nav-cta, .cta-primary {
  background-color: var(--accent-cyan);
  color: #0A0F1E;
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-cta:hover, .cta-primary:hover {
  box-shadow: 0 0 30px var(--accent-cyan-glow);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  color: var(--text-primary);
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease;
}

#mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 30, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu a {
  display: block;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 500;
}

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

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 15vh 2rem 0;
}

.hero-label {
  animation: tracking-in 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.hero-headline .highlight {
  color: var(--accent-cyan);
}

.hero-subtext {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: #CBD5E1;
  max-width: 720px;
  margin: 1.75rem auto 2.5rem;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.cta-secondary {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* 4. Section Common */
.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
}

.section-subtitle {
  color: #CBD5E1;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-top: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 5. Education Section */
#education {
  background-color: var(--bg-secondary);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.timeline-step {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 16px;
  position: relative;
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  top: -1.25rem;
  left: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  color: #0A0F1E;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    height: 2px;
    width: 2rem;
    background: linear-gradient(to right, var(--accent-cyan), transparent);
    z-index: 1;
  }
}

.timeline-step h3 {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeline-step p {
  font-size: 1rem;
  color: #CBD5E1;
  line-height: 1.7;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-card {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
}

.stat-number {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  display: block;
}

/* 6. Products Section */
#products {
  background-color: var(--bg-primary);
}

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 3rem;
  background: var(--bg-surface);
  padding: 0.375rem;
  border-radius: 12px;
  width: fit-content;
  flex-wrap: wrap;
}

.product-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.product-tab:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.product-tab.active {
  background: var(--accent-cyan);
  color: #0A0F1E;
  font-weight: 600;
}

.product-panels {
  position: relative;
}

.product-panel {
  display: none;
}

.product-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  animation: fade-in-up 0.5s ease forwards;
}

.product-card {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s ease;
}

.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px var(--accent-cyan-glow);
}

.product-icon {
  width: 64px;
  height: 64px;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.product-card h3 {
  color: #FFFFFF;
  font-size: 1.625rem;
  font-weight: 700;
}

.product-card p {
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #F1F5F9;
  font-size: 0.95rem;
  font-weight: 500;
}

.product-features li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: 700;
}

.product-visual {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 2rem;
  font-family: monospace;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  overflow-x: auto;
  position: relative;
}

.product-visual pre {
  margin: 0;
}

.product-visual code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre;
}

.code-cyan { color: var(--accent-cyan); }
.code-red { color: #EF4444; }
.code-dim { color: var(--text-muted); }

.product-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

/* 7. Industry Section */
#industries {
  background-color: var(--bg-secondary);
}

.industry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.industry-card {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 40px var(--accent-cyan-glow);
  transform: translateY(-4px);
}

.industry-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.industry-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 204, 0.1);
  border: 1px solid rgba(0, 229, 204, 0.3);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.industry-icon-wrapper.defense {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.industry-card-label {
  color: var(--accent-emerald);
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 0.875rem;
}

.industry-card-content h3 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.industry-card-content p {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.industry-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: auto;
}

.industry-card-features li {
  font-size: 0.95rem;
  color: #F1F5F9;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.industry-card-features li::before {
  content: '→';
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

/* 8. Trust Section */
#trust {
  background-color: var(--bg-primary);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.trust-badge {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 12px;
  min-width: 200px;
  transition: all 0.3s ease;
}

.trust-badge:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.trust-badge-icon,
.badge-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

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

.trust-badge h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-badge p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.trust-statement {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-cyan);
  padding: 2rem 2.5rem;
  max-width: 800px;
  margin: 3rem auto 0;
  font-size: 1.2rem;
  line-height: 1.75;
  color: #E2E8F0;
  font-style: italic;
  border-radius: 0 12px 12px 0;
}

/* 8.5. FAQ Section */
#faq {
  background-color: var(--bg-primary);
}

.faq-accordion-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(0, 229, 204, 0.35);
  box-shadow: 0 4px 20px rgba(0, 229, 204, 0.08);
}

.faq-item.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 30px var(--accent-cyan-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-item.active .faq-question {
  color: var(--accent-cyan);
}

.faq-toggle-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  background: rgba(0, 229, 204, 0.15);
  border-color: var(--accent-cyan);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.faq-answer strong {
  color: #FFFFFF;
}

/* 9. Contact Section */
#contact {
  background-color: var(--bg-secondary);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info p {
  margin: 1rem 0 2rem;
}

.contact-form {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* Contact Details List */
.contact-details {
  list-style: none;
  margin: 1.5rem 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.contact-details svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.small-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form Success State */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-success .success-icon {
  margin: 0 auto 1.5rem;
}

.form-success h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.form-success p {
  color: var(--text-secondary);
}

/* Mobile menu hamburger animation */
.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile CTA in menu */
.mobile-cta {
  margin: 1rem 2rem;
  text-align: center;
  display: block;
}

/* Stat card paragraph */
.stat-card p {
  color: #CBD5E1;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #EF4444;
}

.form-error-msg {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group.error .form-error-msg {
  display: block;
}

/* 10. Footer */
#main-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

/* Logo + Wordmark lockup */
.nav-logo,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-wordmark {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Original em fallback (if JS disabled) */
.brand-wordmark em {
  display: inline-block;
  width: 0.75em;
  text-align: center;
  font-style: italic;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* New overlapping morph wrapper added via JS */
.n-anim-wrapper {
  display: inline-block;
  position: relative;
  width: 0.75em;
  vertical-align: bottom;
}

/* Invisible sizing ghost so wrapper has correct height */
.n-anim-wrapper::before {
  content: 'n';
  visibility: hidden;
  font-style: italic;
  font-weight: 800;
}

.n-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: center;
  font-style: italic; /* defaults */
  font-weight: 800;
  color: var(--accent-cyan);
  /* Slow, subtle crossfade with blur to simulate morphing */
  transition: opacity 1.2s ease-in-out, filter 1.2s ease-in-out;
}

/* Math font style classes for the "n" animation */
.brand-wordmark em.math-italic {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 800;
}

.brand-wordmark em.math-bold {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 900;
}

.brand-wordmark em.math-serif {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: 700;
}

.brand-wordmark em.math-calligraphic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
}

.brand-wordmark em.math-fraktur {
  font-family: 'Old English Text MT', 'UnifrakturCook', 'Times New Roman', serif;
  font-style: normal;
  font-weight: 700;
}

.brand-wordmark em.math-blackboard {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 800;
  -webkit-text-stroke: 1.5px var(--accent-cyan);
  color: transparent;
}

.brand-wordmark em.math-mono {
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  font-style: normal;
  font-weight: 400;
}

.brand-wordmark em.math-sans {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 300;
}

.footer-logo img {
  height: 48px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 12. Utility & Animation Keyframes */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px var(--accent-cyan-glow); }
  50% { box-shadow: 0 0 40px var(--accent-cyan-glow); }
  100% { box-shadow: 0 0 20px var(--accent-cyan-glow); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-20px) translateX(-50%); }
  60% { transform: translateY(-10px) translateX(-50%); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes tracking-in {
  0% { letter-spacing: -0.5em; opacity: 0; }
  40% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* 12. Responsive Breakpoints */
@media (max-width: 1024px) {
  .stat-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .timeline {
    grid-template-columns: 1fr;
  }
  
  .stat-cards {
    grid-template-columns: 1fr;
  }
  
  .product-panel.active {
    grid-template-columns: 1fr;
  }
  
  .industry-cards {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .timeline-step::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .product-tabs {
    flex-direction: column;
    width: 100%;
  }
  
  .product-tab {
    text-align: center;
  }
  
  .industry-card {
    min-height: auto;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Small mobile refinements */
@media (max-width: 480px) {
  :root {
    --section-padding: clamp(3rem, 6vw, 6rem) 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 12vh 1rem 0;
  }

  .product-card {
    padding: 1.5rem;
  }

  .product-card h3 {
    font-size: 1.35rem;
  }

  .product-card p {
    font-size: 0.95rem;
  }

  .industry-card {
    padding: 1.5rem;
  }

  .industry-card-content h3 {
    font-size: 1.35rem;
  }

  .industry-card-content p {
    font-size: 0.95rem;
  }

  .trust-badges {
    gap: 1rem;
  }

  .trust-badge {
    min-width: 0;
    width: 100%;
    padding: 1.25rem 1.5rem;
  }

  .trust-statement {
    padding: 1.5rem;
    font-size: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-container {
    gap: 2rem;
  }

  .section-header {
    margin: 0 auto 2.5rem;
  }

  .stat-cards {
    margin-top: 2.5rem;
  }

  .footer-container {
    padding: 2rem 1rem;
  }

  .footer-links {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }

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

  #mobile-menu a {
    padding: 0.875rem 1.5rem;
  }

  .legal-page {
    padding: 100px 1rem 3rem;
  }

  .brand-wordmark {
    font-size: 1.1rem;
  }
}

/* ===== PRODUCT VISUAL CANVAS ===== */
.product-visual-canvas {
  background: #080c18;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
  min-height: 420px;
}

.product-visual-canvas canvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
}

@media (max-width: 768px) {
  .product-visual-canvas {
    min-height: 280px;
  }
  .product-visual-canvas canvas {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .product-visual-canvas {
    min-height: 240px;
  }
  .product-visual-canvas canvas {
    min-height: 240px;
  }
}




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

  /* The math-font morph is subtle enough to keep even with reduced motion */
  .n-layer {
    transition-duration: 1.2s !important;
  }
}

/* ===== LEGAL PAGES STYLING ===== */
body:has(.legal-page) #main-nav {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(6.5rem, 12vw, 8.5rem) clamp(1.5rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
  color: #CBD5E1;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.legal-back:hover {
  color: #FFFFFF;
  transform: translateX(-4px);
}

.legal-page h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.last-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-page ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-page li {
  color: #CBD5E1;
  line-height: 1.7;
}

.legal-page li strong {
  color: #FFFFFF;
}

.legal-page a:not(.legal-back):not(.nav-cta):not(.footer-links a):not(.nav-logo):not(.footer-logo) {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.legal-page a:not(.legal-back):not(.nav-cta):not(.footer-links a):not(.nav-logo):not(.footer-logo):hover {
  opacity: 0.8;
}

.legal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-highlight {
  border-left: 3px solid var(--accent-cyan);
  background: rgba(0, 229, 204, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
}

.legal-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.legal-contact-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem;
}

.legal-contact-item h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.legal-contact-item p {
  color: #CBD5E1;
  font-size: 0.9rem;
  margin-bottom: 0;
}

