* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

@media (max-width: 768px) {
  .header {
    top: 20px;
  }

  .logo {
    font-size: 2.2rem;
  }
}

.logo {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 3px;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 160px 80px 80px;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}

.left-content {
  flex: 1;
  padding-right: 40px;
}

.main-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: -2px;
}

.subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  color: #9499b3;
  margin-top: 10px;
}

.phone-container {
  flex: 0 0 auto;
  position: relative;
  z-index: 15;
}

.phone-mockup {
  width: 290px;
  height: 580px;
  background: transparent;
  border-radius: 40px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: 40px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 40px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.screenshot.active {
  opacity: 1;
}

.right-content {
  flex: 1;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* DVDT Mathematics Card & Oscilloscope Component */
.dvdt-math-card {
  width: 100%;
  max-width: 420px;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
}

.math-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.math-card-title {
  font-family: "JetBrains Mono", monospace, Courier, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
}

.math-card-status {
  font-family: "JetBrains Mono", monospace, Courier, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #00ff66;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
  animation: blink-anim 1.5s infinite ease-in-out;
}

@keyframes blink-anim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dvdt-oscilloscope {
  width: 100%;
  height: 180px;
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

#dvdt-math-graph {
  width: 100%;
  height: 100%;
  display: block;
}

/* Oscilloscope soundwave signals styled as high-contrast solid lines */
.wave-1 {
  stroke: #ffffff;
  stroke-width: 2px;
  fill: none;
  opacity: 0.95;
}

.wave-2 {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5px;
  fill: none;
  stroke-dasharray: 4 2;
}

.wave-3 {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1px;
  fill: none;
}

.tracker-point {
  fill: #ffffff;
}

/* Monospace Mathematical Formula Box */
.math-formula-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.formula-latex {
  font-family: "JetBrains Mono", monospace, Courier, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.formula-description {
  font-size: 0.72rem;
  color: #9499b3;
  margin-top: 8px;
}

/* Telemetry Dashboard Data */
.math-telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 15px;
}

.telemetry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.tel-label {
  font-family: "JetBrains Mono", monospace, Courier, monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.tel-val {
  font-family: "JetBrains Mono", monospace, Courier, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

/* 3D Constellation Canvas Background */
canvas#bg-canvas-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background-color: #000000;
  display: block;
}

/* DSP Control Deck Equalizer Component */
.dsp-control-deck {
  width: 100%;
  max-width: 480px;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin-top: 30px;
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.deck-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1.5px;
}

.deck-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* Equalizer Sliders */
.equalizer-container {
  display: flex;
  justify-content: space-between;
  height: 140px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.eq-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
}

.eq-slider-track {
  width: 4px;
  height: 90px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.eq-slider-fill {
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.eq-slider-thumb {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 50%;
  position: absolute;
  left: -5px;
  transform: translateY(50%);
  cursor: grab;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: transform 0.1s ease;
}

.eq-slider-thumb:active {
  cursor: grabbing;
  transform: translateY(50%) scale(1.2);
}

.eq-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}

/* Tactile Knobs Console */
.dials-container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.dial-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.dial-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-align: center;
}

.tactile-dial {
  width: 52px;
  height: 52px;
  background: #111116;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.3);
  transition: border-color 0.2s ease;
}

.tactile-dial:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.dial-indicator {
  width: 3px;
  height: 15px;
  background: #ffffff;
  position: absolute;
  top: 4px;
  left: 23px;
  border-radius: 1.5px;
  transform-origin: bottom center;
  transform: rotate(-120deg); /* default position */
}

.dial-val-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 6px;
}

/* Telemetry readout rows */
.deck-telemetry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.tel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.tel-highlight {
  color: #ffffff;
  font-weight: 700;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.or-text {
  text-align: center;
  font-size: 0.85rem;
  color: #9499b3;
  margin: -4px 0 6px;
}

.icon-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.icon-link {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.icon-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.icon-img.github-img {
  filter: invert(1) saturate(0) brightness(1.8);
}

.download-btn {
  width: 250px;
  min-height: 68px;
  padding: 14px 20px;
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.15);
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.btn-text {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.btn-download-count {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
  color: rgba(0, 0, 0, 0.54);
  white-space: nowrap;
}

.btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Features Section */
.features-section {
  padding: 120px 80px;
  background: #000000;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-title {
  font-size: 3.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.features-subtitle {
  font-size: 1.3rem;
  color: #9499b3;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.features-categories {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.feature-category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

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

.feature-card {
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: #111116;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-description {
  font-size: 0.95rem;
  color: #9499b3;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Section */
.faq-section {
  padding: 120px 80px;
  background: #000000;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 65px;
}

.faq-title {
  font-size: 3.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.faq-subtitle {
  font-size: 1.25rem;
  color: #9499b3;
  font-weight: 400;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

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

.faq-question {
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  flex: 1;
}

.faq-toggle {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 32px 24px 32px;
  color: #9499b3;
  line-height: 1.6;
  margin: 0;
  font-size: 0.98rem;
}

/* Footer */
.footer {
  background: #000000;
  padding: 80px 0 40px;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-content>.footer-section:last-child {
  align-items: flex-end;
}

.footer-content>.footer-section:last-child .footer-subtitle,
.footer-content>.footer-section:last-child .footer-links {
  text-align: left;
  width: 260px;
}

.footer-content>.footer-section:last-child .footer-links {
  display: block;
  column-count: 2;
  column-gap: 16px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-description {
  color: #9499b3;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.footer-buttons {
  display: flex;
  gap: 15px;
}

.footer-btn {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-btn:hover {
  transform: scale(1.05);
}

.btn-image {
  height: 38px;
  width: auto;
  border-radius: 8px;
  display: block;
}

.footer-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #9499b3;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

/* Background video */
.mobile-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

.background-gif {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: screen;
}

.bg-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

/* Responsive Rules */
@media (max-width: 1200px) {
  .main-content {
    padding: 140px 40px 60px;
  }

  .main-title {
    font-size: 3.8rem;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }
}

.mobile-phone-container {
  display: none;
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    padding: 140px 24px 40px;
    text-align: center;
    gap: 40px;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
  }

  .left-content {
    display: block;
    padding-right: 0;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
  }

  .main-title {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .phone-container {
    display: none;
  }

  .right-content {
    padding: 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .qr-code {
    display: none;
  }

  .download-btn {
    width: 240px;
    min-height: 60px;
    font-size: 0.95rem;
    margin: 0 auto;
  }

  .download-buttons {
    gap: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }



  .features-section {
    padding: 80px 24px;
  }

  .features-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .features-subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
    height: auto;
  }

  .faq-section {
    padding: 80px 24px;
  }

  .faq-title {
    font-size: 2.2rem;
  }

  .faq-question {
    padding: 20px 24px;
  }

  .faq-question h3 {
    font-size: 1.05rem;
  }

  .faq-answer p {
    padding: 0 24px 20px 24px;
    font-size: 0.9rem;
  }

  .footer {
    padding: 60px 0 30px;
  }

  .footer-container {
    padding: 0 24px;
  }

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

  .footer-content>.footer-section:last-child {
    align-items: flex-start;
  }
}
