:root {
  --bg-primary: #060918;
  --bg-secondary: #0A0E27;
  --bg-tertiary: #0F1338;
  --accent-cyan: #00D4FF;
  --accent-purple: #7B61FF;
  --accent-coral: #FF6B6B;
  --accent-green: #00E5A0;
  --text-primary: #FFFFFF;
  --text-secondary: #A0AEC0;
  --text-muted: #4A5568;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --section-padding: 120px;
  --container-max: 1200px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

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

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.glass-card > .card-glow {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.glass-card > *:not(.card-glow) {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Navbar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(6, 9, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.logo-kap {
  color: var(--text-primary);
}

.logo-it {
  color: var(--accent-cyan);
}

.logo-ech {
  color: var(--text-primary);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  transition: all var(--transition-base);
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

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

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

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-aurora {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: auroraFloat 20s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}

.aurora-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  top: -15%;
  right: -10%;
  animation-delay: 0s;
}

.aurora-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  bottom: -10%;
  left: -10%;
  animation-delay: -7s;
}

.aurora-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-coral), transparent 70%);
  top: 40%;
  left: 40%;
  animation-delay: -14s;
  opacity: 0.15;
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 40px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 229, 160, 0); }
}

.hero-logo-wrapper {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-logo-kap {
  color: var(--text-primary);
}

.hero-logo-it {
  color: var(--accent-cyan);
  position: relative;
}

.hero-logo-it::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-cyan);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-logo-ech {
  color: var(--text-primary);
  font-weight: 400;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.0625rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.btn-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

@keyframes kapibox-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0); }
  50% { box-shadow: 0 0 16px 2px rgba(0,212,255,0.15); }
}

@keyframes kapibox-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Sections */

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--accent-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-lead {
  font-size: 1.125rem !important;
  color: var(--text-primary) !important;
  line-height: 1.8;
}

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

.about-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.about-badge-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: visible;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-cyan);
  opacity: 0.7;
}

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

/* Product */

.product {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.architecture {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 80px;
  overflow-x: auto;
  padding: 20px 0;
}

.arch-step {
  padding: 24px 20px;
  text-align: center;
  min-width: 140px;
  flex-shrink: 0;
}

.arch-step h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
}

.arch-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.arch-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--accent-cyan);
}

.arch-icon.accent-purple { color: var(--accent-purple); }
.arch-icon.accent-coral { color: var(--accent-coral); }

.arch-arrow {
  flex-shrink: 0;
  width: 40px;
  color: var(--text-muted);
  opacity: 0.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.feature-card {
  padding: 32px 28px;
  position: relative;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.03), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-icon.accent-purple { color: var(--accent-purple); }
.feature-icon.accent-coral { color: var(--accent-coral); }
.feature-icon.accent-green { color: var(--accent-green); }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* Multisensor */

.multisensor {
  margin-bottom: 80px;
}

.multisensor-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 12px;
}

.multisensor-desc {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

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

.sensor-card {
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.sensor-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--accent-cyan);
}

.sensor-icon.accent-coral { color: var(--accent-coral); }
.sensor-icon.accent-purple { color: var(--accent-purple); }
.sensor-icon.accent-green { color: var(--accent-green); }

.sensor-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.sensor-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
}

.sensor-what {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  font-weight: 500;
}

.sensor-list {
  list-style: none;
  text-align: left;
  margin-bottom: 16px;
}

.sensor-list li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.sensor-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.sensor-accuracy {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.multisensor-principle {
  padding: 24px 32px;
  text-align: center;
}

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

.principle-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.principle-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.principle-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.principle-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

/* Comparison */

.comparison {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 24px;
}

.comparison-table-wrapper {
  padding: 0;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  background: rgba(0, 212, 255, 0.04) !important;
  color: var(--text-primary);
}

th.highlight-col {
  color: var(--accent-cyan) !important;
}

.check {
  color: var(--accent-green);
  font-weight: 600;
}

.check.dim {
  opacity: 0.5;
}

.cross {
  color: var(--accent-coral);
  opacity: 0.6;
}

/* Technology */

.technology {
  background: var(--bg-primary);
}

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

.platform-card {
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.platform-card.featured {
  border-color: rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.04);
}

.platform-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

.platform-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.platform-featured-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: var(--bg-primary);
  font-size: 0.6875rem;
  font-weight: 700;
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--text-secondary);
}

