@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

:root {
  /* Deep space dark palette */
  --bg-void:      #04060d;
  --bg-deep:      #070c18;
  --bg-base:      #0a1020;
  --bg-surface:   #0e1628;
  --bg-raised:    #131d35;
  --bg-card:      #182240;
  --bg-hover:     #1d2a4d;

  /* Steel / silver spectrum */
  --steel-dim:    #3a4a6a;
  --steel-mid:    #5a7090;
  --steel-light:  #8a9bb5;
  --steel-bright: #b8c8dc;
  --steel-white:  #dce8f4;

  /* Cyan glow spectrum */
  --cyan-deep:    #003344;
  --cyan-dark:    #005566;
  --cyan-mid:     #0099bb;
  --cyan-bright:  #00ccee;
  --cyan-glow:    #00d4ff;
  --cyan-hot:     #44eeff;
  --cyan-white:   #aaf6ff;

  /* Accent — Amber (corporate accent, paired with cyan) */
  --amber-deep:   #6b4810;
  --amber-mid:    #b88018;
  --amber:        #f0a020;
  --amber-bright: #ffb840;
  --amber-soft:   rgba(240,160,32,0.08);
  --amber-mid-bg: rgba(240,160,32,0.15);
  --amber-border: rgba(240,160,32,0.35);

  /* Text */
  --text-primary:   #e8edf8;
  --text-secondary: #9aabc4;
  --text-muted:     #5a6e8a;
  --text-accent:    #00d4ff;

  /* Borders */
  --border-subtle:  rgba(0,212,255,0.08);
  --border-dim:     rgba(0,212,255,0.15);
  --border-mid:     rgba(0,212,255,0.25);
  --border-bright:  rgba(0,212,255,0.45);
  --border-steel:   rgba(138,155,181,0.2);

  /* Glow effects */
  --glow-sm:   0 0 8px rgba(0,212,255,0.3);
  --glow-md:   0 0 20px rgba(0,212,255,0.25), 0 0 40px rgba(0,212,255,0.1);
  --glow-lg:   0 0 30px rgba(0,212,255,0.35), 0 0 60px rgba(0,212,255,0.15), 0 0 100px rgba(0,212,255,0.05);
  --glow-text: 0 0 10px rgba(0,212,255,0.6), 0 0 20px rgba(0,212,255,0.3);

  /* Amber glows — brighter than docs to compete with cyan neon */
  --glow-amber-sm: 0 0 10px rgba(240,160,32,0.55);
  --glow-amber-md: 0 0 20px rgba(240,160,32,0.45), 0 0 40px rgba(240,160,32,0.2);
  --glow-amber-text: 0 0 10px rgba(240,160,32,0.7), 0 0 22px rgba(240,160,32,0.35);

  --font-display: 'Orbitron', monospace;
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;

  --nav-height: 96px;
  --max-width: 1200px;
  --radius: 4px;
  --radius-md: 8px;
}

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

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

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-mid); }

/* ── SELECTION ── */
::selection { background: rgba(0,212,255,0.2); color: var(--cyan-hot); }

/* ── CIRCUIT BACKGROUND ── */
.circuit-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.circuit-bg svg { width: 100%; height: 100%; opacity: 0.10; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(4,6,13,0.92);
  border-bottom: 1px solid var(--border-dim);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 86px; width: 86px; object-fit: contain; filter: drop-shadow(var(--glow-sm)); }
.nav-brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-name {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.05em;
}
.nav-brand-sub {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan-glow);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-weight: 500; font-size: 1.05rem;
  color: var(--steel-light); text-decoration: none; letter-spacing: 0.05em;
  text-transform: uppercase; transition: color 0.2s, text-shadow 0.2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--cyan-glow); transition: width 0.3s; box-shadow: var(--glow-sm);
}
.nav-links a:hover { color: var(--cyan-glow); text-shadow: var(--glow-text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--cyan-glow); }
.nav-links a.active::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--steel-light); transition: all 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh; padding-top: var(--nav-height);
  display: flex; align-items: center; position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,100,180,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 60%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 50% at 80% 30%, rgba(0,80,140,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.10) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-width); margin: 0 auto; padding: 0 2rem;
  width: 100%;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--cyan-glow);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 40px; height: 2px;
  background: var(--amber); box-shadow: var(--glow-amber-sm);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.hero-headline .line1 { color: var(--text-primary); display: block; }
