/* ==========================================================================
   ROBOTVISION SYSTEM STYLESHEET (VANILLA CSS)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8ed;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-rgb: 0, 113, 227;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --border-color: #d2d2d7;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-border: rgba(210, 210, 215, 0.5);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --code-bg: #f5f5f7;
  --code-text: #a31515;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
  --navbar-height: 4.5rem;
  --transition-speed: 0.3s;
}

html.dark {
  --bg-primary: #000000;
  --bg-secondary: #161617;
  --bg-tertiary: #2d2d2f;
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --accent: #2997ff;
  --accent-hover: #51a8ff;
  --accent-rgb: 41, 151, 255;
  --border-color: #333336;
  --card-bg: rgba(22, 22, 23, 0.8);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --code-bg: #1e1e1e;
  --code-text: #ff7b72;
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

pre {
  background-color: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}
pre code {
  background-color: transparent;
  color: var(--text-primary);
  padding: 0;
  border: none;
  font-size: 0.9em;
}

/* View Transitions Support */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Navigation Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background-color: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  z-index: 1000;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}
.logo-svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-speed) ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Styled Action Buttons */
.btn-toggle {
  background: none;
  border: 1px solid var(--border-color);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  transition: background-color var(--transition-speed), border-color var(--transition-speed), transform 0.1s;
}
.btn-toggle:hover {
  background-color: var(--bg-tertiary);
  transform: scale(1.05);
}
.btn-toggle:active {
  transform: scale(0.95);
}

.btn-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.moon-icon { display: block; }
.sun-icon { display: none; }
html.dark .sun-icon { display: block; }
html.dark .moon-icon { display: none; }

/* Language Switcher */
.lang-switch {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.15rem;
  background-color: var(--bg-secondary);
  cursor: pointer;
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}
.lang-btn.active {
  background-color: var(--accent);
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 980px;
  transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  font-size: 0.95rem;
  border: none;
}
.btn-primary {
  background-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
}
.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 8.5rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

/* Background mesh glow */
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.12) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.08);
  padding: 0.35rem 1rem;
  border-radius: 980px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, var(--text-primary) 60%, rgba(var(--accent-rgb), 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.hero-visual {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  background-color: var(--bg-secondary);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-visual:hover {
  transform: scale(1.01) translateY(-4px);
}

/* Feature Cards Grid */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem;
}
.section-badge {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works pipeline flow diagram */
.how-pipeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.pipeline-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease;
}
.pipeline-step:hover {
  transform: translateX(4px);
}

.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: rgba(var(--accent-rgb), 0.2);
  line-height: 1;
}
.step-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Video Section styling */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* App Download & QR code CTA grid */
.download-box {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}
.download-box .grid-2 {
  gap: 4rem;
}

.download-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.download-box h3 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.download-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--text-primary);
  color: var(--bg-secondary);
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.95;
}
.appstore-btn-apple-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}
.appstore-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.appstore-btn-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  opacity: 0.8;
}
.appstore-btn-main {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.download-qr-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
}
.qr-container {
  background-color: #fff;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.qr-img {
  width: 150px;
  height: 150px;
}
.qr-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.download-notice {
  margin-top: 1.5rem;
  font-size: 0.85rem !important;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 0 !important;
}

/* Footer Section */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo {
  margin-bottom: 1rem;
}
.footer-info p {
  line-height: 1.6;
}
.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}
.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}
.footer-link:hover {
  color: var(--text-primary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Docs Layout */
.docs-layout {
  display: flex;
  gap: 2.5rem;
  padding-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
  position: relative;
}

.docs-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--navbar-height) + 2rem);
  height: calc(100vh - var(--navbar-height) - 4rem);
  overflow-y: auto;
  padding-right: 1rem;
  border-right: 1px solid var(--border-color);
}
.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}
.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.docs-menu {
  list-style: none;
}
.docs-menu-item {
  margin-bottom: 0.5rem;
}
.docs-menu-link {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
}
.docs-menu-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}
.docs-menu-link.active {
  color: #fff;
  background-color: var(--accent);
}

.docs-content {
  flex-grow: 1;
  max-width: 850px;
  padding: 2rem 0 6rem;
  overflow-x: hidden;
}

.docs-section {
  scroll-margin-top: calc(var(--navbar-height) + 2rem);
  margin-bottom: 5rem;
}
.docs-section:last-child {
  margin-bottom: 2rem;
}

.docs-section h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.docs-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.docs-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.docs-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.docs-lead {
  font-size: 1.15rem;
  color: var(--text-primary) !important;
  line-height: 1.6;
}

.docs-section ul, .docs-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}
.docs-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Alert Boxes in Docs */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.alert-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.alert-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.alert-info {
  background-color: rgba(var(--accent-rgb), 0.08);
  border-left: 4px solid var(--accent);
  color: var(--text-primary);
}
.alert-warning {
  background-color: rgba(255, 149, 0, 0.08);
  border-left: 4px solid var(--warning);
  color: var(--text-primary);
}

/* API Tables */
.api-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
.api-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.api-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.api-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  vertical-align: top;
}
.api-table tr:last-child td {
  border-bottom: none;
}
.api-table code {
  font-size: 0.85em;
}

