/* ══════════════════════════════════════════════
   NeoSynaptics — Base Styles
   Shared across all pages
   ══════════════════════════════════════════════ */

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

:root {
  --bg: #0f1923;
  --fg: #ffffff;
  --accent: #ff6b35;
  --muted: rgba(255, 255, 255, 0.55);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  overflow-x: hidden;
  width: 100%;
}

/* ── Canvas background ── */
#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
  max-width: 100vw;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 100%);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.8s forwards;
}

.menu-toggle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.5);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.4);
}

.menu-toggle.active {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 107, 53, 0.5);
}

.header-name {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

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

/* ── Drawer menu ── */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 75vw;
  z-index: 90;
  background: rgba(12, 20, 28, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 100px 40px 40px;
}

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

.menu-drawer .drawer-label {
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 32px;
}

.menu-drawer a {
  display: block;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: color 0.3s ease, padding-left 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.menu-drawer.open a {
  opacity: 1;
  transform: translateX(0);
  transition: color 0.3s ease, padding-left 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.menu-drawer.open a:nth-child(2) { transition-delay: 0.05s; }
.menu-drawer.open a:nth-child(3) { transition-delay: 0.1s; }
.menu-drawer.open a:nth-child(4) { transition-delay: 0.15s; }
.menu-drawer.open a:nth-child(5) { transition-delay: 0.2s; }
.menu-drawer.open a:nth-child(6) { transition-delay: 0.25s; }

.menu-drawer a:hover {
  color: var(--accent);
  padding-left: 12px;
}

.menu-drawer .drawer-footer {
  margin-top: auto;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}

/* ── Drawer expandable sub-menu ── */
.drawer-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.drawer-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 16px 0;
  cursor: pointer;
  transition: color 0.3s ease, padding-left 0.3s ease;
  opacity: 0;
  transform: translateX(-20px);
}

.menu-drawer.open .drawer-group-toggle {
  opacity: 1;
  transform: translateX(0);
  transition: color 0.3s ease, padding-left 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
}

.drawer-group-toggle:hover {
  color: var(--accent);
  padding-left: 12px;
}

.drawer-group-toggle .arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.15);
}

.drawer-group.expanded .drawer-group-toggle .arrow {
  transform: rotate(90deg);
}

.drawer-sub-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.drawer-group.expanded .drawer-sub-links {
  max-height: 300px;
}

.drawer-sub-links a {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 10px 0 10px 20px;
  border-bottom: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.drawer-sub-links a:hover {
  color: var(--accent);
  padding-left: 28px;
}

/* ── Hero section ── */
.hero-section {
  position: relative;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
}

.hero-text {
  position: absolute;
  left: 50%;
  top: calc(50% + 200px);
  transform: translateX(-50%);
  text-align: center;
}

/* ── Subtle guide lines on hero ── */
.hero-guides {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.hero-guides .guide-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.03);
}
.hero-guides .guide-line:nth-child(1) { top: 18%; }
.hero-guides .guide-line:nth-child(2) { top: 38%; background: rgba(255, 255, 255, 0.025); }
.hero-guides .guide-line:nth-child(3) { top: 62%; background: rgba(255, 255, 255, 0.02); }
.hero-guides .guide-line:nth-child(4) { top: 82%; background: rgba(255, 255, 255, 0.025); }
.hero-guides .guide-vert {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-guides .guide-vert:nth-child(5) { left: 25%; }
.hero-guides .guide-vert:nth-child(6) { left: 75%; }

.brand-name {
  display: none;
}

.divider {
  width: 36px;
  height: 1px;
  margin: 0 auto 28px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.2);
  opacity: 0;
  transform: scaleX(0);
  animation: lineIn 0.7s ease 1.2s forwards;
}

@keyframes lineIn { to { opacity: 1; transform: scaleX(1); } }

.tagline {
  font-size: clamp(0.72rem, 1.4vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease 1.4s forwards;
}

.sub {
  margin-top: 16px;
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s ease 1.6s forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 0.8s ease 2.2s forwards;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden { opacity: 0 !important; }

.scroll-hint span {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.scroll-arrow {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255, 107, 53, 0.35), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ── About section ── */
.about-section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 120px 48px 100px;
  max-width: 100vw;
  overflow: hidden;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.about-label.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 300;
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(20px);
}

.about-text .highlight {
  color: var(--accent);
  font-weight: 400;
}

.about-text.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

/* ── Shared section labels (used by research modules) ── */
.s-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
}
.s-label.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.s-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(15px);
}
.s-title.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.s-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  font-style: italic;
  opacity: 0;
}
.s-tagline.visible {
  opacity: 1;
  transition: opacity 0.6s ease 0.2s;
}

/* ── Research module base pattern ── */
.research-module {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 80px 24px 100px;
  max-width: 100vw;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.module-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.module-header {
  text-align: center;
  margin-bottom: 32px;
}

/* ── Research page hero ── */
.research-hero {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 160px 48px 60px;
  text-align: center;
}

/* ── Contact section ── */
.contact-section {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 80px 24px 80px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-inner {
  max-width: 500px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(14px);
}

.contact-links.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s ease;
}

.contact-link:hover {
  border-color: rgba(255, 107, 53, 0.2);
}

.contact-link-label {
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.contact-link-val {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer span {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.site-footer .status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
  .header { padding: 20px 24px; gap: 10px; }
  .menu-toggle { width: 8px; height: 8px; }
  .header-name { font-size: 0.68rem; }
  .hero-text { top: calc(50% + 100px); }
  .brand-name {
    display: block;
    font-size: clamp(0.72rem, 1.4vw, 0.85rem);
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.0s forwards;
  }
  .about-section { padding: 80px 24px 70px; }
  .contact-section { padding: 60px 16px; }
  .contact-links { flex-direction: column; align-items: center; }
  .site-footer { padding: 24px; }
  .menu-drawer { padding: 90px 32px 32px; }
  .research-hero { padding: 120px 24px 40px; }
}

@media (max-width: 480px) {
  .header { padding: 16px 18px; }
  .hero-text { top: calc(50% + 80px); }
  .site-footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
  }
}

/* ══════════════════════════════════════════════
   Products Teaser (index.html)
   ══════════════════════════════════════════════ */

.products-teaser-section {
  padding: 100px 40px 80px;
}

.pt-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.pt-card {
  display: block;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  overflow: hidden;
}

.pt-card:hover {
  background: rgba(255,107,53,0.04);
  border-color: rgba(255,107,53,0.2);
}

.pt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pt-name {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #e8e8e8;
}

.pt-badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.pt-badge-ship {
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}

.pt-badge-prev {
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.3);
  color: #ff6b35;
}

.pt-badge-stable {
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.3);
  color: #60a5fa;
}

.pt-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}

.pt-arrow {
  font-size: 1.2rem;
  color: rgba(255,107,53,0.4);
  position: absolute;
  bottom: 24px;
  right: 28px;
  transition: color 0.2s, transform 0.2s;
}

.pt-card:hover .pt-arrow {
  color: #ff6b35;
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .pt-grid { grid-template-columns: 1fr; }
  .products-teaser-section { padding: 60px 24px 40px; }
}
