:root {
  --bg-main: #060913;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-elevated: #0b1120;
  --border-card: rgba(51, 65, 85, 0.45);
  --border-highlight: rgba(56, 189, 248, 0.4);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-indigo: #818cf8;
  --accent-purple: #c084fc;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.25);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

/* Background Subtle Top Illumination */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-primary {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0) 70%);
  top: -150px;
  right: -50px;
}

.glow-secondary {
  display: none;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  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);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  min-width: 0;
  box-sizing: border-box;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 19, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.accent-text {
  color: var(--accent-cyan);
}

.version-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-subnav {
  display: none;
  background: rgba(11, 17, 32, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-subnav::-webkit-scrollbar {
  display: none;
}

.mobile-subnav-container {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  padding: 0 16px;
}

.subnav-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.subnav-pill:active {
  background: var(--accent-cyan);
  color: #060913;
  transform: scale(0.96);
}

.subnav-pill-highlight {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-github {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-github:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 90px 0 70px;
  position: relative;
  overflow-x: clip;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.hero-content,
.hero-preview {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  max-width: 100%;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: #0284c7;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-hero-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-hero-secondary:hover {
  background: rgba(51, 65, 85, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mockup Window */
.mockup-window {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(56, 189, 248, 0.15);
  transition: transform 0.3s ease;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.mockup-window:hover {
  transform: translateY(-4px);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #0d1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.mockup-tab-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #070b14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.mockup-tab-bar::-webkit-scrollbar {
  display: none;
}

.mockup-tab {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.mockup-tab:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
}

.mockup-tab.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.mockup-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

.mockup-body {
  padding: 0;
  line-height: 0;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  background: #090d16;
}

.mockup-screen-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 529;
  background: #090d16;
  overflow: hidden;
}

.mockup-screen-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-in-out;
  display: block;
}

.mockup-screen-img.active {
  opacity: 1;
  pointer-events: auto;
}

.mockup-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #090d16;
  border-top: 1px solid #162032;
  font-size: 0.74rem;
  line-height: 1.4;
  color: #94a3b8;
  gap: 12px;
}

.mockup-status-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mockup-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.mockup-status-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #cbd5e1;
}

.mockup-status-hint {
  color: #64748b;
  font-size: 0.70rem;
  flex-shrink: 0;
}

/* Galeria Visual da Interface */
.interface-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.interface-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

.interface-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
}

.gallery-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 529;
  background: #090d16;
  overflow: hidden;
}

.gallery-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition-slow);
}

.interface-gallery-card:hover .gallery-card-img-wrap img {
  transform: scale(1.03);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  backdrop-filter: blur(2px);
}

.interface-gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid #38bdf8;
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
  transition: all 0.2s ease;
}

.gallery-card-zoom-btn:hover {
  background: #38bdf8;
  color: #090d16;
}

.gallery-card-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gallery-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-card-res {
  font-size: 0.70rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.gallery-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.gallery-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Lightbox Modal de Ampliação */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 94vh;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #0b1120;
  border-bottom: 1px solid #1e293b;
  gap: 16px;
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lightbox-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
  line-height: 1.3;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #f87171;
  transform: rotate(90deg);
}

.lightbox-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  background: #060911;
  overflow: hidden;
  min-height: 300px;
}

.lightbox-img-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #1e293b;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  display: block;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.lightbox-nav-btn:hover {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #090d16;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #0b1120;
  border-top: 1px solid #1e293b;
  gap: 16px;
  font-size: 0.84rem;
}

