:root {
  --bg-color: #0d0d11;
  --text-color: #e8e8e8;
  --accent-blue: #4d9fff;
  --accent-teal: #00d4aa;
  --accent-purple: #9d4edd;
  --card-bg: #1a1a22;
  --border-color: rgba(77, 159, 255, 0.2);
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

header {
  padding: 1.2rem 6%;
  background: rgba(13, 13, 17, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.5px;
}

.logo .dot {
  color: var(--accent-teal);
  font-size: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
  font-weight: 500;
  font-size: 0.95rem;
}

nav ul li a:hover {
  color: var(--accent-teal);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0d0d11 60%);
  padding: 80px 6%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(77, 159, 255, 0.1) 0%,
    transparent 70%
  );
  top: -200px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, 30px);
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-blue) 0%,
    var(--accent-teal) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  line-height: 1.2;
}

.tagline {
  font-size: 1.4rem;
  color: var(--text-color);
  opacity: 0.85;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-visual {
  margin-top: 4rem;
  height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}

.light-particle {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 30px var(--accent-teal);
  animation: particle-pulse 2s ease-in-out infinite;
}

.light-particle:nth-child(2) {
  animation-delay: 0.7s;
  background: var(--accent-blue);
  box-shadow: 0 0 30px var(--accent-blue);
}

.light-particle:nth-child(3) {
  animation-delay: 1.4s;
  background: var(--accent-purple);
  box-shadow: 0 0 30px var(--accent-purple);
}

@keyframes particle-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}

.info-section {
  padding: 100px 8%;
}

.alt-bg {
  background-color: #0f0f15;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

h2 {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  color: var(--accent-blue);
  font-weight: 700;
}

h3 {
  font-size: 1.8rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.text p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(232, 232, 232, 0.9);
}

/* Photonic Chip Demo */
.photonic-chip-demo {
  position: relative;
  width: 100%;
  height: 350px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.chip-layer {
  width: 80%;
  height: 60px;
  margin: 0.5rem auto;
  background: rgba(77, 159, 255, 0.1);
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  position: relative;
}

.waveguide-line {
  position: absolute;
  width: 70%;
  height: 2px;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--accent-teal);
  left: 15%;
  animation: signal-flow 2s linear infinite;
}

.waveguide-line:nth-child(4) {
  top: 30%;
}
.waveguide-line:nth-child(5) {
  top: 50%;
  animation-delay: 0.7s;
}
.waveguide-line:nth-child(6) {
  top: 70%;
  animation-delay: 1.4s;
}

@keyframes signal-flow {
  0% {
    opacity: 0.3;
    transform: translateX(-20px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
    transform: translateX(20px);
  }
}

/* Explainer Grid */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.explainer-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.explainer-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 10px 30px rgba(77, 159, 255, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.explainer-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.explainer-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(232, 232, 232, 0.8);
}

/* Applications List */
.applications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.app-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border-left: 4px solid var(--accent-blue);
  transition: all 0.3s;
}

.app-item:hover {
  border-left-color: var(--accent-teal);
  transform: translateX(10px);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.app-header h3 {
  font-size: 1.6rem;
  margin: 0;
}

.impact-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.impact-badge.high {
  background: rgba(0, 212, 170, 0.2);
  color: var(--accent-teal);
}

.impact-badge.medium {
  background: rgba(77, 159, 255, 0.2);
  color: var(--accent-blue);
}

.impact-badge.low {
  background: rgba(157, 78, 221, 0.2);
  color: var(--accent-purple);
}

.app-item p {
  margin: 0;
}

/* Comparison Table */
.comparison-table {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 2fr;
  border-bottom: 1px solid rgba(77, 159, 255, 0.1);
}

.comparison-row:last-child {
  border-bottom: none;
}

.header-row {
  background: rgba(77, 159, 255, 0.1);
}

.header-row .cell {
  font-weight: 700;
  color: var(--accent-blue);
}

.cell {
  padding: 1.5rem 2rem;
  font-size: 1.05rem;
}

.cell.electronic {
  color: rgba(255, 107, 53, 0.9);
}

.cell.photonic {
  color: var(--accent-teal);
  font-weight: 600;
}

/* Roadmap */
.roadmap {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-milestone {
  background: var(--card-bg);
  padding: 1.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.roadmap-milestone:hover {
  border-color: var(--accent-blue);
  transform: scale(1.02);
}

.milestone-year {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.milestone-title {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}

.milestone-desc {
  font-size: 0.95rem;
  color: rgba(232, 232, 232, 0.6);
}

.roadmap-connector {
  width: 2px;
  height: 30px;
  background: var(--accent-blue);
  margin: 0 auto;
  opacity: 0.3;
}

/* Companies Section */
.companies-section {
  padding: 80px 8%;
  background: var(--card-bg);
  text-align: center;
}

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

.company-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.company-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-3px);
}

.company-card h4 {
  font-size: 1.4rem;
  color: var(--accent-blue);
  margin-bottom: 0.8rem;
}

.company-card p {
  font-size: 1rem;
  color: rgba(232, 232, 232, 0.7);
}

footer {
  padding: 3rem 6%;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
}

footer p {
  margin-bottom: 0.5rem;
}

.footer-note {
  font-size: 0.9rem;
  opacity: 0.5;
}

@media (max-width: 1200px) {
  .explainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  nav ul {
    display: none;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .explainer-grid {
    grid-template-columns: 1fr;
  }
  .companies-grid {
    grid-template-columns: 1fr;
  }
  .comparison-row {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    gap: 50px;
  }
}

/* Page styles */
.page-hero { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: radial-gradient(ellipse at top, #1a1424 0%, #0d0d11 50%); padding: 150px 5% 80px; }
.page-hero h1 { font-size: 4rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-teal) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.content-section { padding: 80px 10%; }
.lead { font-size: 1.3rem; line-height: 1.8; margin-bottom: 2rem; }
.research-grid, .institutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.research-card, .institution-card { background: var(--card-bg); padding: 2rem; border-radius: 15px; border: 1px solid var(--border-color); transition: all 0.3s; }
.app-detail { background: var(--card-bg); padding: 3rem; border-radius: 20px; border: 1px solid var(--border-color); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-form { background: var(--card-bg); padding: 2.5rem; border-radius: 15px; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-color); }
.submit-btn { width: 100%; padding: 1rem; background: var(--accent-blue); border: none; border-radius: 8px; color: white; cursor: pointer; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 2rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-color); text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); opacity: 0.6; }