.hero-headline .line2 {
  color: var(--cyan-glow);
  text-shadow: var(--glow-text);
  display: block;
}
.hero-tagline {
  font-family: var(--font-body); font-size: 1.3rem; font-weight: 300;
  color: var(--steel-bright); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.5rem; margin-top: 0.5rem;
}
.hero-desc {
  max-width: 600px;
  font-size: 1.2rem; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-disciplines {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem;
}
.discipline-tag {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  padding: 6px 16px; border: 1px solid var(--border-mid);
  background: rgba(0,212,255,0.05); color: var(--cyan-bright);
  border-radius: var(--radius); text-transform: uppercase;
  transition: all 0.2s;
}
.discipline-tag:hover {
  background: rgba(0,212,255,0.12); border-color: var(--border-bright);
  box-shadow: var(--glow-sm);
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 15px 34px; border-radius: var(--radius);
  background: var(--cyan-glow); color: var(--bg-void);
  border: 1px solid var(--cyan-hot);
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  transition: all 0.25s; cursor: pointer; display: inline-block;
}
.btn-primary:hover {
  background: var(--cyan-hot); box-shadow: 0 0 35px rgba(0,212,255,0.6);
  transform: translateY(-1px);
}
.btn-secondary {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 14px 32px; border-radius: var(--radius);
  background: transparent; color: var(--steel-bright);
  border: 1px solid var(--border-steel);
  transition: all 0.25s; cursor: pointer; display: inline-block;
}
.btn-secondary:hover {
  border-color: var(--border-mid); color: var(--cyan-bright);
  background: rgba(0,212,255,0.06);
}

/* ── DIVIDER ── */
.section-divider {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--cyan-dark) 20%, var(--cyan-mid) 50%, var(--cyan-dark) 80%, transparent 100%);
  opacity: 0.4;
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }

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

.section-header { margin-bottom: 3.5rem; }
.section-label {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--cyan-glow);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
  content: ''; display: block; width: 32px; height: 2px;
  background: var(--amber); box-shadow: var(--glow-amber-sm);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--text-primary); letter-spacing: 0.03em;
  line-height: 1.2;
}
.section-title span { color: var(--cyan-glow); }
.section-desc { margin-top: 1rem; max-width: 720px; color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; }

/* ── ABOUT ── */
.about-section { background: var(--bg-deep); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-text p { color: var(--text-secondary); margin-bottom: 1.1rem; font-size: 1.15rem; line-height: 1.75; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--cyan-dark);
  padding: 1.5rem; border-radius: var(--radius-md);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  border-top-color: var(--cyan-glow);
  box-shadow: 0 -2px 20px rgba(0,212,255,0.15);
}
.stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 900;
  color: var(--cyan-glow); line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── ENGINEERING TYPES ── */
.eng-section { background: var(--bg-base); }
.eng-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.eng-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--cyan-dark);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.eng-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle at top right, rgba(0,212,255,0.08), transparent 70%);
}
.eng-card:hover {
  border-left-color: var(--cyan-glow);
  background: var(--bg-raised);
  box-shadow: -3px 0 20px rgba(0,212,255,0.15), inset 0 0 30px rgba(0,212,255,0.03);
  transform: translateX(4px);
}
.eng-icon {
  font-size: 2rem; margin-bottom: 1rem; display: block;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.4));
}
.eng-name {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.05em; margin-bottom: 0.6rem;
}
.eng-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; }

