/* ==========================================================================
   Andromity — High-Contrast Professional Terminal Aesthetic (Zero Emojis)
   ========================================================================== */

:root {
  --bg: #000000;
  --bg-card: rgba(12, 12, 12, 0.85);
  --bg-card-hover: rgba(22, 22, 22, 0.95);
  --bg-subtle: #141414;
  --bg-code: #080808;
  
  --text-primary: #ffffff;
  --text-secondary: #e5e5e5;
  --text-muted: #888888;
  --text-dark: #555555;
  
  --border-strong: #2a2a2a;
  --border: #181818;
  --border-subtle: #111111;
  --border-hover: rgba(255, 255, 255, 0.35);
  
  --dock-width: 68px;
  
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Geist', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

/* ==========================================================================
   Global Reset & Scroll Management
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Three.js Background Canvas */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
  cursor: grab;
}

#canvas:active {
  cursor: grabbing;
}

/* ==========================================================================
   Left Vertical Liquid Dot Indicator Dock (Floating Island — Zero Border Line)
   ========================================================================== */
.left-dock {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--dock-width);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 60;
  border: none !important;
  border-right: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}

.dock-items {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

/* Fluid Liquid Circle Active Indicator */
.dock-liquid-pill {
  position: absolute;
  left: 8px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.16), inset 0 0 10px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 1;
  transform-origin: center center;
  transition: top 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Circle Dot Navigation Button */
.dock-dot {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  z-index: 2;
  transform: scale(var(--dock-scale, 1));
}

/* Initial circle dot */
.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50% !important;
  background: #ffffff;
  opacity: 0.4;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

/* Icon hidden on inactive dots */
.dot-icon {
  position: absolute;
  opacity: 0;
  transform: scale(0.35);
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

/* Inactive dot hover */
.dock-dot:hover:not(.active) .dot-indicator {
  opacity: 0;
  transform: scale(0);
}

.dock-dot:hover:not(.active) .dot-icon {
  opacity: 0.85;
  transform: scale(0.9);
}

/* Active State */
.dock-dot.active .dot-indicator {
  opacity: 0;
  transform: scale(0);
}

.dock-dot.active .dot-icon {
  opacity: 1;
  transform: scale(1);
}

/* Floating Tooltip (Sharp 0px Corner) */
.dock-tooltip {
  position: absolute;
  left: 50px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 0px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px) scale(0.95);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  z-index: 70;
}

.dock-dot:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ==========================================================================
   Top Fixed Navigation
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: var(--dock-width);
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 56px;
  z-index: 40;
  pointer-events: auto;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

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

.nav-link {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-divider {
  color: var(--text-muted);
  font-size: 11px;
}

.nav-icon-link {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-icon-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Full Page Scroll Wrapper & Sections
   ========================================================================== */
.page-wrap {
  position: fixed;
  top: 0;
  left: var(--dock-width);
  right: 0;
  bottom: 0;
  width: calc(100% - var(--dock-width));
  height: 100vh;
  transform: translateY(0);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  z-index: 10;
  pointer-events: none;
}

.page-wrap > * {
  pointer-events: auto;
}

.section-container {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 80px 56px 40px 56px;
  box-sizing: border-box;
  opacity: 0.12;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-container.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-inner {
  width: 100%;
  max-width: 920px;
}

.hero-container {
  max-width: 640px;
  width: 100%;
}

/* Section Header Typography */
.section-header {
  margin-bottom: 26px;
  max-width: 740px;
}

.section-num-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  padding: 3px 10px;
  border-radius: 0px;
  display: inline-block;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.section-note {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 20px;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.section-note strong {
  color: #ffffff;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  color: #ffffff;
}

.code-inline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  padding: 2px 7px;
  border-radius: 0px;
}

/* ==========================================================================
   Section 1: Hero & Command Box
   ========================================================================== */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 0px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tag-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.hero-headline {
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.95);
}

.hero-desc {
  font-size: 17.5px;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-subdesc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* Install Command Box */
.firm-install-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 14px 18px 16px 18px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.firm-install-box:hover {
  border-color: var(--border-hover);
}

.install-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: color 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: #ffffff;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}

.platform-indicator {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.command-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 0px;
}

.command-prompt {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}

.command-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: #181818;
  border: 1px solid var(--border-strong);
  color: #e5e5e5;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 0px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #282828;
  color: #ffffff;
  border-color: #ffffff;
}

.copy-btn.copied {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.install-footnote {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   Section 2: Trust Grid
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 18px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
}

.active-card {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(20, 26, 36, 0.95);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.mode-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  padding: 2px 7px;
  background: #ffffff;
  color: #000000;
  border-radius: 0px;
}

.mode-desc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}

.spec-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-list li span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.spec-list li strong {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Section 3: Features Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 18px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
}

.feature-title {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.profile-bullets {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.profile-bullets li strong {
  color: #ffffff;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Section 4: Headless List
   ========================================================================== */
.headless-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.headless-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 14px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease;
}

.headless-box:hover {
  border-color: var(--border-hover);
}

.headless-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.headless-box pre code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ffffff;
}

/* ==========================================================================
   Section 5: Comparison Table (Zero Emojis — Crisp SVG Icons)
   ========================================================================== */
.firm-table-box {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  background: var(--bg-card);
  max-width: 780px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
}

.compare-table th {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: #111111;
}

.compare-table td {
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

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

.col-active {
  color: #ffffff !important;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-icon.check {
  color: #ffffff;
}

.status-icon.cross {
  color: #444444;
  opacity: 0.8;
}

.status-badge.partial {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 0px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Section 6: Privacy Card & Footer
   ========================================================================== */
.firm-privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 0px;
  padding: 20px 24px;
  margin-bottom: 32px;
  max-width: 680px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.privacy-bullets {
  list-style: square;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 680px;
}

.brand-badge-footer {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 10px;
}

.copyright-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 860px) {
  html, body {
    overflow-y: auto;
    height: auto;
  }
  
  :root {
    --dock-width: 0px;
  }
  
  .left-dock {
    display: none;
  }
  
  .top-nav {
    left: 0;
    padding: 16px 20px;
  }
  
  .page-wrap {
    position: relative;
    left: 0;
    margin-left: 0;
    width: 100%;
    height: auto;
    transform: none !important;
    transition: none !important;
  }
  
  .section-container {
    height: auto;
    min-height: 100vh;
    max-height: none;
    padding: 90px 20px 40px 20px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-headline {
    font-size: 34px;
  }
}
