:root {
  --primary: #2563eb;
  --background: #f9fafb;
  --text: #111827;
  --heading: #1f2937;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
}

header {
  background: linear-gradient(135deg, #e0e7ff, #f8fafc);
  padding: 4rem 1rem;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.glass-box {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  padding: 2rem 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  max-width: 760px;
  width: 90%;
  animation: fadeIn 1s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tagline {
  font-size: 1.2rem;
  font-weight: 300;
  color: #1e40af;
  opacity: 0.9;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.card-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 2rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.card-section h2 {
  color: #1e3a8a;
  margin-top: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.25rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.accent-paragraphs {
  border-left: 4px solid #80aaed;
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.accent-paragraphs p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-block {
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
  width: fit-content;
  display: flex;
  justify-content: center;
}

.inquiry-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.inquiry-note a {
  color: #2563eb;
  text-decoration: none;
}

.inquiry-note a:hover {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: 0rem auto;
  padding: 1rem;
}

.play-button {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 2rem auto;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow);
  transition: background 0.3s ease;
}

.play-button:hover {
  background: #1e40af;
}

article {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
}

article h2 {
  color: var(--heading);
  margin-top: 2rem;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.25rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: -1px;
}

article h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  color: #374151;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.15rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: -1px;
}

article p {
  margin: 1rem 0;
}

ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

li {
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  margin: 4rem 0 1rem;
}

@media (max-width: 768px) {
  .glass-box {
    padding: 1.5rem;
  }

  .video-row {
    flex-direction: column;
    align-items: center;
  }

  .video-row video {
    max-width: 100%;
    width: 100%;
  }

  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 1.5rem;
  }

  article h2, .card-section h2 {
    font-size: 1.1rem;
  }

  article h3 {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .typewriter-heading {
    font-size: 1.4rem;
  }

  .play-button {
    font-size: 0.95rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .glass-box {
    padding: 1.5rem 1rem;
  }

  .typewriter-heading {
    font-size: 1rem;
    line-height: 1.5;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 400px) {
  .typewriter-heading {
    font-size: 0.85rem;
    line-height: 1.4;
    letter-spacing: normal;
  }
  .tagline {
    font-size: 0.85rem;
  }
}

.modern-demo-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  margin: 2rem auto;
  text-align: center;
}

.modern-demo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin: 0rem 0;
}

.video-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.video-row video {
  flex: 1 1 30%;
  max-width: 30%;
  min-width: 250px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.image-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.image-wrapper img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
}

.video-strip-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0 1rem 1rem;
  margin: 2rem 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.video-strip {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  transition: scroll-left 0.3s ease;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.video-strip video {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.video-strip-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-strip-wrapper {
  overflow-x: hidden;
  margin: 2rem 0;
  padding: 1rem 0;
  width: 100%;
}

.video-strip {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  transition: scroll-left 0.3s ease;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.video-strip video {
  flex: 0 0 auto;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  line-height: 1;
  padding: 0;
}

.scroll-arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.scroll-arrow.left {
  left: 0.5rem;
}

.scroll-arrow.right {
  right: 0.5rem;
}

.typewriter-heading {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-family: 'Press Start 2P', monospace;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: -1px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.typewriter-heading .typewriter-char {
  opacity: 0;
  transform: translateY(10px);
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.typewriter-word {
  display: inline-block;
  white-space: nowrap;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem auto;
  max-width: 100%;
}

.logo-row img {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin: 3rem auto;
}

.logo-grid img {
  width: 70px;
  height: auto;
  object-fit: contain;
}

.video-strip-section {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 0rem;
}

.video-strip-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: #3559bc;
  margin-bottom: 0rem;
  font-weight: 600;
}

/* Simplified video optimization styles */
.lazy-video {
  background: #f3f4f6;
  transition: opacity 0.3s ease;
}

.lazy-video.loaded {
  opacity: 1;
}

.priority-video {
  /* Priority videos show immediately */
  opacity: 1;
}

/* Network hint styles */
.network-hint {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: #f59e0b;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Video loading spinner styles */
.video-row video,
.video-block video,
.video-strip video {
  position: relative;
  background: #e5e7eb; /* Placeholder background */
}

.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  margin-left: -20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.acknowledgement-block {
  max-width: 800px;
  margin: 1.5rem auto 1rem auto;
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  border-left: 3px solid #e5e7eb;
  padding: 0.5rem 0 0.5rem 1rem;
  background: #f9fafb;
}

/* Social link styles */
.social-link {
  color: #1e40af;
  text-decoration: none;
  margin-top: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-link:hover {
  text-decoration: underline;
}

.social-link i {
  font-size: 1rem;
}

/* Social Media Carousel Styles */
.social-carousel-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  margin: 2rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-carousel-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.social-carousel-section h2 {
  color: #1e3a8a;
  margin-top: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.25rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: -1px;
  text-align: center;
}

.social-carousel-section p {
  text-align: center;
  margin-bottom: 2rem;
  color: #6b7280;
  font-size: 1.1rem;
}

.social-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.social-carousel-wrapper {
  overflow: hidden;
  border-radius: 12px;
  flex: 1;
  position: relative;
  max-width: 828px; /* 3 cards * 260px + 2 gaps * 24px */
  width: 100%;
  margin: 0 auto;
}

.social-carousel {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s ease;
  padding: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.social-post {
  min-width: 260px;
  max-width: 260px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #d1d5db;
}

.social-quote {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.social-author {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.author-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.author-handle {
  color: #6b7280;
  font-size: 0.85rem;
}

.quote-text {
  flex: 1;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.quote-date {
  color: #9ca3af;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.quote-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  background: #eff6ff;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: fit-content;
}

.quote-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.quote-link i {
  font-size: 0.9rem;
}

.youtube-quote .quote-link {
  background: #fef2f2;
  color: #dc2626;
}

.youtube-quote .quote-link:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.social-scroll-arrow {
  background: rgba(37, 99, 235, 0.1);
  border: 2px solid rgba(37, 99, 235, 0.3);
  color: #2563eb;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.social-scroll-arrow:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  transform: scale(1.1);
}

.social-scroll-arrow:active {
  transform: scale(0.95);
}

.social-scroll-arrow.left {
  left: -24px;
}

.social-scroll-arrow.right {
  right: -24px;
}

/* Mobile responsiveness for social carousel */
@media (max-width: 768px) {
  .social-carousel-container {
    gap: 0.5rem;
  }
  
  .social-post {
    min-width: 280px;
    max-width: 280px;
  }
  
  .social-scroll-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .social-carousel {
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .social-carousel-wrapper {
    max-width: 544px; /* 2 cards + gap */
  }
}

@media (max-width: 600px) {
  .social-carousel-wrapper {
    max-width: 260px; /* 1 card */
  }
  .social-post {
    min-width: 220px;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .social-post {
    min-width: 250px;
    max-width: 250px;
  }
  
  .social-carousel-section {
    padding: 1.5rem;
  }
  
  .social-carousel-section h2 {
    font-size: 1rem;
  }
}

/* Navigation Tabs Styles */
.nav-tabs {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex; /* Hidden per user request */
  gap: 0.5rem;
  z-index: 10;
}

.nav-tab {
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem;
  color: #1e40af;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  position: relative;
}

.nav-tab:hover {
  color: #1e3a8a;
  opacity: 0.8;
}

.nav-tab.active {
  color: #1e3a8a;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: #1e3a8a;
  border-radius: 1px;
}

/* Tab Content Styles */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness for nav tabs */
@media (max-width: 768px) {
  .nav-tabs {
    top: 1rem;
    right: 1rem;
    gap: 0.25rem;
  }
  
  .nav-tab {
    padding: 0.5rem 1rem;
    font-size: 0.6rem;
  }
  
  .nav-tab.active::after {
    height: 1.5px;
  }
}

@media (max-width: 480px) {
  .nav-tabs {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .nav-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.55rem;
  }
  
  .nav-tab.active::after {
    height: 1px;
  }
}

/* Demo video responsive styles for Mirage 2 */
.demo-headers {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0 1rem 0;
  flex-wrap: wrap;
}

.demo-header-image {
  flex: 1;
  min-width: 100px;
  max-width: 300px;
  text-align: center;
}

.demo-header-video {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.demo-headers h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
}

.demo-headers .arrow {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  color: #6b7280;
}

.demo-layout {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 0rem 0rem;
  flex-wrap: wrap;
}

.demo-image {
  flex: 1;
  min-width: 100px;
  max-width: 300px;
  text-align: center;
}

.demo-image img {
  max-width: 100%;
  height: auto;
}

.demo-video {
  flex: 2;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.demo-video video {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mobile responsive styles for demo videos */
@media (max-width: 768px) {
  .demo-headers {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .demo-header-image,
  .demo-header-video {
    min-width: auto;
    max-width: 100%;
  }
  
  .demo-layout {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0 1rem;
  }
  
  .demo-image {
    min-width: auto;
    width: 80%;
    max-width: 250px;
  }
  
  .demo-video {
    min-width: auto;
    width: 100%;
    max-width: 100%;
  }
  
  .demo-video video {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .demo-headers h3 {
    font-size: 0.95rem;
  }
  
  .demo-headers .arrow {
    font-size: 1.2rem;
  }
  
  .demo-layout {
    padding: 0 0.5rem;
  }
  
  .demo-image {
    width: 70%;
    max-width: 200px;
  }
  
  .demo-video {
    width: calc(100% - 1rem);
  }
  
  .demo-video video {
    border-radius: 8px;
  }
}