/* ── PRODUCTS ── */
.products-section { background: var(--bg-deep); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  overflow: hidden; transition: all 0.3s;
  position: relative;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-mid), var(--cyan-glow), var(--cyan-mid), transparent);
}
.product-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--glow-md);
  transform: translateY(-4px);
}
.product-header {
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-hover) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.product-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 13px;
  border: 1px solid var(--amber-border); color: var(--amber-bright);
  background: var(--amber-soft); border-radius: 2px; margin-bottom: 1rem;
  text-shadow: var(--glow-amber-sm);
}
.product-name {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.03em; margin-bottom: 0.3rem;
}
.product-codename { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); }
.product-body { padding: 1.75rem 2rem 2rem; }
.product-desc { color: var(--text-secondary); font-size: 1.075rem; line-height: 1.7; margin-bottom: 1.5rem; }
.product-modules { list-style: none; }
.product-modules li {
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--steel-light);
  padding: 8px 0; border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 0.75rem;
}
.product-modules li:last-child { border-bottom: none; }
.product-modules li::before {
  content: '▸'; color: var(--amber); font-size: 0.85rem;
  text-shadow: var(--glow-amber-sm); flex-shrink: 0;
}
.product-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--cyan-mid); letter-spacing: 0.1em; text-transform: uppercase;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan-glow); box-shadow: 0 0 6px var(--cyan-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── PATENT / IP ── */
.patent-section { background: var(--bg-base); }
.patent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.patent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: all 0.3s;
}
.patent-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-dark), transparent);
  transition: all 0.3s;
}
.patent-card:hover { background: var(--bg-raised); border-color: var(--border-mid); }
.patent-card:hover::after { background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.patent-icon { font-size: 1.7rem; margin-bottom: 1rem; }
.patent-ref {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--amber);
  text-shadow: var(--glow-amber-sm);
  letter-spacing: 0.15em; margin-bottom: 0.6rem;
}
.patent-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 0.85rem;
}
.patent-desc { font-size: 1.075rem; color: var(--text-secondary); line-height: 1.7; }

.ip-notice {
  margin-top: 3rem; padding: 2rem 2.5rem;
  background: rgba(0,212,255,0.04);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--cyan-mid);
  border-radius: var(--radius-md);
}
.ip-notice p { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; }
.ip-notice strong { color: var(--amber); text-shadow: var(--glow-amber-sm); font-weight: 600; }

/* ── CONTACT ── */
.contact-section { background: var(--bg-deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.contact-info h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 1rem;
}
.contact-info p { color: var(--text-secondary); font-size: 1.15rem; line-height: 1.75; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.95rem; color: var(--steel-light);
  margin-bottom: 0.75rem;
}
.contact-detail::before { content: '//'; color: var(--cyan-glow); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block; font-family: var(--font-mono); font-size: 0.9rem;
  color: var(--cyan-bright); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font-body); font-size: 1.075rem;
  padding: 13px 16px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.1), var(--glow-sm);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-select option { background: var(--bg-surface); }
.form-submit {
  width: 100%; padding: 15px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--cyan-glow); color: var(--bg-void);
  border: none; border-radius: var(--radius); cursor: pointer;
  box-shadow: 0 0 20px rgba(0,212,255,0.35);
  transition: all 0.25s;
}
.form-submit:hover {
  background: var(--cyan-hot);
  box-shadow: 0 0 35px rgba(0,212,255,0.55);
  transform: translateY(-1px);
}
.form-note { font-size: 0.95rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }

/* ── FOOTER ── */
footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-dim);
  padding: 3rem 2rem;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 56px; width: 56px; object-fit: contain; opacity: 0.85; }
