/* ==========================================================================
   AllyRevolution Technologies - Upcoming Desktop Robot & Agentic AI UI
   High-Fidelity Swiss Red & White Layout, Interactive Agentic Console, Waitlist
   ========================================================================== */

/* High-Fidelity Rendering Hints */
img, svg {
  display: block;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

/* Swiss Crosshair & Coordinate Accents */
.swiss-crosshair {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
  pointer-events: none;
  z-index: 2;
}

.swiss-crosshair.tl { top: 1.5rem; left: 1.5rem; }
.swiss-crosshair.tr { top: 1.5rem; right: 1.5rem; }
.swiss-crosshair.bl { bottom: 1.5rem; left: 1.5rem; }
.swiss-crosshair.br { bottom: 1.5rem; right: 1.5rem; }
.swiss-crosshair.red { color: var(--red-primary); font-weight: bold; }

/* Executive-Grade Product Badge (Zero Pink Clutter) */
.upcoming-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #09090b;
  color: #f4f4f5;
  border: 1px solid #27272a;
  border-radius: 100px;
  padding: 0.38rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.upcoming-hero-pill .pill-dot {
  width: 7px;
  height: 7px;
  background: var(--red-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(230, 0, 40, 0.85);
  animation: pulse-dot 2s infinite ease-in-out;
  flex-shrink: 0;
}

.upcoming-hero-pill .pill-label {
  color: #ffffff;
  font-weight: 800;
}

.upcoming-hero-pill .pill-divider {
  color: #52525b;
}

.upcoming-hero-pill .pill-accent {
  color: var(--red-primary);
  font-weight: 800;
}

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

/* Hero Section */
.hero-swiss {
  position: relative;
  background: #ffffff;
  padding: 3rem 0 6rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 5;
}

.hero-headline-block {
  max-width: 680px;
}

.hero-main-h1 {
  font-size: clamp(3rem, 5.6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--text-black);
  margin-bottom: 1.5rem;
}

.hero-main-h1 span.red {
  color: var(--red-primary);
  display: inline;
}

.hero-meta-columns {
  display: flex;
  gap: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.hero-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero-meta-col span:first-child {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-meta-col span:last-child {
  color: var(--text-black);
  font-weight: 700;
}

/* Hero Stage with Desktop Robot */
.hero-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-watermark {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  font-size: clamp(5.5rem, 16vw, 17rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px #e2e8f0;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

.hero-robot-arm-img {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  max-height: 560px;
  object-fit: contain;
  margin: 0 auto;
  mix-blend-mode: multiply;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-robot-arm-img:hover {
  transform: translateY(-4px) scale(1.008);
}

.hero-floating-card-1 {
  position: absolute;
  bottom: 25px;
  left: 4%;
  z-index: 4;
}

.hero-floating-card-2 {
  position: absolute;
  top: 35px;
  right: 4%;
  z-index: 4;
}

@media (max-width: 1200px) {
  .hero-stage {
    min-height: auto;
    flex-direction: column;
  }
  .hero-floating-card-1,
  .hero-floating-card-2 {
    position: static;
    width: 100%;
    margin: 0;
  }
  .hero-cards-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    z-index: 5;
  }
}

@media (max-width: 600px) {
  .hero-cards-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Interactive Agentic AI Console */
.agentic-console-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-top: 3px solid var(--red-primary);
  padding: 2.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.agentic-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.agentic-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #10b981;
  font-weight: bold;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.agentic-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.agentic-preset-btn {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: var(--text-white-muted);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}

.agentic-preset-btn:hover {
  background: rgba(230, 0, 40, 0.15);
  border-color: var(--red-primary);
  color: #ffffff;
}

.agentic-preset-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #ffffff;
}

.agentic-terminal-screen {
  background: #06080c;
  border: 1px solid #1f2430;
  padding: 1.25rem;
  min-height: 220px;
  max-height: 280px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.agentic-kinematics-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 1.5rem;
}

.kinematics-cell {
  display: flex;
  flex-direction: column;
}

.kinematics-cell span:first-child {
  color: var(--text-muted);
}

.kinematics-cell span:last-child {
  color: #ffffff;
  font-weight: 700;
}

.agentic-custom-input-wrap {
  display: flex;
  gap: 0.75rem;
}

.agentic-custom-input {
  flex-grow: 1;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.agentic-custom-input:focus {
  outline: none;
  border-color: var(--red-primary);
}

/* Modular Toolheads Grid (Section 5) */
.toolhead-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--trans);
  position: relative;
}

.toolhead-card:hover {
  border-color: var(--red-primary);
  transform: translateY(-4px);
}

.toolhead-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(230, 0, 40, 0.08);
  border: 1px solid rgba(230, 0, 40, 0.25);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* VIP Waitlist Modal */
.waitlist-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(12px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.waitlist-modal-backdrop.active {
  display: flex;
}

.waitlist-modal-box {
  width: 100%;
  max-width: 540px;
  background: #ffffff;
  border-top: 4px solid var(--red-primary);
  padding: 2.75rem;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
  position: relative;
}

.waitlist-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Floating Spec Boxes */
.floating-spec-box {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--red-primary);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.floating-spec-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text-black);
  letter-spacing: -0.03em;
  line-height: 1;
}

.floating-spec-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .agentic-kinematics-bar {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Robotics with AI Kinematics Visualizer & Dual-Pane Console
   ========================================================================== */
.agentic-console-dual-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.kinematic-simulator-pane {
  background: #06080c;
  border: 1px solid #1f2430;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.kinematic-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  background: radial-gradient(circle at 50% 50%, #0e131d 0%, #05070a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#robotArmCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-hud {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.canvas-hud-badge {
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.canvas-hud-badge strong {
  color: #fff;
}

.kinematic-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: #090c12;
  border-top: 1px solid #1f2430;
  border-bottom: 1px solid #1f2430;
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.telemetry-strip-cell span:first-child {
  color: var(--text-muted);
  display: block;
  font-size: 0.65rem;
  margin-bottom: 0.15rem;
}

.telemetry-strip-cell span:last-child {
  color: #fff;
  font-weight: 700;
}

.kinematic-jog-panel {
  padding: 1rem;
  background: #080a0f;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jog-mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.jog-toggle-btn {
  flex: 1;
  background: #121620;
  border: 1px solid #273142;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  transition: var(--trans);
  text-transform: uppercase;
}

.jog-toggle-btn.active {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: #ffffff;
}

.jog-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
}

.jog-slider-label {
  width: 95px;
  flex-shrink: 0;
  color: #94a3b8;
}

.jog-slider-input {
  flex-grow: 1;
  accent-color: var(--red-primary);
  height: 4px;
  cursor: pointer;
}

.jog-slider-val {
  width: 45px;
  text-align: right;
  color: #fff;
  font-weight: 700;
}

.kinematic-force-bar-wrap {
  width: 100%;
  height: 6px;
  background: #181d28;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.kinematic-force-bar-fill {
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, #10b981, var(--red-primary));
  transition: width 0.2s ease;
}

@media (max-width: 992px) {
  .agentic-console-dual-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-top-row {
    flex-direction: column;
  }
  .hero-meta-columns {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .hero-main-h1 {
    font-size: 2.2rem;
  }
  .agentic-custom-input-wrap {
    flex-direction: column;
  }
}

/* ==========================================================================
   System Architecture Visual Showcase (Executive Industrial Layout)
   ========================================================================== */
.arch-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 960px) {
  .arch-grid-container {
    grid-template-columns: 1fr;
  }
}

.arch-visual-card {
  border: 1px solid var(--border-dark);
  background: #09090c;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  position: relative;
  display: flex;
  flex-direction: column;
}

.arch-visual-card.image-card {
  position: relative;
  min-height: 420px;
}

.arch-visual-card.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 420px;
}

.arch-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(9, 9, 12, 0) 0%, rgba(9, 9, 12, 0.92) 50%, #09090c 100%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arch-image-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(9, 9, 12, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  width: fit-content;
}

.arch-image-details {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #a1a1aa;
  letter-spacing: 0.04em;
}

.arch-pipeline-card {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at 100% 0%, rgba(230, 0, 40, 0.08) 0%, #09090c 60%);
  min-height: 420px;
}

.arch-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #1f1f23;
}

.arch-pipeline-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red-primary);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.arch-pipeline-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #71717a;
  background: #141418;
  padding: 0.2rem 0.55rem;
  border: 1px solid #27272a;
  border-radius: 2px;
}