.platform-icon.accent-cyan { color: var(--accent-cyan); }
.platform-icon.accent-green { color: var(--accent-green); }

.platform-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.platform-fps {
  margin-bottom: 12px;
}

.fps-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.fps-suffix {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-cyan);
  opacity: 0.7;
}

.platform-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.platform-price {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-stack {
  text-align: center;
}

.tech-stack-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tech-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.tech-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.06);
}

/* Team */

.team {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.team-card {
  padding: 36px;
  display: flex;
  gap: 28px;
}

.team-card-main {
  border-color: rgba(0, 212, 255, 0.15);
}

.team-photo-wrapper {
  flex-shrink: 0;
}

.team-photo-placeholder {
  width: 160px;
  height: 200px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 97, 255, 0.1));
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
  position: relative;
}

.team-photo-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}

.team-photo-placeholder span {
  font-size: 0.75rem;
  margin-top: 8px;
  opacity: 0.4;
}

.team-photo-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-sm {
  width: 120px;
  height: 150px;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-edu {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.team-experience {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.exp-item {
  display: flex;
  flex-direction: column;
}

.exp-years {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

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

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.skill-tag {
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

.team-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(123, 97, 255, 0.04));
  transition: all var(--transition-base);
}

.gallery-item:hover .gallery-placeholder {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 97, 255, 0.08));
}

.gallery-placeholder svg {
  width: 60px;
  height: 60px;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 10px;
}

.gallery-placeholder span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.gallery-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 24px;
  font-style: italic;
}

/* Contact */

.contact {
  background: var(--bg-primary);
}

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

.contact-info .section-tag {
  margin-bottom: 20px;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

a.contact-item:hover {
  border-color: var(--accent-cyan);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.contact-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card {
  padding: 40px 36px;
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.contact-card-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-card-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  margin: 0 auto 24px;
}

.contact-card-text {
  margin-bottom: 28px;
}

.contact-card-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Footer */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* Scroll animations */

.animate {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.animate-fade-right {
  opacity: 0;
  transform: translateX(-30px);
}

.animate-fade-left {
  opacity: 0;
  transform: translateX(30px);
}

.animate-fade-scale {
  opacity: 0;
  transform: scale(0.9);
}

.animate.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Certificate */

.certificate-section {
  text-align: center;
  margin-top: 48px;
  padding: 40px 32px;
}

.certificate-section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.certificate-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.certificate-img-wrapper {
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

.certificate-img-wrapper:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.1);
  transform: translateY(-4px);
}

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

/* Lightbox */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Responsive */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .certificate-section {
    padding: 28px 24px;
  }

  .sensor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platforms-grid .platform-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 9, 24, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    font-size: 1.25rem;
  }

  .nav-cta {
    display: none;
  }

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

  .hero-logo-wrapper {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .sensor-grid {
    grid-template-columns: 1fr;
  }

  .principle-steps {
    flex-direction: column;
    gap: 8px;
  }

  .principle-arrow {
    transform: rotate(90deg);
  }

  .architecture {
    flex-direction: column;
    gap: 4px;
  }

  .arch-arrow {
    transform: rotate(90deg);
    width: 30px;
  }

  .arch-step {
    min-width: unset;
    width: 100%;
    max-width: 300px;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .platforms-grid .platform-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .team-experience {
    justify-content: center;
  }

  .team-skills {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 160px;
  }

  .gallery-large,
  .gallery-wide {
    grid-column: span 1;
  }

  .comparison-table {
    font-size: 0.75rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@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;
  }

  .aurora-blob {
    animation: none !important;
  }

  .scroll-line {
    animation: none !important;
    opacity: 0.5;
  }

  .badge-dot {
    animation: none !important;
  }
}