.api-method {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
  margin-right: 0.5rem;
}
.api-method-get { background-color: #34c759; }
.api-method-post { background-color: var(--accent); }

/* Accordion FAQ Component */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-speed) ease;
}
.faq-item:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
}
.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  color: var(--text-secondary);
  transition: transform var(--transition-speed) ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) cubic-bezier(0, 1, 0, 1);
}
.faq-item.active .faq-content {
  max-height: 1000px;
  transition: max-height var(--transition-speed) ease-in-out;
}
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Privacy Policy Layout */
.privacy-layout {
  padding-top: calc(var(--navbar-height) + 3rem);
  padding-bottom: 6rem;
  max-width: 800px;
  margin: 0 auto;
}
.privacy-header {
  text-align: center;
  margin-bottom: 4rem;
}
.privacy-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.privacy-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.privacy-body-section {
  margin-bottom: 3rem;
}
.privacy-body-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.privacy-body-section p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.privacy-body-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.privacy-body-section li {
  margin-bottom: 0.5rem;
}

/* Scroll Entrance Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive menu */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}
.menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Media Queries */
@media (max-width: 991px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
  .docs-layout {
    flex-direction: column;
    gap: 2rem;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }
  .docs-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .docs-menu-item {
    margin-bottom: 0;
  }
  .docs-menu-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  .docs-content {
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 4rem;
  }
  .menu-btn {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active {
    display: flex;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin: 0 auto;
  }
  .download-box {
    padding: 2.5rem 1.5rem;
  }
  .download-box h3 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   INTERACTIVE ROBOTICS WORKFLOW SIMULATION (HTML5 / CSS / JS)
   ========================================================================== */
.sim-container {
  padding: 1.5rem;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
}
.sim-screen {
  background-color: #05070f;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  height: 400px;
  align-items: center;
  justify-content: center;
}

/* Simulated iPhone Screen */
.sim-phone {
  width: 170px;
  height: 320px;
  border: 8px solid #333336;
  border-radius: 32px;
  position: relative;
  background-color: #000;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  flex-shrink: 0;
  overflow: hidden;
}
.sim-phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 14px;
  background-color: #333336;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 10;
}
.sim-phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.sim-camera-feed {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e293b 0%, #0b0f19 100%);
  position: relative;
}
.sim-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 15px 15px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
}
.sim-object {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 150%;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  transition: top 0.8s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}
.sim-bbox {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1.5px solid #ff3b30;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  box-shadow: 0 0 8px rgba(255,59,48,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sim-label {
  position: absolute;
  top: -18px;
  left: 0;
  background-color: #ff3b30;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 2px;
  white-space: nowrap;
}
.sim-ray-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sim-ray-line {
  stroke: #2997ff;
  stroke-width: 1.5;
  stroke-dasharray: 3;
  opacity: 0;
  transition: opacity 0.3s;
}
.sim-ray-line.active {
  opacity: 1;
  animation: dash 1s linear infinite;
}
@keyframes dash {
  to { stroke-dashoffset: -20; }
}
.sim-ray-dot {
  fill: #2997ff;
  opacity: 0;
  transition: opacity 0.3s;
}

.sim-overlay-hud {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
}
.sim-hud-badge {
  background-color: rgba(52, 199, 89, 0.2);
  color: #34c759;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}
.sim-hud-coords {
  font-family: var(--font-mono);
  color: #2997ff;
  font-weight: 600;
}

/* Simulated Logs Console */
.sim-console {
  flex-grow: 1;
  height: 320px;
  background-color: #080c14;
  border: 1px solid #1e293b;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.sim-console-header {
  background-color: #111827;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
}
.sim-console-dots {
  display: flex;
  gap: 0.25rem;
}
.sim-console-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff5f56;
}
.sim-console-dots span:nth-child(2) { background-color: #ffbd2e; }
.sim-console-dots span:nth-child(3) { background-color: #27c93f; }

.sim-console-body {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.log-line {
  color: #fff;
  line-height: 1.4;
  white-space: pre-wrap;
}
.log-line.text-muted { color: #4b5563; }
.log-line.text-success { color: #34c759; }
.log-line.text-info { color: #2997ff; }
.log-line.text-warning { color: #ff9500; }
.log-line.text-json {
  color: #a5b4fc;
  padding-left: 1rem;
}

@media (max-width: 576px) {
  .sim-screen {
    flex-direction: column;
    height: auto;
  }
  .sim-phone {
    margin-bottom: 1rem;
  }
  .sim-console {
    width: 100%;
    height: 200px;
  }
}

/* Responsive Theme App Store Badge */
.appstore-badge-link {
  display: inline-block;
  transition: transform 0.2s ease;
}
.appstore-badge-link:hover {
  transform: scale(1.03);
}
.appstore-badge-img {
  height: 40px;
  width: auto;
}
.appstore-badge-img.badge-dark {
  display: none;
}
html.dark .appstore-badge-img.badge-light {
  display: none;
}
html.dark .appstore-badge-img.badge-dark {
  display: block;
}