.footer-brand-text { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--steel-light); }
.footer-copy {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); text-align: right;
  line-height: 1.8;
}
.footer-copy span { color: var(--amber); text-shadow: var(--glow-amber-sm); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 1rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan-glow); }

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── TOOLTIP POPUP ── */
.has-tooltip { position: relative; cursor: pointer; }
.tooltip-box {
  display: none;
  position: absolute; z-index: 200;
  bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--glow-md);
  pointer-events: none;
}
.tooltip-box::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--border-bright);
}
.has-tooltip:hover .tooltip-box,
.has-tooltip:focus .tooltip-box { display: block; }
.tooltip-box p { font-size: 1rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.tooltip-box strong { color: var(--amber); text-shadow: var(--glow-amber-sm); display: block; margin-bottom: 0.5rem; font-size: 1.05rem; }
.tooltip-box ul { margin: 0.5rem 0 0 1.2rem; padding: 0; }
.tooltip-box ul li { font-size: 0.95rem; color: var(--steel-light); margin-bottom: 4px; font-family: var(--font-mono); }

/* About stat cards — smaller + clickable */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--cyan-dark);
  padding: 1rem 1.1rem; border-radius: var(--radius-md);
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.stat-card:hover { border-top-color: var(--cyan-glow); box-shadow: 0 -2px 20px rgba(0,212,255,0.15); }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--amber); text-shadow: var(--glow-amber-text); line-height: 1; margin-bottom: 0.4rem; }
.stat-label { font-size: 0.95rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.45; }

/* Engineering hover popup — appears above the card */
.eng-card { overflow: visible; }
.eng-card .tooltip-box {
  left: 50%; bottom: calc(100% + 12px); top: auto; transform: translateX(-50%); width: 360px;
}
.eng-card .tooltip-box::after {
  top: 100%; left: 50%; transform: translateX(-50%);
  border-top-color: var(--border-bright); border-right-color: transparent;
}

/* Patent card hover popup */
.patent-card .tooltip-box {
  bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); width: 360px;
}

/* Form status messages */
.status-success {
  font-family: var(--font-mono); font-size: 1rem;
  color: #00ffaa; text-shadow: 0 0 10px rgba(0,255,170,0.5);
  background: rgba(0,255,170,0.06); border: 1px solid rgba(0,255,170,0.3);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1.5rem; letter-spacing: 0.05em; line-height: 1.5;
}
.status-error {
  font-family: var(--font-mono); font-size: 1rem;
  color: #ff6b6b; text-shadow: 0 0 10px rgba(255,107,107,0.5);
  background: rgba(255,107,107,0.06); border: 1px solid rgba(255,107,107,0.3);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  margin-bottom: 1.5rem; letter-spacing: 0.05em; line-height: 1.5;
}

/* Legal notice above contact form */
.legal-notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--radius);
  background: rgba(0,212,255,0.04);
}
.legal-notice p {
  font-family: var(--font-mono); font-size: 0.95rem;
  color: var(--cyan-bright);
  text-shadow: 0 0 8px rgba(0,212,255,0.4);
  letter-spacing: 0.03em; line-height: 1.7; margin: 0;
}
.legal-notice strong { color: var(--cyan-hot); text-shadow: 0 0 10px rgba(0,212,255,0.7); }

/* ── PRODUCT/PATENT CARD LINKS ── */
.product-card-link, .patent-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card-link .product-card,
.patent-card-link .patent-card {
  cursor: pointer;
}
.card-cta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--amber);
  text-shadow: var(--glow-amber-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, gap 0.2s, text-shadow 0.2s;
}
.card-cta::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.product-card-link:hover .card-cta,
.patent-card-link:hover .card-cta {
  color: var(--amber-bright);
  text-shadow: var(--glow-amber-text);
  gap: 0.75rem;
}
.product-card-link:hover .card-cta::after,
.patent-card-link:hover .card-cta::after {
  transform: translateX(4px);
}

/* Patent card variant for cta — smaller padding since cards are tighter */
.patent-card .card-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  font-size: 0.95rem;
}

/* ── BACK-TO-TOP FLOATING BUTTON ── */
.back-to-top-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.15s, background 0.2s;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), 0 0 12px rgba(0,212,255,0.25);
}
.back-to-top-fab.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top-fab:hover {
  background: rgba(0,212,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.4);
}
.back-to-top-fab:focus { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── RESPONSIVE ── */
/* TABLET (≤900px) */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: rgba(4,6,13,0.98); border-bottom: 1px solid var(--border-dim); padding: 1.5rem 2rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-copy { text-align: left; }
  .eng-card .tooltip-box,
  .patent-card .tooltip-box,
  .stat-card .tooltip-box { width: 280px; }
}