.arch-pipeline-nodes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.arch-pipeline-nodes::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 1.25rem;
  width: 1px;
  background: linear-gradient(180deg, var(--red-primary) 0%, #27272a 100%);
  z-index: 1;
}

.arch-node-item {
  display: flex;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
  align-items: flex-start;
}

.arch-node-marker {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  background: #141418;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-node-item:hover .arch-node-marker {
  border-color: var(--red-primary);
  color: var(--red-primary);
  box-shadow: 0 0 16px rgba(230, 0, 40, 0.4);
}

.arch-node-content {
  flex-grow: 1;
}

.arch-node-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.arch-node-heading {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.arch-node-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--red-primary);
  font-weight: 600;
}

.arch-node-desc {
  font-size: 0.82rem;
  color: #a1a1aa;
  line-height: 1.5;
}

.arch-pipeline-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #1f1f23;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #71717a;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Founder & CEO Spotlight Card Responsive */
.founder-spotlight-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.founder-spotlight-card:hover {
  border-color: #3f3f46;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
@media (max-width: 768px) {
  .founder-spotlight-card > div {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 1.5rem !important;
  }
}

/* R&D Prototypes Showcase (Office Presenter & Home Car-Robo) */
.rnd-prototypes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 960px) {
  .rnd-prototypes-grid {
    grid-template-columns: 1fr !important;
  }
}
