/* XBOT — Premium Embodied AI & Robotics Research Platform Stylesheet */
:root {
  --bg-dark: #07111f;
  --bg-dark-alt: #0a182c;
  --bg-card: #0e1e36;
  --bg-card-hover: #132745;
  --bg-light: #f8fafc;
  --bg-light-card: #ffffff;
  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-muted: #64748b;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  transition: transform 0.15s ease-out;
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.8);
  background-color: var(--accent-sky);
}

body.cursor-hover .cursor-ring {
  transform: translate(-50%, -50%) scale(1.4);
  border-color: var(--accent-sky);
  background: var(--accent-glow);
}

@media (pointer: coarse), (max-width: 768px) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(7, 17, 31, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 15px var(--accent-glow);
}

.brand small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  font-weight: 500;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.nav-cta {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-sky) !important;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--accent-blue) !important;
  color: #fff !important;
  box-shadow: 0 0 20px var(--accent-glow);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-btn span:nth-child(1) { top: 4px; }
.menu-btn span:nth-child(2) { top: 12px; }
.menu-btn span:nth-child(3) { top: 20px; }

.menu-btn.active span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6, var(--accent-blue));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-sky);
}

/* Badges & Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% 20%, #0d223a 0%, var(--bg-dark) 70%);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-a {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: -100px;
  right: 10%;
}

.orb-b {
  width: 350px;
  height: 350px;
  background: var(--accent-cyan);
  bottom: -50px;
  left: 5%;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tag {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-sky);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-indicators {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.indicator-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.indicator-pill::before {
  content: '✓';
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Hero Robot Visual Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(14, 30, 54, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.robot-stage-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: var(--accent-cyan);
  filter: blur(30px);
  opacity: 0.6;
  border-radius: 50%;
  pointer-events: none;
}

.robot-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.robot-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.robot-stage:hover .robot-img-wrap img {
  transform: scale(1.03);
}

.hud-tag {
  position: absolute;
  padding: 8px 14px;
  background: rgba(7, 17, 31, 0.85);
  border: 1px solid var(--accent-cyan);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-sky);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseHud 3s infinite ease-in-out;
}

.hud-top-right {
  top: -15px;
  right: -15px;
}

.hud-bottom-left {
  bottom: -15px;
  left: -15px;
}

@keyframes pulseHud {
  0%, 100% { border-color: rgba(6, 182, 212, 0.4); }
  50% { border-color: var(--accent-cyan); box-shadow: 0 0 15px var(--accent-glow); }
}

/* Side Pipeline Indicator */
.pipeline-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  position: relative;
  grid-column: 1 / -1;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pipeline-step.active {
  color: var(--accent-cyan);
}

.pipeline-step .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.pipeline-step.active .dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.pipeline-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

/* Section Common */
.section {
  padding: 110px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-dark);
}

.section-alt {
  background: var(--bg-dark-alt);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-header h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-sky), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Concept Section - Flow Grid */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 40px;
}

.flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 24px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}

.flow-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
}

.flow-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.flow-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.flow-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.flow-connector {
  text-align: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* System Architecture Section */
.arch-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.arch-layer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  transition: border-color 0.3s ease;
}

.arch-layer:hover {
  border-color: var(--accent-cyan);
}

.layer-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layer-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
}

.layer-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.layer-nodes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.node-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.arch-arrow {
  text-align: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin: -12px 0;
  opacity: 0.6;
}

/* Specs Table */
.specs-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th, .specs-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-dark);
}

.specs-table th {
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-main);
  width: 30%;
}

.specs-table td:last-child {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.spec-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-sky);
  margin-left: 8px;
}

/* Demo & Video Section */
.demo-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto 50px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  background: #000;
  aspect-ratio: 16 / 9;
}

.demo-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.demo-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.demo-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.demo-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.demo-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Research & Academic Sections */
.research-block {
  background: linear-gradient(135deg, rgba(14, 30, 54, 0.9), rgba(7, 17, 31, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.research-block::after {
  content: 'RESEARCH';
  position: absolute;
  top: 20px;
  right: 30px;
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.research-title-tag {
  color: var(--accent-sky);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.research-block h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.research-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.progression-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
}

.prog-chip {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.prog-arrow {
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* Research Gap Comparison Grid */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.gap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  position: relative;
}

.gap-card.featured {
  border-color: var(--accent-cyan);
  background: rgba(14, 30, 54, 0.95);
  box-shadow: 0 0 30px var(--accent-glow);
}

.gap-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.gap-card:nth-child(1) .gap-tag { background: rgba(100, 116, 139, 0.2); color: var(--text-muted); }
.gap-card:nth-child(2) .gap-tag { background: rgba(234, 179, 8, 0.15); color: #fde047; }
.gap-card.featured .gap-tag { background: rgba(6, 182, 212, 0.2); color: var(--accent-cyan); }

.gap-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.gap-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.central-question {
  margin-top: 40px;
  padding: 24px;
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Limitations Box */
.limitations-box {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 40px;
}

.limitations-box h4 {
  color: #fca5a5;
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.limitations-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.limitations-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.limitations-list li::before {
  content: '•';
  color: #fca5a5;
  font-weight: bold;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background: var(--bg-card);
  cursor: pointer;
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 17, 31, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.gallery-overlay p {
  font-size: 0.85rem;
  color: var(--accent-sky);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 18, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 1000px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-dark);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Publications Grid */
.pub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 30px;
  transition: border-color 0.3s ease;
}

.pub-card:hover {
  border-color: var(--accent-cyan);
}

.pub-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fde047;
  background: rgba(234, 179, 8, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.pub-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.pub-journal {
  font-size: 0.95rem;
  color: var(--accent-sky);
  margin-bottom: 16px;
}

.pub-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Researcher Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.profile-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.profile-degrees {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-sky);
  margin-bottom: 16px;
}

.profile-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

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

.interest-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-main);
}

/* CTA Footer Section */
.cta-section {
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #102640 0%, var(--bg-dark) 80%);
  padding: 120px 0;
  border-top: 1px solid var(--border-dark);
}

.cta-box h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-dark);
  background: #040a14;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-copy h1 { font-size: 3.5rem; }
  .flow-grid { grid-template-columns: repeat(4, 1fr); }
  .gap-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-copy h1 { font-size: 2.8rem; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-indicators { justify-content: center; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #07111f;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-dark);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .nav-links.active { right: 0; }
  .menu-btn { display: block; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline-bar { flex-direction: column; gap: 12px; }
  .pipeline-arrow { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