/* MOBILE (≤640px) — phones */
@media (max-width: 640px) {
  body { font-size: 1.05rem; line-height: 1.6; }
  html { font-size: 16px; }

  /* Nav */
  :root { --nav-height: 76px; }
  .nav-inner { padding: 0 1rem; }
  .nav-logo img { height: 60px; width: 60px; }
  .nav-brand-name { font-size: 1.05rem; }
  .nav-brand-sub { font-size: 0.7rem; }

  /* Section padding */
  .section-inner { padding: 3.5rem 1.25rem; }
  .hero-content { padding: 0 1.25rem; }
  .section-header { margin-bottom: 2.5rem; }
  .section-label { font-size: 0.85rem; }
  .section-desc { font-size: 1.05rem; }

  /* Hero */
  .hero-eyebrow { font-size: 0.85rem; gap: 0.65rem; margin-bottom: 1.25rem; }
  .hero-eyebrow::before { width: 24px; }
  .hero-tagline { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-desc { font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
  .btn-primary, .btn-secondary { font-size: 0.95rem; padding: 13px 24px; width: 100%; text-align: center; }

  /* About */
  .about-stats { grid-template-columns: 1fr; }
  .about-text p { font-size: 1.05rem; }

  /* Engineering */
  .eng-grid { grid-template-columns: 1fr; gap: 1rem; }
  .eng-card { padding: 1.5rem 1.25rem; }
  .eng-name { font-size: 1.05rem; }
  .eng-desc { font-size: 1rem; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-header { padding: 1.5rem 1.5rem 1.25rem; }
  .product-name { font-size: 1.25rem; }
  .product-codename { font-size: 0.85rem; }
  .product-body { padding: 1.5rem 1.5rem 1.75rem; }
  .product-desc { font-size: 1rem; }
  .product-modules li { font-size: 0.9rem; }

  /* Patent */
  .patent-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .patent-card { padding: 1.5rem 1.25rem; }
  .patent-title { font-size: 1.05rem; }
  .patent-desc { font-size: 1rem; }
  .ip-notice { padding: 1.5rem 1.25rem; }
  .ip-notice p { font-size: 0.95rem; }

  /* Contact */
  .contact-form { padding: 1.5rem 1.25rem; }
  .contact-info p { font-size: 1.05rem; }
  .form-label { font-size: 0.85rem; }
  .form-input, .form-textarea, .form-select { font-size: 1rem; padding: 12px 14px; }
  .form-submit { font-size: 0.95rem; padding: 14px; }
  .legal-notice { padding: 0.85rem 1rem; }
  .legal-notice p { font-size: 0.9rem; line-height: 1.7; }
  .form-note { font-size: 0.9rem; }

  /* Footer */
  footer { padding: 2rem 1.25rem; }
  .footer-brand-text { font-size: 1rem; }
  .footer-links { flex-direction: column; gap: 0.75rem; }
  .footer-links a { font-size: 1rem; }
  .footer-copy { font-size: 0.85rem; line-height: 1.7; }

  /* Tooltips on small screens — full width minus padding */
  .eng-card .tooltip-box,
  .patent-card .tooltip-box,
  .stat-card .tooltip-box { width: calc(100vw - 3rem); max-width: 320px; }

  /* Card CTAs */
  .card-cta { font-size: 0.9rem; }

  /* Back-to-top */
  .back-to-top-fab {
    bottom: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
}

/* SMALL MOBILE (≤380px) */
@media (max-width: 380px) {
  .section-inner { padding: 3rem 1rem; }
  .hero-content { padding: 0 1rem; }
  .nav-inner { padding: 0 0.75rem; }
  .nav-logo img { height: 52px; width: 52px; }
  .nav-brand-name { font-size: 0.95rem; }
  .product-name { font-size: 1.15rem; }
  .patent-title { font-size: 1rem; }
  .stat-num { font-size: 1.4rem; }
}
