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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--tx-main);
  font-family: var(--font-ui);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

.dev-banner {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  background: rgba(43, 43, 43, 0.15);
  border: 1px solid rgba(255, 166, 0, 0.142);
  color: var(--c-warning);
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.bg-grid::before {
  content: "";
  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;
}

.bg-grid::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--acc-primary) 1px, transparent 1px),
    linear-gradient(90deg, var(--acc-primary) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 20%);
  -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 0%, transparent 20%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section-pad {
  padding: 120px 0;
}

h1 {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -1px;
}

h3 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

p {
  color: var(--tx-muted);
  font-weight: 300;
}

header {
  height: var(--nav-height);
  border-bottom: 1px solid var(--bd-subtle);
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
}

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

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -1px;
}

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

.nav-link {
  font-size: 0.9rem;
  color: var(--tx-muted);
}

.nav-link:hover {
  color: var(--tx-main);
}

.nav-cta {
  color: var(--acc-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.nav-cta:hover {
  text-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--acc-primary);
  border: 1px solid var(--bd-subtle);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-sub {
  font-family: var(--font-mono);
  color: var(--tx-main);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 10px 0 30px 0;
  font-weight: 400;
  opacity: 0.9;
}

.hero p {
  max-width: 550px;
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  color: var(--tx-muted);
}

.cmd-box {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--bg-panel);
  border: 1px solid var(--bd-subtle);
  padding: 16px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.cmd-box:hover {
  border-color: var(--acc-primary);
}

.cmd-box:active {
  transform: scale(0.98);
}

.prompt {
  color: var(--tx-dim);
  margin-right: 12px;
  user-select: none;
}

.cmd {
  color: var(--acc-primary);
  word-break: break-all;
}

.copy-msg {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--acc-primary);
  color: #000;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}

.copy-msg.show {
  opacity: 1;
}


.highlight {
  color: var(--tx-main);
  font-weight: 500;
}

.assembly-wrapper {
  position: relative;
}

.assembly-container {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.text-column {
  width: 45%;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

.carousel-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.carousel-step.active {
  display: block;
}

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

.carousel-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.btn-nav {
  background: transparent;
  border: 1px solid var(--bd-subtle);
  color: var(--acc-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-nav:hover:not(:disabled) {
  background: rgba(0, 230, 118, 0.1);
  border-color: var(--acc-primary);
}

.btn-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--bd-subtle);
  color: var(--tx-muted);
}

.step-counter {
  color: var(--tx-dim);
  font-size: 0.9rem;
}

.step-idx {
  font-family: var(--font-mono);
  color: var(--acc-primary);
  margin-bottom: 10px;
  display: block;
}

.visual-column {
  width: 50%;
  height: auto;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schematic-layer {
  transition: opacity 0.6s ease-in-out;
  opacity: 0;
}

.schematic-layer.visible {
  opacity: 1;
}

.sbc-visual {
  width: 100%;
  height: auto;
  max-height: 80vh;
}

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

.bento-card {
  background: rgba(80, 80, 80, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 32px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.bento-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-idx {
  font-family: var(--font-mono);
  color: var(--tx-dim);
  font-size: 0.8rem;
}

.bento-card h3 {
  margin-bottom: 12px;
  color: var(--tx-main);
  font-size: 1.1rem;
}

.bento-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tx-muted);
}

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

.nav-link.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.faq-accordion {
  border-top: 1px solid var(--bd-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--bd-subtle);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: transparent;
  border: none;
  color: var(--tx-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: var(--acc-primary);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--tx-muted);
  transition: transform 0.3s ease, color 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--acc-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content p {
  padding-bottom: 24px;
  color: var(--tx-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Tech Buttons */
.btn-group {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--bd-subtle);
  color: var(--tx-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  border-color: var(--tx-main);
  color: var(--tx-main);
  background: rgba(255, 255, 255, 0.02);
}

.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--bd-subtle);
}

.btn.disabled:hover {
  color: var(--tx-muted);
  background: transparent;
  border-color: var(--bd-subtle);
}

footer {
  padding: 0 0 80px;
  text-align: center;
}

.foot-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}


@media (max-width: 768px) {
  .assembly-container {
    flex-direction: column-reverse;
  }
  
  .section-pad {
    padding: 60px 0;
  }

  .visual-column {
    position: relative;
    height: 300px;
    min-height: auto;
    width: 100%;
    top: auto;
    border-bottom: 1px solid var(--bd-subtle);
    margin-bottom: 40px;
    padding-top: 0;
    align-items: center;
  }

  .text-column {
    width: 100%;
  }

  .carousel-controls {
    position: relative;
    margin-top: 30px;
    justify-content: center;
    width: 100%;
  }

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

  .span-2 {
    grid-column: span 1;
  }

  .dashboard-content {
    height: auto;
    aspect-ratio: 16/9;
    min-height: auto;
  }

  header {
    height: auto;
    padding: 10px 0;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    padding-top: 140px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

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

/* --- Extracted Utilities & Components --- */

.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.d-inline-flex { display: inline-flex; }
.text-primary { color: var(--acc-primary); }

.section-tag {
  font-size: 0.9rem;
  color: var(--tx-muted);
  margin-bottom: 20px;
}

.dashboard-frame {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--bd-subtle);
  background: var(--bg-panel);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.dashboard-bar {
  height: 36px;
  border-bottom: 1px solid var(--bd-subtle);
  display: flex;
  align-items: center;
  padding-left: 12px;
  gap: 8px;
}

.win-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.win-dot.red { background: #FF5F56; }
.win-dot.yellow { background: #FFBD2E; }
.win-dot.green { background: #27C93F; }

.dashboard-content {
  background: #151618;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-dim);
  font-family: var(--font-mono);

  img {
    max-width: 100%;
    max-height: 100%;
  }
}

.footer-note {
  margin-top: 30px;
  font-family: var(--font-mono);
  color: var(--tx-dim);
  font-size: 0.85rem;
}