.lightbox-desc {
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

.lightbox-counter {
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 992px) {
  .interface-gallery-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .interface-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .gallery-card-info {
    padding: 18px;
  }
  .mockup-status-hint {
    display: none;
  }
  .lightbox-modal {
    padding: 10px;
  }
  .lightbox-dialog {
    max-height: 96vh;
  }
  .lightbox-header {
    padding: 12px 16px;
  }
  .lightbox-title {
    font-size: 1.05rem;
  }
  .lightbox-body {
    padding: 10px 8px;
  }
  .lightbox-img {
    max-height: 58vh;
  }
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-footer {
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* Sections Common */
.section {
  padding: 90px 0;
  position: relative;
}

.bg-elevated {
  background-color: var(--bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ========================================================= */
/* Módulos do Hub Central (Landing Page)                    */
/* ========================================================= */
.modules-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-module-card.card-active {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 25px -5px rgba(56, 189, 248, 0.15);
}

.landing-module-card.card-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-cyan);
}

.landing-module-card.card-active:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.4), 0 0 24px rgba(56, 189, 248, 0.25);
  transform: translateY(-3px);
}

.landing-module-card.card-soon:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.landing-module-card:hover .module-icon-box {
  transform: scale(1.05);
}

.icon-lgr {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.icon-stability {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-time {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.icon-freq {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.icon-controllers {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.icon-statespace {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.module-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-soon {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-active .status-dot {
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.badge-soon .status-dot {
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
}

.module-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.module-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.module-card-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.module-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.module-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.module-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.module-feature-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-cyan);
}

.btn-module-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.btn-module-link-primary {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-module-link-primary:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent-cyan);
}

.soon-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

/* ========================================================= */
/* Pilares de Sistemas de Controle (Landing Page)           */
/* ========================================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.pillar-card.full-width {
  grid-column: span 2;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pillar-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
}

.pillar-tag {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pillar-formula {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pillar-subitems {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 4px;
}

.pillar-subitems li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.pillar-subitems li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  opacity: 0.6;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.step-formula {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.25) transparent;
  max-width: 100%;
}

.step-formula .katex-display {
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.step-formula-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
}

.formula-box {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.formula-caption {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.full-width-card {
  grid-column: span 3;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.2s ease;
}

.feature-box:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-box code {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* Downloads Section */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.download-card.highlight-detected {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px -5px rgba(56, 189, 248, 0.3);
}

.download-card.highlight-detected::before {
  content: 'Seu Sistema Operacional';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent-cyan);
  color: #060913;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.platform-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.platform-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.platform-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.download-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.dl-primary {
  background: #0284c7;
  color: #fff;
}

.dl-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.dl-secondary {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.dl-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.dl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-size {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-size:empty {
  display: none;
}

.card-footer-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.all-releases-banner {
  text-align: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.link-arrow {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-highlight);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 24px;
  font-size: 1.4rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--text-main);
}

.faq-answer code {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* Footer */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #04060d;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
}

.footer-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Responsive Media Queries (Android, Tablets e Telas Menores) */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-content,
  .hero-preview {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-tech-pills {
    justify-content: center;
  }
  .steps-grid,
  .features-grid,
  .downloads-grid,
  .modules-grid-landing,
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .full-width-card,
  .pillar-card.full-width {
    grid-column: span 1;
  }
  .step-formula-duo,
  .pillar-subitems {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0 0;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .header-container {
    min-width: 0;
    max-width: 100%;
  }
  .mobile-subnav {
    display: block;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-subnav-container {
    padding: 0 16px;
    min-width: max-content;
  }
  .nav-links {
    display: none;
  }
  .btn-text-desktop {
    display: none;
  }
  .btn-github {
    padding: 8px 10px;
  }
  .btn-header-dl {
    padding: 8px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .hero-section {
    padding: 32px 0 44px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .hero-title {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 22px;
    overflow-wrap: break-word;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    justify-content: center;
    font-size: 0.95rem;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;
  }
  #label-primary-os {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .hero-tech-pills {
    justify-content: center;
    gap: 6px;
  }
  .tech-tag {
    font-size: 0.74rem;
    padding: 3px 8px;
  }
  .glow-primary {
    right: -20px;
    width: min(320px, 90vw);
    height: min(320px, 90vw);
  }
  .section {
    padding: 50px 0;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .section-title {
    font-size: 1.7rem;
    overflow-wrap: break-word;
  }
  .step-card,
  .feature-box,
  .download-card,
  .landing-module-card {
    padding: 22px 18px;
  }
  .mockup-window {
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .mockup-header {
    padding: 10px 12px;
    gap: 8px;
  }
  .mockup-tab-bar {
    padding: 6px 10px;
    gap: 4px;
  }
  .mockup-tab {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* Otimizações Específicas para Smartphones Android (Telas <= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
    width: 100%;
    max-width: 100%;
  }
  .brand {
    gap: 6px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
  }
  .brand-name {
    font-size: 1rem;
  }
  .header-cta {
    gap: 6px;
  }
  .btn-header-dl {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .version-badge {
    display: none;
  }
  .hero-title {
    font-size: clamp(1.4rem, 5.8vw, 1.85rem);
    line-height: 1.22;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }
  .pill-badge {
    font-size: 0.72rem;
    padding: 4px 8px;
    margin-bottom: 16px;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
  .step-formula {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
  .step-formula .katex {
    font-size: 0.95em;
  }
  .step-number {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  .step-title {
    font-size: 1.1rem;
  }
  .dl-btn {
    padding: 14px 16px;
    min-height: 48px;
    font-size: 0.9rem;
  }
}

/* Destaque Reforçado quando Visitado em Dispositivo Android */
body.is-android-device #card-android {
  border-color: #10b981;
  box-shadow: 0 0 35px -5px rgba(16, 185, 129, 0.35);
  background: rgba(6, 78, 59, 0.15);
}

body.is-android-device #card-android::before {
  content: 'Recomendado para seu Android';
  background: #10b981;
  color: #060913;
}
